ITsSbLoadBalancingNotifySink::OnGetMostSuitableTarget method (sbtsv.h)

Returns a load-balancing result to Remote Desktop Connection Broker (RD Connection Broker).

Syntax

HRESULT OnGetMostSuitableTarget(
  [in] ITsSbLoadBalanceResult *pLBResult,
  [in] BOOL                   fIsNewConnection
);

Parameters

[in] pLBResult

A pointer to a ITsSbLoadBalanceResult object that includes the name of the target to which the connection should be redirected.

[in] fIsNewConnection

Indicates whether this is a new connection. TRUE if it is a new connection; FALSE otherwise.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following list.

Remarks

Your plug-in should call this method on the ITsSbLoadBalancingNotifySink object passed to GetMostSuitableTarget.

Requirements

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

See also

ITsSbLoadBalanceResult

ITsSbLoadBalancing

ITsSbLoadBalancingNotifySink