Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #899

Re: How do I start/stop a system service

Path csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From "Farnsworth" <nospam@nospam.com>
Newsgroups comp.lang.basic.visual.misc, microsoft.public.vb.general.discussion
Subject Re: How do I start/stop a system service
Date Fri, 9 Mar 2012 16:01:33 -0500
Organization Aioe.org NNTP Server
Lines 12
Message-ID <jjdr3h$tde$1@speranza.aioe.org> (permalink)
References <jjdm45$kv9$1@dont-email.me>
NNTP-Posting-Host 2zkn8lvDl69X1tm9Wtth7A.user.speranza.aioe.org
X-Complaints-To abuse@aioe.org
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646 Format=Flowed; Response
X-Notice Filtered by postfilter v. 0.8.2
X-Newsreader Microsoft Outlook Express 6.00.2900.3028
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com comp.lang.basic.visual.misc:899

Cross-posted to 2 groups.

Show key headers only | View raw


GS wrote:
> My apps rely on WMI for gathering hardware info. How would I start WMI
> if not running, then stop it when I'm done using it?

One obvious VB6 source site(Vbnet) shows how to call API functions to 
accomplish that, but it seems that you didn't search the web or newsgroups.

But forget it. You can't start or stop services if your app is running in 
the context of the limited "Users" group, and perhaps unelevated Admins in 
Vista+, but you can query if the service is running or not.

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-09 14:36 -0500
  Re: How do I start/stop a system service "MikeD" <nobody@nowhere.edu> - 2012-03-09 15:45 -0500
    Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-09 17:38 -0500
      Re: How do I start/stop a system service "MikeD" <nobody@nowhere.edu> - 2012-03-10 07:27 -0500
        Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-10 13:16 -0500
          Re: How do I start/stop a system service "MikeD" <nobody@nowhere.edu> - 2012-03-10 17:57 -0500
            Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-10 21:08 -0500
              Re: How do I start/stop a system service "MikeD" <nobody@nowhere.edu> - 2012-03-10 22:57 -0500
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-10 23:58 -0500
                Re: How do I start/stop a system service Jason Keats <jkeats@melbpcDeleteThis.org.au> - 2012-03-11 20:22 +1100
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-11 15:54 -0400
                Re: How do I start/stop a system service Jason Keats <jkeats@melbpcDeleteThis.org.au> - 2012-03-12 15:19 +1100
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-12 01:14 -0400
                Re: How do I start/stop a system service "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-11 09:20 +0000
                Re: How do I start/stop a system service "MikeD" <nobody@nowhere.edu> - 2012-03-11 19:11 -0400
              Re: How do I start/stop a system service "Mike Williams" <Mike@WhiskyAndCoke.com> - 2012-03-11 09:13 +0000
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-11 16:19 -0400
                Re: How do I start/stop a system service "MikeD" <nobody@nowhere.edu> - 2012-03-11 19:23 -0400
                Re: How do I start/stop a system service "Mayayana" <mayayana@invalid.nospam> - 2012-03-11 20:54 -0500
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-11 22:12 -0400
                Re: How do I start/stop a system service "Mayayana" <mayayana@invalid.nospam> - 2012-03-12 09:57 -0500
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-12 13:24 -0400
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-12 13:59 -0400
                Re: How do I start/stop a system service "Henning" <computer_hero@coldmail.com> - 2012-03-12 22:46 +0100
                Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-12 18:59 -0400
  Re: How do I start/stop a system service "Farnsworth" <nospam@nospam.com> - 2012-03-09 16:01 -0500
    Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-09 17:36 -0500
      Re: How do I start/stop a system service "Farnsworth" <nospam@nospam.com> - 2012-03-09 18:55 -0500
        Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-09 21:30 -0500
          Re: How do I start/stop a system service "Farnsworth" <nospam@nospam.com> - 2012-03-11 11:14 -0500
  Re: How do I start/stop a system service "Jeff Johnson" <I.get@enough.spam> - 2012-03-09 17:41 -0500
    Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-09 18:23 -0500
      Re: How do I start/stop a system service "Mayayana" <mayayana@invalid.nospam> - 2012-03-10 09:24 -0500
        Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-10 13:06 -0500
          Re: How do I start/stop a system service "Mayayana" <mayayana@invalid.nospam> - 2012-03-10 14:11 -0500
            Re: How do I start/stop a system service GS <gs@somewhere.net> - 2012-03-10 15:25 -0500

csiph-web