Using Win32 functions in Visual FoxPro Image Gallery
System Shutdown
..msdn
ExitWindows
ExitWindowsEx
InitiateShutdown
InitiateSystemShutdown
LockWorkStation
Code examples:
Closing Windows
How to enable the SE_SHUTDOWN_NAME privilege for the application
ExitWindowsEx
    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
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
My comment:
Test under Windows Me was ok for EWX_LOGOFF and EWX_REBOOT modes
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com 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: 35
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.167.202.184)
5 sec.Function: 'SetSystemPowerState'
11 sec.Function: 'SQLGetConfigMode'
16 sec.Function: 'CM_Request_Device_Eject_Ex'
22 sec.Function: 'ActivateKeyboardLayout'
27 sec.Function: 'GetModuleFileNameEx'
33 sec.Function: 'GetModuleFileName'
38 sec.Function: 'JetBeginSession'
43 sec.Function: 'SQLCreateDataSource'
49 sec.Function: 'NetMessageNameAdd'
55 sec.Function: 'RpcStringFree'
Google
Advertise here!