Desktop Functions: Smart Device Functions:
|
Search Results for "ShutdownReason" in [All]Enumsadvapi32
ShutdownReason dwReason);
public enum ShutdownReason : uint
ByVal ShutdownReason As ShutdownReason) As <MarshalAs(UnmanagedType.Bool)> Boolean
Public Enum ShutdownReason As UInteger dwReason: The ShutdownReason enum can be used for this parameter.
ShutdownReason dwReason);
public enum ShutdownReason : uint
ByVal ShutdownReason As ShutdownReason) As <MarshalAs(UnmanagedType.Bool)> Boolean
Public Enum ShutdownReason As UInteger dwReason: The ShutdownReason enum can be used for this parameter. user32
static extern bool ExitWindowsEx(ExitWindows uFlags, ShutdownReason dwReason);
ByVal dwReason As ShutdownReason) As <MarshalAs(UnmanagedType.Bool)> Boolean
ExitWindowsEx(ExitWindows.LogOff, ShutdownReason.MajorOther | ShutdownReason.MinorOther); Changed the sample code Reason parameter from "&" to "ShutdownReason.MajorOther | ShutdownReason.MinorOther". Amperstand (&) is the binary AND condition, and the values ANDed together would be zero. The intended condition is that the flags be ORed together. (|) |