Hi,

I want to manage services on my Win NT 4 station using Win32::Service, but
somehow it doesn't do as asked.
Below a code snippet, the service Alerter is not started when I'm running
this.

Any Ideas?

use Win32::Service;
$hostName = "127.0.0.1";
$serviceName = "Alerter";
%status = "";
$ref = \%status;
Win32::Service::StartService($hostName ,$serviceName);

Win32::Service::GetStatus($hostName, $serviceName, $ref);


________________________________________________________________________________
Disclaimer - Winterthur Europe Assurances - Avenue des Arts/Kunstlaan 56 -  1000 
Brussels - Belgium.
This e-mail is intended solely for the above-mentioned recipient and it may contain 
confidential or privileged information. If you have
received it in error, please notify the sender immediately and delete the e-mail. You 
must not copy, distribute, disclose or take any
action in reliance on it. 
This e-mail message and any attached files have been scanned for the presence of 
computer viruses. However, you are advised that 
you open any attachments at your own risk. 



_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to