Besides, if you don't already use Win32::Lanman, you're missing out on a very useful (and exhaustive) tool.
-----Original Message----- From: Chuck Lawhorn To: John Serink; 'Perl-Win32-Admin (E-mail) Sent: 5/1/02 7:37 PM Subject: RE: Win32::Service::GetStatus I use the Win32::Lanman module, and get service status using the EnumServicesStatus command. It doesn't have the same problem as the Win32::Service module. Hope this helps, --Chuck --- John Serink <[EMAIL PROTECTED]> wrote: > I was using that module about 6 months back and wrote this in my daily log: > "There is a bug in the Win32::Service::GetStatus function. If the service is > not running, its type is not reported. Basically, the only thing the > Win32::Service::GetStatus function is good for is to find if the service is > running or not. Any other information must be garnered by directly reading > the registry." > > I ending up just reading the registry as that was appropriate for my app. > Else, you can make sure the NT resource kit is installed and parse the > response of the "sc \\hostname query servicename" command. > > Cheers, > john __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
