Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
System Shutdown Functions

System Shutdown Functions

The following functions are used with system shutdown.

AbortSystemShutdown Stops a system shutdown that has been initiated.
ExitWindows Logs off the interactive user.
ExitWindowsEx Logs off the interactive user, shuts down the system, or shuts down and restarts the system.
InitiateShutdown Initiates a shutdown and restart of the specified computer, and restarts any applications that have been registered for restart.
InitiateSystemShutdown Initiates a shutdown and optional restart of the specified computer.
InitiateSystemShutdownEx Initiates a shutdown and optional restart of the specified computer, and optionally records the reason for the shutdown.
LockWorkStation Locks the workstation's display.
ShutdownBlockReasonCreate Indicates that the system cannot be shut down and sets a reason string to be displayed to the user if system shutdown is initiated.
ShutdownBlockReasonDestroy Indicates that the system can be shut down and frees the reason string.
ShutdownBlockReasonQuery Retrieves the reason string set by the ShutdownBlockReasonCreate function.




Community Additions

© 2015 Microsoft