Open topic with navigation
In this example, ctrx_logoff is used to attempt a normal logoff. A forced logoff is attempted if the first attempt fails.
/* Try to perform logoff allowing all applications to exit gracefully */ ctrx_logoff(CTRX_NORMAL_LOGOFF, CONTINUE_ON_ERROR, CTRX_LAST); /* If normal logoff timed out, next step executes due to CONTINUE_ON_ERROR in previous call. Second call forces all apps to close, even if they lose data. */ ctrx_logoff(CTRX_FORCED_LOGOFF, CTRX_LAST); ctrx_disconnect_server("", CTRX_LAST);