|
After the password is successfully changed, log the user off. Prompt them that they must use the new password, then log them off. They have to get a new Token from the Server.
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
|