Re: Detecting a service that is running
- From: Sinna <news4sinna_NOSPAM@xxxxxxxxxx>
- Date: Fri, 11 Aug 2006 08:11:28 +0200
Michael C wrote:
"Sinna" <news4sinna_NOSPAM@xxxxxxxxxx> wrote in message news:O9BXKcEvGHA.4296@xxxxxxxxxxxxxxxxxxxxxxx<snipped>Can you explain what this GetObject call performs exactly?
I wrote a routine to determine the state of a given service, but I couldn't imagine that it would be that easy (?).
I suppose WMI is involved. If it is, it's not an option for me since I can't guarantee that the WMI service is running (or is allowed to be running).
This is the problem with multiposting, I posted code in the other thread that would possibly be more useful to you. Because it uses the API directly it is more likely to work on a wider range of OSs (ms of course). Here's the code, it's in C# and looks like a lot of code but the code required to find a service and start it would be fairly minimal out of all this. It should be fairly easy to translate to vb6.
It seems I was not very clear with my posting requesting more details about the GetObject stuff.
I have written the routine in quite the same way you posted here, (probably) based on http://vbnet.mvps.org/index.html?code/network/enumservicesadv.htm (as mentioned elsewhere in this thread).
Can you give me a pointer to the other thread? I can't find it.
Thanks!
Sinna
.
- Follow-Ups:
- Re: Detecting a service that is running
- From: Bob Butler
- Re: Detecting a service that is running
- References:
- Re: Detecting a service that is running
- From: Bob Butler
- Re: Detecting a service that is running
- From: Sinna
- Re: Detecting a service that is running
- From: Michael C
- Re: Detecting a service that is running
- Prev by Date: Re: Reading/Accepting parameters of a ShellExecute call
- Next by Date: Re: Detecting a service that is running
- Previous by thread: Re: Detecting a service that is running
- Next by thread: Re: Detecting a service that is running
- Index(es):
Relevant Pages
|