This repository was archived by the owner on Nov 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
WinLib.Utils.ShutdownInitiate
Andrew edited this page Apr 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. Returns 0 on success, or a Win32 error code on error.
##See also