Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutting Down Windows
Message
From
10/06/2002 11:44:04
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Shutting Down Windows
Miscellaneous
Thread ID:
00666548
Message ID:
00666548
Views:
62
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
Solutions: when you want it, as you want it!
Next
Reply
Map
View

Click here to load this message in the networking platform