# Exit Windows Flags

    Const EWX_LOGOFF = 0
    Const EWX_SHUTDOWN = 1
    Const EWX_REBOOT = 2
    Const EWX_FORCE = 4

The exit Windows flags tell how to end the Windows session. They can be combined, as long as a contradictory pair are not used together (like EWX_SHUTDOWN and EWX_REBOOT).

EWX_LOGOFF
  Log off the network.
EWX_SHUTDOWN
  Shut down Windows and, if the computer supports it, powers down.
EWX_REBOOT
  Perform a full reboot.
EWX_FORCE
  Force any running applications to quit instead of asking the user to close them.

Used by: ExitWindowsEx
Back to the index.