Thread: Starting a NT service through an application?

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    2

    Starting a NT service through an application?

    Hello,

    I am trying to find out how to start a service programatically though an application. My assumption is that the service is already "installed" and shows up when I call services.msc. I've done tons of google searches, and I haven't found any solutions which don't require the .NET framework (losing the framework is one of the application requirements).

    To kind of give perspective on what I want to do, I wrote a Windows service that does processing when the user is idle, and now I want to write a frontend application so that the user can see statistics of the running service (and not force the user to go into the control panel to start the service).

    Thanks in advance.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    2
    Quote Originally Posted by Codeplug
    After all the searching I did through MSDN, I can't believe I didn't find that article. Thanks a lot!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. running my program as service
    By daher in forum Windows Programming
    Replies: 5
    Last Post: 09-05-2008, 12:30 PM
  2. IndiFTPD service
    By Tuborgrules in forum Windows Programming
    Replies: 3
    Last Post: 11-09-2005, 06:21 AM
  3. windows service + hooks + dll
    By rotis23 in forum Windows Programming
    Replies: 5
    Last Post: 09-04-2003, 07:06 AM
  4. NT Service - researching...
    By schu777 in forum Windows Programming
    Replies: 3
    Last Post: 03-25-2002, 02:58 PM
  5. nt service
    By vicky in forum Windows Programming
    Replies: 2
    Last Post: 09-22-2001, 10:22 AM