Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with ExitWindowsEx
Message
De
23/08/2001 21:43:23
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00548358
Message ID:
00548419
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
>See MSKB#Q251310 HOWTO: Exit Windows from Visual FoxPro and WINAPI#12657
>
>>Anyone know where I should even start to look? I can't get this to work from VFP6 or VFP7 using Win2000 SP1:
>>
>>
>>#DEFINE EWX_LOGOFF 0
>>#DEFINE EWX_SHUTDOWN 1
>>#DEFINE EWX_REBOOT 2
>>#DEFINE EWX_FORCE 4
>>#DEFINE EWX_POWEROFF 8
>>
>>DECLARE SHORT ExitWindowsEx IN Win32API ;
>>    SHORT uFlags, INTEGER dwReserved
>>
>>=ExitWindowsEx(0,0)
>>
>>
>>Nothing happens at all. Thanks for any guidance,

Also, try FAQ#8009, How can I shut down or rebbot Windows for all versions? which addresses the requirements for ExitWindowsEx() in NT and Win2K.

>>John
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform