Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.04 KB

ExitWindowsEx.md

File metadata and controls

53 lines (36 loc) · 1.04 KB

Home

Function name : ExitWindowsEx

Group: System Shutdown - Library: user32


Either logs off, shuts down, or shuts down and restarts the system


Code examples:

Closing Windows
How to enable the SE_SHUTDOWN_NAME privilege for the application

Declaration:

BOOL ExitWindowsEx(
	UINT  uFlags,		// shutdown operation
	DWORD  dwReserved 	// reserved
);  

FoxPro declaration:

DECLARE INTEGER ExitWindowsEx IN user32;
	INTEGER uFlags,;
	INTEGER dwReserved  

Parameters:

uFlags Specifies the type of shutdown. See all constants listed in an example

dwReserved Reserved; this parameter is ignored


Return value:

If the function succeeds, the return value is TRUE


Comments:

Test under Windows Me was ok for EWX_LOGOFF and EWX_REBOOT modes