Re: Detecting a service that is running

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Michael C wrote:
"Sinna" <news4sinna_NOSPAM@xxxxxxxxxx> wrote in message news:O9BXKcEvGHA.4296@xxxxxxxxxxxxxxxxxxxxxxx
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.

<snipped>

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
.



Relevant Pages

  • Re: Re-starting...again
    ... helped me to keep a routine. ... imagine you are ... the shot, "look" at the object ball, and shoot. ... It takes away the pressure to "just hit the ball now" and establishes a good mental rhythm. ...
    (rec.sport.billiard)
  • Re: Release 1.1 (beta) of my AES implementation
    ... > Now imagine using your style of coding in a project 10 tims bigger than ... application would invoke in main or a routine the ... > If you cripple your code out of the gate then it can only really go ... > simple to do, writing thread safe routines is fairly trivial, etc... ...
    (sci.crypt)
  • Re: [ 01/10] [Suspend2] kernel/power/modules.h
    ... On Thursday 02 February 2006 22:48, Pekka J Enberg wrote: ... I would imagine there's only one, ... introduce it whenever you introduce the caller. ... We don't end up with multiple copies of the routine. ...
    (Linux-Kernel)
  • Re: Colbert at Whitehouse correspondents dinner ... THE HORROR!
    ... I can imagine that when some people saw Colbert's routine they stood up ... ti was meant *at* them for the enjoyment of the rest of the country. ... LORELAI: In the movie, only boy hobbits travel to Mount ...
    (rec.arts.tv)
  • Re: If value is in a list
    ... Mike wrote: ... I imagine there's some way to avoid the whole for(i in ... list) routine. ...
    (comp.lang.javascript)