How to detect when a console child process is waiting for input?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am writing a program that tests console programs by creating them as child
processes and redirecting their input/output. And I would like to know when
the console child process is waiting for input, so that I can give them
input at a proper time. But the MSDN library only offers a
WaitForInputIdle() function which will always return true with a console
program. Is there any way to decide if the child process is waiting for
input?
Thanks in advance.
Alex


.



Relevant Pages