Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to shutdown window
Message
 
 
To
10/06/2001 23:08:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00517011
Message ID:
00517795
Views:
15
>Stanley,
>put below two lines into programs, do the program to shutdown the computer in your VFP application.
>Chau, Moon
>
>Declare integer ExitWindowsEx in user32 integer uFlags,integer dwReserved
>lret = ExitWindowsEx(1+4,0) &&SHUTDOWN AND FORCE

Just so you're aware, this won't work on Windows NT/2000. You need to call AdjustTokenPrivileges(). The KB article I referred to in an earlier post demonstrates how to do this.
Mike Stewart
Previous
Reply
Map
View

Click here to load this message in the networking platform