Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to shutdown window
Message
 
To
08/06/2001 12:25:48
Stanley Yip
Shun Sang (technology) ltd Hong Kong
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00517011
Message ID:
00520447
Views:
14
Hi Stanley,
The following method works good.

#DEFINE EX_LOGOFF 0
#DEFINE EX_SHUTDOWN 1
#DEFINE EX_REBOOT 2
#DEFINE EX_FORCE 4
#DEFINE EX_POWEROFF 8

DECLARE SHORT ExitWindowsEx IN Win32API;
SHORT uFlags, INTEGER dwReserved

*=ExitWindowsEx(EX_LOGOFF,0) && equal to "=ExitWindowsEx(0,0)"
=ExitWindowsEx(EX_SHUTDOWN,0) && equal to "=ExitWindowsEx(1,0)"
*=ExitWindowsEx(EX_REBOOT,0) && equal to "=ExitWindowsEx(2,0)"
*=ExitWindowsEx(EX_FORCE,0) && equal to "=ExitWindowsEx(4,0)"
*=ExitWindowsEx(EX_POWEROFF,0) && equal to "=ExitWindowsEx(8,0)"
Previous
Reply
Map
View

Click here to load this message in the networking platform