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


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

Re: How do I start/stop a system service

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From GS <gs@somewhere.net>
Newsgroups comp.lang.basic.visual.misc, microsoft.public.vb.general.discussion
Subject Re: How do I start/stop a system service
Date Sun, 11 Mar 2012 22:12:59 -0400
Organization A noiseless patient Spider
Lines 53
Message-ID <jjjm3d$d7b$1@dont-email.me> (permalink)
References <jjdm45$kv9$1@dont-email.me> <jjdq5u$fb3$1@dont-email.me> <jje0pr$n5o$1@dont-email.me> <jjfhbb$gho$1@dont-email.me> <jjg5q6$7a6$1@dont-email.me> <jjgm94$4vl$1@dont-email.me> <jjh1fi$u9n$1@dont-email.me> <jjhqap$vpb$1@dont-email.me> <jjj1cv$qog$1@dont-email.me> <jjjhbd$ndk$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Mon, 12 Mar 2012 02:13:01 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="UVJBuiIZprDyxzUkJsiwfw"; logging-data="13547"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1YwdqqIcTz+q2L3C42Q3+"
X-Antivirus-Status Clean
X-Newsreader MesNews/1.08.03.00-gb
X-Antivirus avast! (VPS 120311-1, 03/11/2012), Outbound message
X-Face G"ln~:.wBqHZznO'(lJjjprxGYAjIF7#^u)lx,@"H'F#uXm%j`T6kxat5rq092aW;K*#<!y <6K)wt3HjA)V"XV`W3}Qts*D['Jm:qqpgttEl^wk@9{HJglN-Q'.91Af~ySM>m4jZ(2aW$34N&B&E@ j~tjGV-aC18j1y>zi.\[ZGXsd
Cancel-Lock sha1:amjyKROgfDC4xYEvQ/hw/z+XtAI=
X-ICQ 543516788
Xref csiph.com comp.lang.basic.visual.misc:926

Cross-posted to 2 groups.

Show key headers only | View raw


Mayayana pretended :
>> Since it's rare that WMI is NOT running, I'm just trying to accomodate
>> a solution that kicks in when/if the situation warrants. There's
>> absolutely nothing wrong with using WMI for my purposes;
>
>   That made me wonder something: WMI is always there,
> from 2000 on, I think. But the service isn't always running.
> Most of WMI is superfluous bloat wrappers around things like
> msi.dll (Windows Installer) and Registry functions. It's
> designed for IT people who are not able to write software.
> The notable exception to that is the hardware info. As I
> understand it, WMI *does* add new libraries (drivers?) of
> some kind to find the hardware info. It can do things that
> the Win32 API does not have available. So.... I wonder if
> there might be a way to call into those libraries, bypassing
> the WMI interface. If you could do that you could get the
> info. you need without needing to mess with services.
>
>    I don't know where to start with that. WMI is not set
> up to provide that kind of info. It's set up to wrap the
> details. But, for instance, the Win32 provider seems to be
> in cimwin32.dll. That DLL calls into setupapi.dll for these
> functions:
>
> SetupDiDestroyDeviceInfoList
> SetupDiEnumDeviceInterfaces
> SetupDiGetClassDevsW
> SetupDiGetDeviceInterfaceDetailW
>
>  Maybe that's a dead end or maybe it's a start to getting
> hardware info. through VB without needing the WMI
> intermediary. 

That would be ideal! I'm not all that crazy about having to mess with 
services, but I would rather it be me than my user since there's a good 
chance I'll be able to do it without breaking anything. Most of my 
users can't find files outside their 'My Documents' folder let alone 
navigate the Computer Management dialog to start/stop a service.

Both Scriptomatic and WMICode Creator are built to use WMI and what.., 
they can't run if the service is stopped. Not to mention several 
security service and firewall services that will also be restarted when 
WMI restarts. An alternative is definitely welcome here...!

-- 
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
    comp.lang.basic.visual.misc
    microsoft.public.vb.general.discussion

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