Windows Service Notification

Posted on 2012-09-18
Last Modified: 2012-09-20
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.
Question by:carlostriassi
    1 Comment
    LVL 23

    Accepted Solution

    Have a look at the System.Management name space

    specifically the managementeventwatcher

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


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now