monitor process

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

is there anyway to nmonitor process started?
a bit like the task manager.. I would like to be notified of started and
dying thread (instead of polling every now and then).

anyway to achieve that?
 
Yes. look into Process class in System.Diagnostics class to start your
process. and EnableRaisingEvents to handle a "Exited" event..
Wait, You want to monitor the process's threads?
In that case, you can probably use the Debug API. The documentation for
these are available within the "Tool Developers Guide" directory.
Is that what you are looking for?
 
I also want to know when a new process is started!

I though of doing Process.GetProcesses() every second but that kind of annoy
me for something which is supposed to run in the background without
consuming much of CPU time or resources....

thanks for the tip anyway ;-)
 
Back
Top