Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "ShutdownReason" in [All]

Enums

.

enum ShutdownReason : uint

.

Enum ShutdownReason As UInteger

.
Documentation
[ShutdownReason] on MSDN

advapi32

.

    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

.
  • dwReason - See ShutdownReason
.

            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. (|)


 
Access PInvoke.net directly from VS: