Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutting Down Windows
Message
 
 
To
10/06/2002 11:44:04
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00666548
Message ID:
00666549
Views:
15
See mskb #Q251310 HOWTO: Exit Windows from Visual FoxPro (Q251310).

>Hi,
>
>I need to ShutDown the computer from VFP. OS is Windows 2000. I tried the following code, but the reboot option (Value 2) does not work. (Pasing a Value of 4 seems to work fine)
>
>Declare integer ExitWindowsEx in USER32.DLL integer uFlags, integer dwReserved
>#define EWX_FORCE 4
>#define EWX_LOGOFF 0
>#define EWX_REBOOT 2
>#define EWX_SHUTDOWN 1
>
>ExitWindowsEx(2,0) && 2 does not work
>
>
>Can anyone help?
>TIA
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform