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
| Value | Meaning |
| 0 | The process is ready. |
| WAIT_TIMEOUT | The time-out interval elapsed, and the process is not ready. |