Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than aygshell, prefix the name with the module name and a period.
ExitWindowsEx (aygshell)
aygshell is for smart devices, not desktop Windows. Therefore, this information only applies to code using the .NET Compact Framework. To see if information for ExitWindowsEx in other DLLs exists, click on Find References to the right.
uFlags
Specifies the type of shutdown. This parameter must be one of the following values:
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.
dwReserved
Reserved; this parameter is ignored
Tips & Tricks:
Available only at Windows Mobile 5.0 or later. The ExitWindowsEx function returns as soon as it has initiated the shutdown. The shutdown then proceeds asynchronously. Because the function executes asynchronously, a nonzero return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown.
Sample Code:
static void Main(string[] args)
{
ExitWindowsEx(ExitWindowsAction.EWX_REBOOT, 0);
}
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).