LogOff method

The LogOff method logs you off the computer.

Syntax

HRESULT LogOff();

Parameters

This method has no parameters.

Return value

LogOff returns a standard HRESULT value.

Remarks

To use the LogOff method, you cannot be running as a service.

See also

Console

Console::CriticalLogOff

 

 

Send comments about this topic to Microsoft

Build date: 1/12/2012