Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

monitor processes with WMI in .NET

Hello everyone,
i believe the namespace can be used to monitor processes for instance determine processes that exceed 80% cpu utilization and then terminate them.

I wish to write an application which can monitor other applications to determine whether they are started,stopped, idling or hanging.

Can anyone provide me with related links or articles for this particular problem?

Thanks a lot....

Wednesday, April 27, 2005

Have you looked at the System.Diagnostics.Process class yet?

I would start there first before jumping into WMI. It might have everything you need. I haven't done exactly what you are trying to do but I was able to use it to create a TaskManager clone and view all of the processes running on my local machine. It also gives some statistics (but not all of them).

Thursday, April 28, 2005

*  Recent Topics

*  Fog Creek Home