Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

WinLib.Utils.ShutdownInitiate

Andrew Lambert edited this page May 4, 2014 · 3 revisions

#WinLib.Utils.ShutdownInitiate

##Method Signature Protected Function ShutdownInitiate(Message As String = "", Reboot As Boolean = False, Timeout As Integer = 0, ForceQuit As Boolean = False, Reason As Integer = - 1) As Boolean

##Parameters

Name Type Comment
Message String The human-readable reason for shutting down (Optional)
Reboot Boolean If True, reboot instead of shutting down (Optional)
TimeOut Integer The length of time, in seconds, to wait before shutting down (Optional)
ForceQuit Boolean If True, unresponsive processes are killed (Optional)
Reason Integer The major and minor shutdown reason code (Optional)

##Return value Returns True on success.

##Notes Shuts down, reboots, or logs off the computer with extended options.

##See also

Clone this wiki locally