Click here to Skip to main content
15,908,173 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Dear All,


I have successfully create one service and now i wants the

particular service monitor my application every second. If my application is closed

means my service automatically re-run that closed application. Here am using C#

windows application.


Thanks in Advance

Dhinesh kumar.V
Posted
Comments
Sandeep Mewara 25-Jul-12 3:12am    
You say you created a service and then you share what that service does. Now, what is the question? issue?

1 solution

Such monitoring it a bad idea, because this would be polling, that is, a waste of resources for little accuracy. You can always use the push approach instead of pull using WMI.

Please see this CodeProject article:
Process Information and Notifications using WMI[^].

—SA
 
Share this answer
 
Comments
Mohamed Mitwalli 25-Jul-12 3:21am    
5+
Sergey Alexandrovich Kryukov 25-Jul-12 3:31am    
Thank you, Mohamed.
--SA

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