Using Win32 functions in Visual FoxPro Image Gallery
System Shutdown
Code examples:
Closing Windows
How to enable the SE_SHUTDOWN_NAME privilege for the application
    Add comment     W32 Constants      Translate this page
Either logs off, shuts down, or shuts down and restarts the system
Code examples:
How to enable the SE_SHUTDOWN_NAME privilege for the application
Closing Windows
BOOL ExitWindowsEx(
    UINT  uFlags,        // shutdown operation
    DWORD  dwReserved     // reserved
FoxPro declaration:
DECLARE INTEGER ExitWindowsEx IN user32;
    INTEGER uFlags,;
    INTEGER dwReserved
Specifies the type of shutdown. See all constants listed in an example

Reserved; this parameter is ignored
Return value:
If the function succeeds, the return value is TRUE
My comment:
Test under Windows Me was ok for EWX_LOGOFF and EWX_REBOOT modes
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2002-01-27 11:05:34
Visited in last 7 days: 53
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
20 sec.Function: 'WriteProcessMemory'
39 sec.Function: 'MessageBox'
58 sec.Function: 'IsValidSid'
1.27 min.
Function group: 'Window Class'
1.6 min.Function: 'GetSystemDefaultLCID'
1.92 min.Function: 'AVIStreamRelease'
2.22 min.Function: 'SetEvent'
2.53 min.Function: 'mixerOpen'
2.83 min.Function: 'GdipGetPageScale'
3.17 min.Function: 'GdiFlush'
Advertise here!