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 回答1: Call WaitForInputIdle with a handle to a process. it will suspend execution until the program completes its initialization and is waiting for