How to do the Reverse of "GetWindowThreadProcessID" ?
Posted on 1999-01-17
When i use ShellExecuteEx to run an app, i can receive an hInstApp and an hProcees. Now i want to find the window handles (HWNDs) associated with the process. How can i do that (preferably w/o going through enumwindows)
if i know the HWND, then i can get the PID using GetWindowThreadProcessID API. Is there an API to do the reverse ?
Also can someone explain to me the differences between a THandle, hInstApp & hProcess (from the SHELLEXECUTEINFO structure) and a PID ?