Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3026

[RESOLVED] CreateProcess and WaitForInputIdle, problem

$
0
0
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

Viewing all articles
Browse latest Browse all 3026

Trending Articles