ITsSbProvider::RegisterForNotification method (sbtsv.h)

Requests that Remote Desktop Connection Broker (RD Connection Broker) send notifications about specified events.

Plug-ins can use this method to request notifications about events.

Syntax

HRESULT RegisterForNotification(
  [in] DWORD                     notificationType,
  [in] BSTR                      ResourceToMonitor,
  [in] ITsSbResourceNotification *pPluginNotification
);

Parameters

[in] notificationType

The type of notification to receive. To receive notifications for more than one type, specify the enumerations by using a logical OR.

TSSB_NOTIFY_TARGET_CHANGE

The owner plug-in has recognized a change in the target's state.

TSSB_NOTIFY_SESSION_CHANGE

The owner plug-in has recognized a change in the session's state.

TSSB_NOTIFY_CONNECTION_REQUEST_CHANGE

RD Connection Broker has created a connection, or completed a connection request due to a successful logon, time-out, or connection failure.

[in] ResourceToMonitor

This parameter is reserved.

[in] pPluginNotification

A pointer to an ITsSbResourceNotification plug-in notification object that RD Connection Broker should use for notifications.

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

ITsSbProvider

ITsSbResourceNotification