--- Phil Miller <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>