How To Get hWnd from Process Handle from ShellExecuteEx
Posted on 2002-05-13
Starting a process and the Enumerating is an easy task, but it does not match for me and I don't know why.
I start an exe with ShellExecuteEx and i finally get a Process Handle back into my Struct. I want to checkout the first WindowHandle it has after 1 sec.
How do I get this hWnd. Enumerating all Desktop Childs lead to nothing at all, the ProcessHandle is in value < 255 ever, the processIds I get there are really big. Any Ideas how to convert this processhandle to a processid to then get the hWnd by enumerating windows ?