Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExitWindowsEx doesn't seem to work Correctly
Message
 
To
08/09/1997 09:58:09
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00048937
Message ID:
00048944
Views:
38
>I'm trying to implement a full NT 4.0 shutdown from a Vis. Fox 5.0
>App. I've found info on DECLAREing the ExitWindowsEx function and
>according to the WINUSER.H file, by passing a 2 to the function
>should signal a system shutdown. Instead it only cycles to the login
>screen (Press Ctrl+ALt+Del to Login)
>
>Am I missing something?
>
>Scott O'Donnell
>scotto@iworksys.com

Scott,

Passing a 2 (EWX_REBOOT) signals and system re-start, not shutdown. While I'm not familiar with NT, it sounds like the system priviledges may need adjusting. Instead, try EWX_FORCE (4).

George
George

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

Click here to load this message in the networking platform