Desktop Functions: Smart Device Functions:
|
Search Results for "EWX" in [All]Constants1: 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 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); kernel32Note 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. |