Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I Reboot Windows?
Message
 
À
15/10/1999 15:43:54
Gaylen Miller
Leaderware Corporation
Fulton, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00277082
Message ID:
00277087
Vues:
23
>Hi!
>
>How can I reboot Windows 95, 98, and NT from within my VFP6 code?
>
>Thanks!

Hi Gaylen,

The function ExitWindowsEx() does this. Here's a sample:
#DEFINE EWX_LOGOFF   0
#DEFINE EWX_SHUTDOWN 1
#DEFINE EWX_REBOOT   2
#DEFINE EWX_FORCE    4
#DEFINE EWX_POWEROFF 8
DECLARE INTEGER ExitWindowsEx IN Win32API;
    SHORT uFlags, INTEGER dwReserved
= ExitWindowsEx(EWX_SHUTDOWN, 0)
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform