Dismas has asked for the wisdom of the Perl Monks concerning the following question:

Greetings, Monks,

I'm looking for information about the Win32_Service->Create method. Specifically, it seems to set Service->AcceptStop to False when it's used to create a service. I need to know where and how this is done, or, at least, how I can change what appears to be the default setting used by the Create method.

I need to be able to create a service with AcceptStop set to True. I also need to be able to change AcceptStop's value.

I know I can retrieve its value with a WQL statement, is it possible perhaps to also CHANGE the value via WQL?

Many thanks,

Dismas
  • Comment on Win32_Service::Create information sought

Replies are listed 'Best First'.
Re: Win32_Service::Create information sought
by ikegami (Patriarch) on Apr 20, 2005 at 15:45 UTC

    From what I saw in the documentation, AcceptPause appears to be a read-only property, and there doesn't appear to be any methods that changes it. I found very little information is given on what it actually represents, but it might be a function of the the ServiceType passed to the constructor and/or the current State of the service.

    Of course, none of that is Perl-related. That's because your question isn't either. You might have better luck if you look elsewhere (but sorry, I can't recommend anywhere). Once you find out what interface Windows provides (if any) to do this, we can help you call it from Perl.

      Well, you're right, I did stray way OT. You caught me. Sorry, but I'm getting a bit desperate.
Re: Win32_Service::Create information sought
by barbie (Deacon) on Apr 21, 2005 at 12:04 UTC