I'm observing an program and want to kill it, if it is for some time in the state "wait:executive".
Here is a screenshot of the Process Explorer:
How can I get that state by code? Or could maybe tell me somebody what that state exactly mean? This will may help me to find the right query to solve my problem.