如何检测进程/线程何时等待用户输入
有没有办法检测 Windows 进程何时等待用户输入。
例如,当您单击它加载的特定程序时,在这种情况下该程序的进程可能处于加载状态?
当程序完全加载并等待用户输入下一步过程时会发生什么。有没有办法检测到这一点?
干杯
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
调用
WaitForInputIdle
带有进程的句柄。它将挂起执行,直到程序完成初始化并等待用户输入且没有待处理的输入。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.