ISensLogon::DisplayUnlock method

The DisplayUnLock method notifies an application that the screen display is unlocked.

Syntax

HRESULT DisplayUnlock(
  BSTR bstrUserName
);

Parameters

bstrUserName

The name of a current user.

Return Value

This method can return one of these values.

Return code Description
S_OK
The method returns successfully.

Remarks

SENS calls this method to notify an application that the screen display is unlocked.

Important  This function will not work with multiple logins through Remote Desktop Services and does not support Remote Desktop Services or Fast-User Switching scenarios. Desktop applications can register for session changes notifications by calling WTSRegisterSessionNotification. Services can handle session change notifications via SERVICE_CONTROL_SESSIONCHANGE control codes in their HandlerEx callback function.
 

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header sensevts.h
DLL Sens.dll

See Also

About System Event Notification Service

IEventSubscription

IEventSubscription::PutPublisherProperty

ISensLogon

ISensLogon::DisplayLock

ISensLogon::StartScreenSaver

ISensLogon::StopScreenSaver