ITsSbTarget::get_TargetLoad method (sbtsv.h)
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(
DWORD *pTargetLoad
);
Parameters
pTargetLoad
Return value
None
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 the HKLM\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 |
Target Platform | Windows |
Header | sbtsv.h |