WinLib.Utils.ShutdownInitiate - charonn0/WinLib GitHub Wiki
#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