ExitWindows (Enums)
Last changed: -78.168.228.248

.
Summary
Defines the Shutdown type for the user32.ExitWindowsEx method

C# Definition:

[Flags]
public enum ExitWindows : uint
{
   // ONE of the following five:
   LogOff = 0x00,
   ShutDown = 0x01,
   Reboot = 0x02,
   PowerOff = 0x08,
   RestartApps = 0x40,
   // plus AT MOST ONE of the following two:
   Force = 0x04,
   ForceIfHung = 0x10,
}

VB.Net Definition:

<Flags()> _
Enum ExitWindows As UInteger
     LogOff = &H0
     ShutDown = &H1
     Reboot = &H2
     PowerOff = &H8
     RestartApps = &H40
     ' plus AT MOST ONE of the following two:
     Force = &H4
     ForceIfHung = &H10
End Enum

Notes:

Documentation
ExitWindows on MSDN