RE: win32 services





--- Phil Miller <PMiller@xxxxxxxxx> wrote:

Try going to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.

Bear in mind the name of the service does not
directly correlate to the
name of the Registry Key. You have to look up under
each key at the
Value Name DisplayName. I believe that is what is
displayed in the
Services MMC. The startup value is there, but if
memory is correct, it
is a numeric value. The Microsoft web site have the
documentation to
tell you what the values mean, or you can do some
experimentation to
figure it out yourself.

Also keep in mind that what shows up in the Services
MMC are not ALL the
Services the OS recognizes, but only the ones the
writers of each
Service chose to display in the MMC. Go figure.



-----Original Message-----
From: Derek B. Smith
[mailto:derekbellnersmith@xxxxxxxxx]
Sent: Friday, October 27, 2006 9:23 AM
To: Perl List
Subject: win32 services

Hello,
I want to get a listing of Window services and each
associated "status" and its "startup type." I
looked
at Win32::Daemon::Simple but wasn't sure if this is
a
good module for doing so?

W/out using a module,
Is there a registry entry for each service I could
parse or a database that I could open and parse?

thx
derek

The folliwing info was found at
http://www.microsoft.com/technet/archive/ntwrkstn/reskit/booting.mspx?mfr=true

Start Values
There is a Start value for each Services subkey in the
Registry key HKEY_LOCAL_MACHINE \SYSTEM<control
set>\Services\DriverName. It specifies the starting
values for the device or service, as follows:

? 0x0 (Boot) = Loaded by boot loader (NTLDR or
OSLOADER) before the Kernel is initialized. Disk
device drivers are examples of device drivers that use
this value.

? 0x1 (System) = Loaded by the I/O subsystem during
Kernel initialization. The mouse device driver is an
example of a device driver that uses this value.

? 0x2 (Auto load) = Loaded by Service Control Manager.
To be loaded or started automatically for all
startups, regardless of service type. The parallel
port device driver is an example of a device driver
with a value of auto load. The Alerter service is one
of the services that uses this value.

? 0x3 (Load on demand) = Loaded by Service Control
Manager only when explicitly instructed to do so.
Available, regardless of type, but it is not be
started until the user starts it (for example, by
using the Devices option in Control Panel).

? 0x4 (Disabled) = Do not load. Windows NT sets device
drivers to disabled when Service Control Manager
should not load them, such as when the corresponding
hardware is not installed. Having this value means
that the device drivers are not loaded by Service
Control Manager. File system drivers are the one
exception to the Start value. They are loaded even if
they have a start value of 4. If a device driver is
accidentally disabled, reset this value by using the
Services option in Control Panel.

Note You can view the Start value of device drivers by
using the Devices option in Control Panel.

Since I did not see any specific CPAN modules out
there I may have to write one.
thank you
derek

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
.



Relevant Pages

  • Re: CD drive does not read audio CD
    ... CD, the system shows there is no CD in the drive (through Control Panel, ... There is no problem reading a CD ROM. ... I searched for an updated device driver, ...
    (microsoft.public.windowsxp.general)
  • Audio Device
    ... i seem to have lost my volume icon and now i have no sound what so ever.. ... checked in the control panel and it tells me that i have no audio ... device...which i did have a couple of days ago..The hardware comes up saying ... that windows cannot load the device driver for this hardware, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Re: Accessing disks via their serial numbers.
    ... performing a rendez-vous with a device driver. ... True, but somewhat irrelvant. ... it has to be kept in mind to avoid decending into the ...
    (freebsd-arch)
  • bluetooth device seach problme, error 10050
    ... The bt hardware interfaces through the btuart port, and the uart only bt device driver is in the platform. ... Interestingly the bt application in the ce control panel also returns a 10050 error.. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Public disclosure of discovered vulnerabilities
    ... >> device driver in ADA? ... Wouldn't mind a Jovial or PLUS compiler as well :-) ...
    (sci.crypt)