Click here to Skip to main content
15,898,374 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai ALL

I want to store all the newly started services in services.msc. This can be as an event like a pop-up to tell the user that this service added newly. The list should be maintained in a text file. So that the user can know the services that are are running in the system. Help me through c# code. Thank U in advance.
Posted
Comments
Yusuf 14-Mar-11 13:10pm    
you kidding us, right?

1 solution

I'm not sure of the advisability of what you want to do, my system runs loads and loads of services and I would get extremely annoyed if each one threw up a dialog.

I am also not sure if there is a built in event that you can use, although I could be wrong on that.

If I am correct then you would need to poll the Event Log periodically for new entries and take whatever action you want when you find one related to a service.

In case it is any help to you here[^] is some code using WMI to access the Event Log.
 
Share this answer
 

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