Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

LOGOFF

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 (ie : 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)