ITsSbGlobalStore::QueryTarget method (sbtsv.h)

Retrieves the ITsSbTarget object for the given parameters.

Syntax

HRESULT QueryTarget(
  [in]  BSTR        ProviderName,
  [in]  BSTR        TargetName,
  [in]  BSTR        FarmName,
  [out] ITsSbTarget **ppTarget
);

Parameters

[in] ProviderName

The name of the resource plug-in provider.

[in] TargetName

The target name.

[in] FarmName

The farm name to which the target belongs. If NULL, the first target found is returned.

[out] ppTarget

A pointer to a pointer to a target ITsSbTarget object. When you have finished using the object, release it by calling the Release method.

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

Any changes made to the target object returned by this method do not affect the target object stored in Remote Desktop Connection Broker (RD Connection Broker). The target object returned is a copy of the target object in RD Connection Broker.

Requirements

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

See also

ITsSbGlobalStore