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

KiXtart 2001 Manual

Logoff( )

Action: Logs the current user off and ends the Windows session.
 
Syntax: LOGOFF (force)
 
Parameters: 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  
 
See Also: Shutdown( )
 
Example:

$RC = LogOff(0)