• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 647
  • Last Modified:

Windows Service Notification

I have a windows service in C# that needs to capture all other windows services that are started/stopped/installed/uninstalled.

Is there a notification event that gets trigger when one of these services started/stopped/installed/uninstalled occurs. I do not want to do any polling to keep track of all services and so forth.

Can you point me to a URL/source code to get me started.

Thanks for your cooperation.
0
carlostriassi
Asked:
carlostriassi
1 Solution
 
Michael FowlerSolutions ConsultantCommented:
Have a look at the System.Management name space
http://msdn.microsoft.com/en-us/library/system.management.aspx

specifically the managementeventwatcher

http://msdn.microsoft.com/en-us/library/system.management.managementeventwatcher.aspx

I have never played with this myself but hopefull this will point you in the right direction

Michael
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now