' Deklaration (dwReserved immer 0, wird nur bei XP ausgewertet)
Private Declare Function ExitWindowsEx Lib \"user32\" _
(ByVal dwOptions As Long, _
ByVal dwReserved As Long) As Long
' Flags für Parameter dwOptions
Private Const EWX_LogOff As Long = 0
Private Const EWX_SHUTDOWN As Long = 1
Private Const EWX_REBOOT As Long = 2
Private Const EWX_FORCE As Long = 4
Private Const EWX_POWEROFF As Long = 8