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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kill Runaway Apps

Status
Not open for further replies.
May 14, 2003
3
US
Does anyone out there have some nifty code that identifys and kills runaway applications? If so, I would love to hear from ya!!

d N c
 
Use the FindWindow API to find the handle to the open window and the PostMessage API to close it.
 
My code in thread222-539729 may be what you are looking for
 
Thanks for the replies, but I don't think these solutions will work for me because my runaways are windowless / formless applications. These apps are running on RF scanners using Wavelink.

My original solution was to use the psapi.dll and Pdh.Dll to create a vb based task manager to monitor cpu usage and identify run away applications. However, I was uable to extract cpu usage for SPECIFIC PIDs (Process Identifiers).

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top