ISensLogon2::SessionReconnect method (sensevts.h)

The session was reconnected. The SessionReconnect method is used when you reconnect to a Fast User Switching session or a Remote Desktop Connection. This is different from logging on to a new session.

Syntax

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

Parameters

[in] bstrUserName

Name of the current user.

[in] dwSessionId

The session identifier of the session.

Return value

This method can return one of these values.

Return code Description
S_OK
Method returned successfully.

Remarks

SENS calls this method to notify your application that the session was reconnected.

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