Starting a NT service through an application?

This is a discussion on Starting a NT service through an application? within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I am trying to find out how to start a service programatically though an application. My assumption is that ...

  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,691

  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, 01: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, 08: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, 11:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21