[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,
}
<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