int = WaitForInputIdle(hProcess, milliseconds )
Waits until the given process is waiting for user input with no input pending, or until the time-out interval has elapsed
Return ValueThe return value indicates wether the process is ready or wether it timed out. This value can be one of the following.
|0||The process is ready.|
|WAIT_TIMEOUT||The time-out interval elapsed, and the process is not ready.|