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 "EWX" in [All]

aygshell

.

    EWX_LOGOFF = 0,

.

    EWX_SHUTDOWN = 1,

.

    EWX_REBOOT = 2,

.

    EWX_FORCE = 4,

.

    EWX_POWEROFF = 8

.

        EWX_POWEROFF - Shuts down the system and turns off the power. ""Note:"" This flag is not supported on a Windows Mobile-based Pocket PC.

.

        EWX_REBOOT - Shuts down the system and reboots.

.

    ExitWindowsEx(ExitWindowsAction.EWX_REBOOT, 0);

kernel32

.

Note that for an application to be restarted when the update requires a computer restart, the installer must call the ExitWindowsEx function with the EWX_RESTARTAPPS flag set or the InitiateShutdown function with the SHUTDOWN_RESTARTAPPS flag set.

Constants

3: EWX
.

private const UInt32 EWX_LOGOFF          = 0x00000000;

.

private const UInt32 EWX_SHUTDOWN        = 0x00000001;

.

private const UInt32 EWX_FORCE           = 0x00000004;

.

private const UInt32 EWX_POWEROFF        = 0x00000008;

.

private const UInt32 EWX_FORCEIFHUNG    = 0x00000010; // Supported on Windows 2000 and larger


 
Access PInvoke.net directly from VS: