in reply to Applications running status in Windows Task Manager

The Not Responding status is attributed to a process when it stops processing it's message queue for a period of 5 seconds. You can determine this situation using SendMessageTimeout() with the flag SMTO_ABORTIFHUNG.

You will have to obtain the hwnd for the process you wish to monitor. Alternatively, use a thread to do the monitoring and use NULL for the hwnd. You'll need to use Win32::API or Inline::C to call these apis.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."