I need to write a small application to monitor the status of a Windows process using Delphi or C++. A call that will show me Process Status, particularly when the status is 'not responding'.
What windows API must I use to accomplish this?
What I want is essentially what you can see in Task Manager - Status :
I have not tried anything yet, since I don't know what API to use.
(My old profile 'Vector' is lost - I am not really a newbe. Experienced programmer and Stack Overflow participant.)

The API's you want are:
You can also see a helpful MSDN article:
And their example procedure that uses it to enumerate all processes: