Desktop Functions: Smart Device Functions:
|
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. C# Signature:
[DllImport("aygshell.dll", SetLastError=""true"")] VB Signature:
Declare Function ExitWindowsEx Lib "aygshell.dll" (ByVal dwFlags As Integer, ByVal dwReserved As Integer) As Boolean User-Defined Types:enum ExitWindowsAction : uint
{ Alternative Managed API:There is no alternative managed API function Notes:Parameters:
uFlags 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...
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). |
|