Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shutting Down Windows
Message
De
10/06/2002 11:44:04
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Shutting Down Windows
Divers
Thread ID:
00666548
Message ID:
00666548
Vues:
61
Hi,

I need to ShutDown the computer from VFP. OS is Windows 2000. I tried the following code, but the reboot option (Value 2) does not work. (Pasing a Value of 4 seems to work fine)

Declare integer ExitWindowsEx in USER32.DLL integer uFlags, integer dwReserved
#define EWX_FORCE 4
#define EWX_LOGOFF 0
#define EWX_REBOOT 2
#define EWX_SHUTDOWN 1

ExitWindowsEx(2,0) && 2 does not work


Can anyone help?
TIA
Solutions: when you want it, as you want it!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform