Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shutdown Windows from vfp
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Shutdown Windows from vfp
Divers
Thread ID:
00257880
Message ID:
00257880
Vues:
58
Hi again

I found the API call to shutdown Windows from VFP but the only thing it does is to log off my workstation. I am Using VFP 6 SP3 On Win 98. Anyybody know what i am doing wrong here. Here is my code:



*--SysShut.Prg
#define EWX_LOGOFF 0
#define EWX_SHUTDOWN 0x00000001
#define EWX_REBOOT 0x00000002
#define EWX_FORCE 0x00000004
#define EWX_POWEROFF 0x00000008

declare integer ExitWindowsEx IN Win32Api Integer Code, Integer dwReserved

=ExitWindowsEx(EWX_SHUTDOWN, 0)

*-- End

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform