#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    47
    Rep Power
    11

    working with Windows Services


    Ive created a Windows Services which works no problems.

    I now want to create a simple form that tells the user the status of the service and be able to start and stop it.

    Im slowly making my way through the help files but it hasn't quite sink in yet.

    can anyone give me any tips??

    P.s also if pos i would like to start and stop the service from a different machine
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,612
    Rep Power
    4247
    First, read the MSDN pages for OpenSCManager() and QueryServiceStatus()

    Then, look at this delphi unit. All your questions can be handled by this unit.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo