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

前端 未结 1 1485
Happy的楠姐
Happy的楠姐 2021-01-27 01:37

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 pr

1条回答
  •  遥遥无期
    2021-01-27 01:52

    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.

    0 讨论(0)
提交回复
热议问题