Jun 25, 2002, 10:06 AM
Post #2 of 12
Jean, I thought I had posted this to you yesterday, but it seems to have
Re: [Jean] Shutting down Win2K from Perl
[In reply to]
From the Perl Documentation at Activestate.com:
Win32::InitiateSystemShutdown This says it only works for NT but it may work for Win2000. I don't find much other than that. Maybe you can find the kernel.dll and pertinent docs to
(MACHINE, MESSAGE, TIMEOUT, FORCECLOSE, REBOOT)
[EXT] Shutsdown the specified MACHINE, notifying users with the supplied MESSAGE, within the specified TIMEOUT interval. Forces closing of all documents without prompting the user if FORCECLOSE is true, and reboots the machine if REBOOT is true. This function works only on WinNT.
find out how to use Win32::API to do this.
print unpack"u*",pack "h*",$a,"\n\n";