RE: Is there a way to control the serivce control manager?
From: harrier (harrier_at_discussions.microsoft.com)
Date: 09/02/04
- Next message: harrier: "RE: User account - change shown picture"
- Previous message: Carl Johan Jensen: "Re: EWF memory fill-up"
- In reply to: Mark K Vallevand: "Is there a way to control the serivce control manager?"
- Next in thread: KM: "Re: Is there a way to control the serivce control manager?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Sep 2004 13:15:07 -0700
One convoluted idea is to write a separate service for each personality.
Then set service dependencies for each custom service that starts the
services the personality requires. Your software can then start either
custom service using the SCM based on the switch state. All affected
services would need to be installed with a startup status of Manual. There's
probably a better way.
-harrier
"Mark K Vallevand" wrote:
> Our XPe device has two personalities. There is one suite of software
> installed, but a switch on the device sets the personality. We'd like to
> start and run a different set of services depending on that switch. In one
> mode, we'd run just a simple service that serves TCP/IP socket connections.
> In the other mode, we'd run a full set of services: our services, IIS, DTC,
> web services, and other stuff.
>
> Is there a way to have a program (or service) run early enough to change the
> configuration of services? Can a service stop, start, change dependencies
> of other services, and expect that the service control manager will see the
> changes and do the right thing?
>
> --
> Regards.
> Mark K Vallevand
>
>
>
- Next message: harrier: "RE: User account - change shown picture"
- Previous message: Carl Johan Jensen: "Re: EWF memory fill-up"
- In reply to: Mark K Vallevand: "Is there a way to control the serivce control manager?"
- Next in thread: KM: "Re: Is there a way to control the serivce control manager?"
- Messages sorted by: [ date ] [ thread ]