Paktrick
Paktrick

Reputation: 43

How to detect when a process/ thread is waiting for user input

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

Answers (1)

Hasturkun
Hasturkun

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

Related Questions