Hello,
I have a problem with creating a process and waiting until the main window of the new process was shown.
I thought I can wait for it with
WaitForInputIdle(pi.hp,INFINITE);
But when the function returns, the handle of the main window of the new process is not available.
If I include also a ::Sleep(), the new window is available.
Sleep is a bad solution. How can I do it?
thx
Ralf
I have a problem with creating a process and waiting until the main window of the new process was shown.
I thought I can wait for it with
WaitForInputIdle(pi.hp,INFINITE);
But when the function returns, the handle of the main window of the new process is not available.
If I include also a ::Sleep(), the new window is available.
Sleep is a bad solution. How can I do it?
thx
Ralf