Results 1 to 5 of 5

Thread: run as NTService

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    HK
    Posts
    4

    Unhappy

    Hi there,
    I am trying to make my VB program run as NTservice. I know there is a control to do that. How to make my program to pause and restart again without using the control panel? I am trying to write a VB program to pause and continue the service automatically or though a User interface. Is there any one know how to do that? thxk in advance

  2. #2
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    You're not planning on putting the UI in the service, are you


    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    HK
    Posts
    4

    no

    No. I have a program install a service already and want another program to pause and continue the service automatically. I want to do this because I can't do any upgrade during the service is running. That's why I want to write another program to stop the service.

  4. #4
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    I know. It was a joke.

    There are some API's to start and stop services etc. I'll look them up and post later today (if no one else does it).


    td.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Location
    HK
    Posts
    4

    thanks a lot

    Oh.....
    thanks a lot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width