Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restarting Windows
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00784261
Message ID:
00784519
Vues:
19
Thank you; I'll experiment with the various combinations below.


>
>* Either logs off, shuts down, or shuts down and restarts the system
>DECLARE INTEGER ExitWindowsEx IN user32;
>	INTEGER uFlags,;
>	INTEGER dwReserved
>
>* Displays a dialog box that prompts the user to restart Microsoft® Windows®.
>DECLARE INTEGER RestartDialog IN shell32;
>	INTEGER hParent,;
>	STRING  pszPrompt,;
>	LONG    dwFlags
>
>* Initiates a shutdown and optional restart of the specified computer.
>DECLARE SHORT InitiateSystemShutdown IN advapi32;
>	STRING  lpMachineName,;
>	STRING  lpMessage,;
>	INTEGER dwTimeout,;
>	SHORT   bForceAppsClosed,;
>	SHORT   bRebootAfterShutdown
>
>* The LockWorkStation function locks the workstations's display (Win2K/XP)
>DECLARE INTEGER LockWorkStation IN user32
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform