ITsSbResourceNotificationEx::NotifySessionChangeEx method (sbtsv.h)

Notifies registered plug-ins about state changes in a session object.

Syntax

HRESULT NotifySessionChangeEx(
  [in] BSTR            targetName,
  [in] BSTR            userName,
  [in] BSTR            domain,
  [in] DWORD           sessionId,
  [in] TSSESSION_STATE sessionState
);

Parameters

[in] targetName

The name of the target.

[in] userName

The user name.

[in] domain

The user domain.

[in] sessionId

Identifies the session that changed.

[in] sessionState

A TSSESSION_STATE value specifying he type of change that occurred.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header sbtsv.h

See also

ITsSbResourceNotification

ITsSbResourceNotificationEx