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 ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Windows 7 Problem with Facebook 9
New Dell PC 6
Best tool to recover PST files in 2026 0
A Short Trip To The US 27
Battlefield 2042 10
Windows Issues 5
PowerPoint Super Stuck and Desperately Need Help 0
What is the simplest IPC from Excel VBA to a .NET app? 5

Back
Top