ITsSbTarget::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 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.

This property is available on Windows Server 2012 R2 with KB3091411 installed in the ITsSbTargetEx interface.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2016
IDL
Sbtsv.idl
IID
IID_ITsSbTarget is defined as:
  • 16616ECC-272D-411D-B324-126893033856
  • e85e10ea-db0b-4752-b456-5fd5840901c0 on Windows Server 2008 R2

See also

ITsSbTargetEx

ITsSbTarget