Question: How to get a window handle from a process ID
Do s search on deja news (http://www.dejanews.com ) I did and advance
search with teh following query
"window and handle and process and ID"
It came up with something like 800+ hits, looking thru the first 50 or so I
found several that may help (I don't think the URL willhelp since it has
context info specific to my search??)
Probably the most common answer I read was;
> How can I get a window handle from process
> id which I got from OpenProcess ?
EnumWindows(). In your EnumWindowProc(), call GetWindowThreadProcessId()
and compare the returned PID to the one you are looking for. Note: What
you got from OpenProcess() was a handle, not a PID.