ISensLogon2::Logoff method (sensevts.h)

The Logoff method notifies an application that a user is logged off.

Syntax

HRESULT Logoff(
  [in] BSTR  bstrUserName,
  [in] DWORD dwSessionId
);

Parameters

[in] bstrUserName

The name of a user who logs off.

[in] dwSessionId

The session identifier of a session.

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 a user is logged off.

Requirements

Requirement Value
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

ISensLogon2

ISensLogon::Logoff

Terminal Services