System Shutdown Functions

The following functions are used with system shutdown.

FunctionDescription
AbortSystemShutdownStops a system shutdown that has been initiated.
ExitWindowsLogs off the interactive user.
ExitWindowsExLogs off the interactive user, shuts down the system, or shuts down and restarts the system.
InitiateShutdownInitiates a shutdown and restart of the specified computer, and restarts any applications that have been registered for restart.
InitiateSystemShutdownInitiates a shutdown and optional restart of the specified computer.
InitiateSystemShutdownExInitiates a shutdown and optional restart of the specified computer, and optionally records the reason for the shutdown.
LockWorkStationLocks the workstation's display.
ShutdownBlockReasonCreateIndicates that the system cannot be shut down and sets a reason string to be displayed to the user if system shutdown is initiated.
ShutdownBlockReasonDestroyIndicates that the system can be shut down and frees the reason string.
ShutdownBlockReasonQueryRetrieves the reason string set by the ShutdownBlockReasonCreate function.

 

Send comments about this topic to Microsoft

Build date: 7/30/2009

Tags :


Page view tracker