Hi
I have a problem in last two days i want to get porcesses of users which he cliked. like if a user click note pad my progrm should tell me that user clikced note pad notepad is open. and if user click calculator my program also tell that user cliked
calculator calcultor process is runing.
for this perpose i used this code
Hook manager which gives me mouse clik events but not giving me the process.
I am only getting mouse intptr event
private static void WindowEventCallback(IntPtr hWinEventHook, uint eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
{
Console.WriteLine("Event {0}", hwnd);// it is giving me mouse event
/*uint pid;
GetWindowThreadProcessId(hwnd, out pid);// it gives me process id
...
Go to the complete details ...