Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
To get the notifycation,I attempted to use a timer to refresh the process list periodically.But it must be a bad design.Can you give me a good solution using C# ? Thanks.
Posted
Updated 14-Dec-11 1:32am
v2

I found this with a simple google search for "system event new process start":

http://stackoverflow.com/questions/848618/net-events-for-process-executable-start[^]

NOTE TO READERS: I know, it's a link to StackOverflow, but answering the question is more important than worrying about inter-site snobbery.
 
Share this answer
 
v2
Comments
Amir Mahfoozi 14-Dec-11 7:51am    
+5
Hello,

Have a look at this article:

Monitoring Process Statistics in C# WPF[^]

It does it in a thread using an endless loop.

C#
do
{
    // process monitoring code.
}while (true); //infinite loop


Valery.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900