Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to shutdown window
Message
 
 
À
10/06/2001 23:08:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00517011
Message ID:
00517795
Vues:
16
>Stanley,
>put below two lines into programs, do the program to shutdown the computer in your VFP application.
>Chau, Moon
>
>Declare integer ExitWindowsEx in user32 integer uFlags,integer dwReserved
>lret = ExitWindowsEx(1+4,0) &&SHUTDOWN AND FORCE

Just so you're aware, this won't work on Windows NT/2000. You need to call AdjustTokenPrivileges(). The KB article I referred to in an earlier post demonstrates how to do this.
Mike Stewart
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform