Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restarting Windows
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00784261
Message ID:
00784519
Views:
20
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
>
Previous
Reply
Map
View

Click here to load this message in the networking platform