|
Action |
Logs the current user off and ends the Windows session.
|
Syntax |
LOGOFF (force)
|
Parameter |
Force
During a logoff operation, applications that are shut down are allowed a specific amount of time to respond to the logoff request. If the time expires, Windows displays a dialog box that allows the user to forcibly shut down the application, to retry the logoff, or to cancel the logoff request. If the Force value is true (i.e. : non-zero), Windows always forces applications to close and does not display the dialog box.
|
0 |
Windows does not force applications to close. |
|
1 |
Windows always forces applications to close and does not display the dialog box. |
|
Returns |
|
0 |
User logged off |
|
Error code |
Function failed |
|
Example |
$RC = LogOff(0)