Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Station Logout from VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00177389
Message ID:
00177397
Views:
42
>I saw several articles in the knowledge base regarding restarting/exiting windows95/98 from VFP. However, the articles do not state if there is some method to force a station logoff (as opposed to a complete restart or shutdown). Is there any way to force a station logoff?

The API call ExitWindowsEx() can force a shutdown of all user applications and initiate the Logon New user Dialog, but the VFP app will get killed along with everything else.
DECLARE INTEGER ExitWindowsEx IN WIN32API ;
   INTEGER uFLags, ;
   INTEGER nReserved
=ExitWindowsEx(0,0)
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