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

假如想象 提交于 2019-12-20 04:22:59

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/6911498/how-to-detect-when-a-process-thread-is-waiting-for-user-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!