Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutdown windows from VFP
Message
From
26/08/1999 09:59:28
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00257824
Message ID:
00257881
Views:
16
>>Hi all
>>
>>Anybody knows the right API call to shutdown windows from VFP ?
>
>ExitProcessEx() - check the FAQ under Win32 and Other APIs - I have an entry in there that describes what you need to do.

Make that ExitWindowsEx(); the API call can be used to force logout, restart, reboot or shutdown, but NT may make life tough. behavior varies depending on whether it runs in a WinAPp or a console app.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform