in reply to NT RPC and Shutdown.
use Win32; Win32::InitiateSystemShutdown(...);
For documentation on the parameters see "perldoc Win32".
For rebooting the local machine, you have to enable some privileges. See Win32API::Registry for more details. Update, I only mentioned this last part because the "perldoc Win32" doesn't explain this bit but my Win32API::Registry documentation does and provides code for dealing with it. So I thought it might be important for some readers, even if not for the original noder.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: NT RPC and Shutdown.
by idnopheq (Chaplain) on Mar 14, 2001 at 07:36 UTC | |
by tye (Sage) on Mar 15, 2001 at 22:29 UTC | |
by Blue (Hermit) on Mar 15, 2001 at 00:16 UTC | |
by tye (Sage) on Mar 15, 2001 at 05:43 UTC | |
by Blue (Hermit) on Mar 15, 2001 at 19:16 UTC |