Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use process id to determine if app is hung

Status
Not open for further replies.

dk6

Programmer
Jan 11, 2001
1
US
Hello,

I've got an NT service that launches console applications. I'm tracking the pid for each child application. I'd like to query the system using the pid to see if the process is running normally. I'm using the GetProcessVersion() because it accepts a pid, but I think that this will always return without an error as long as the process appears to be running.

I'm sure that you've noticed that sometimes an application shows up in Task Manager, Applications with the Status of Not Responding. So, it seems that there is an api, but I'm not sure what it is.

Thanks in advance for any help or suggestions.

deb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top