Handle of any of windows owned by the process we are wating for
Time in miliseconds after which function returns, regargdless if a process is ready or not. Default value is 30000 (30 seconds)
Waits until the process is ready to accept more input. It is a more less a wrapper around Win32 WaitForInputIdle, which waits until process's (thread's) message queue is empty.
This function was supposed to provide an elegant solution for situations when it takes time to open a child window. Unfortunatelly it does not always work. For example it does not always work when you use Terminal Server.