I am trying unsucessfully to re-boot a Win98 PC with the following code:

use Win32::API;

$ExitWindowsEx = new
Win32::API("c:\\windows\\system\\user32.dll","ExitWindowsEx",[N,N],N);

$EWX_LOGOFF    = 0;
$EWX_SHUTDOWN  = 1;
$EWX_REBOOT    = 2;
$EWX_FORCE     = 4;

$ExitWindowsEx -> call($EWX_REBOOT,0);

I have also tried

use Win32::API;

$ExitWindowsEx = new Win32::API("user32","ExitWindowsEx",[N,N],N);

$EWX_LOGOFF    = 0;
$EWX_SHUTDOWN  = 1;
$EWX_REBOOT    = 2;
$EWX_FORCE     = 4;

$ExitWindowsEx -> call($EWX_REBOOT,0);

Each time the sript just runs and runs until I get an out of memory message, any
ideas?

I have tried $EWX_LOGOFF & $EWX_SHUTDOWN with the same results.






The information in this e-mail and any attachments is confidential and may be
legally privileged. It is intended solely for the addressee or addressees. If
you are not an intended recipient, please delete the message and any attachments
and notify the sender of misdelivery: any use or disclosure of the contents of
either is unauthorised and may be unlawful. All liability for viruses is
excluded to the fullest extent permitted by law. Any views expressed in this
message are those of the individual sender, except where the sender states them,
with requisite authority, to be those of a specific LAZARD company or
partnership.



_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to