Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I Reboot Windows?
Message
 
To
15/10/1999 15:43:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00277082
Message ID:
00277087
Views:
21
>Hi!
>
>How can I reboot Windows 95, 98, and NT from within my VFP6 code?
>
>Thanks!

Hi Gaylen,

The function ExitWindowsEx() does this. Here's a sample:
#DEFINE EWX_LOGOFF   0
#DEFINE EWX_SHUTDOWN 1
#DEFINE EWX_REBOOT   2
#DEFINE EWX_FORCE    4
#DEFINE EWX_POWEROFF 8
DECLARE INTEGER ExitWindowsEx IN Win32API;
    SHORT uFlags, INTEGER dwReserved
= ExitWindowsEx(EWX_SHUTDOWN, 0)
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform