Console::Lock method

The Lock method sends a lock request to a computer.

Syntax

HRESULT Console::Lock();

Parameters

This method has no parameters.

Return value

Lock returns a standard HRESULT.

Remarks

The Lock method has the same effect as pressing CTRL+ALT+Delete and clicking Lock Computer. To use the Lock method, you cannot be running as a service.

See also

Console

 

 

Send comments about this topic to Microsoft

Build date: 1/12/2012