CriticalLogOff method
The CriticalLogOff method forcefully closes all interactive applications and logs off the interactive console.
Syntax
HRESULT CriticalLogOff();
Parameters
This method has no parameters.
Return value
CriticalLogOff returns a standard HRESULT value.
Remarks
If you forcefully close applications, you might lose unsaved work in the applications that are closed. To use the CriticalLogOff method, the user should be an interactive user.
See also
Send comments about this topic to Microsoft
Build date: 1/12/2012