Does anyone know a neat way of getting the handle of the main
window of a child process?
This is the rather messy way I do it now. I launch the child
PB/DLL exe from the parent PB/DLL exe with CreateProcess. The
child process creates its main window and records the handle to
a memory mapped file in a DLL. Meanwhile, the parent process
waits for input idle (WaitForInputIdle) with a time-out of one
second and then calls the same DLL to retrieve the handle. It
works but I'm sure this method cannot be safe.
Thanks, Keith
------------------
window of a child process?
This is the rather messy way I do it now. I launch the child
PB/DLL exe from the parent PB/DLL exe with CreateProcess. The
child process creates its main window and records the handle to
a memory mapped file in a DLL. Meanwhile, the parent process
waits for input idle (WaitForInputIdle) with a time-out of one
second and then calls the same DLL to retrieve the handle. It
works but I'm sure this method cannot be safe.
Thanks, Keith
------------------
Comment