Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Station Logout from VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00177389
Message ID:
00177397
Vues:
41
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform