ITsSbTargetEx::TargetLoad property

Retrieves the relative load on a target. This value is based on the number of existing and pending sessions. By default a pending session has the same value as an existing session.

This property is only available on Windows Server 2012 R2 with KB3091411 installed. The TargetLoad property is available on the ITsSbTarget interface starting with Windows Server 2016.

This property is read-only.

Syntax

HRESULT get_TargetLoad(
  [out, retval] DWORD *pTargetLoad
);

Property value

A number representing the relative load on a target.

Remarks

The weight of a pending session relative to an active session can be changed by setting the value of the LB_ConnectionEstablishmentPenalty parameter for the Connection Broker. This parameter is located under theHKLM\System\CurrentControlSet\Services\Tssdis\Parameters registry key. The default value of 1 specifies that pending sessions have the same weight as active sessions.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012 R2

End of server support

Windows Server 2012 R2

IID

IID_ITsSbTargetEx is defined as 74f99987-625d-11e5-bea1-a0481c7e9064

See also

ITsSbTargetEx