* 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