process and hwnd
-
how to get window hwnd if have its process id ? how to get total no of windows that a process created ? and how to get its active window? if i want to get wheather a process is performing processing or not what to do? plz help. r00d0034@yahoo.com
-
how to get window hwnd if have its process id ? how to get total no of windows that a process created ? and how to get its active window? if i want to get wheather a process is performing processing or not what to do? plz help. r00d0034@yahoo.com
If you need to see if a process is doing work, use the Task Manager and find it. If you have the process ID, you can probably get the Thread ID of the process' main thread. Use
GetGUIThreadInfo
using that thread ID to retrieve the information. TheGUITHREADINFO
structure filled by the function will contain the HANDLE of the active window. From there, you can ennumerate the Child Windows. GetGUIThreadInfo reference. -- ian