Tips  |  Documentation  |  Archive
Reboot from application
 
  [PB external function declaration]
   FUNCTION boolean ExitWindowsEx(ulong uFlags, long dwReserved ) &
    LIBRARY 'user32.dll'
  
  [Powerscript]
   ulong EWX_LOGOFF   = 0
   ulong EWX_SHUTDOWN = 1
   ulong EWX_REBOOT   = 2
   ExitWindows(EWX_REBOOT, 0)
 
  Note: This method does not work for NT.