Reputation: 43
Is there a way to detect when a windows process is waiting for user input.
For instance, when you click on a particular program it loads, in this case the program's process is probably in loading state rite?
what happens when the program is fully loaded and is waiting for user input to procedure to next step. Is there a way to detect this?
Cheers
Upvotes: 1
Views: 700
Reputation: 36402
Call WaitForInputIdle
with a handle to a process. it will suspend execution until the program completes its initialization and is waiting for user input with no input pending.
Upvotes: 1