ITsSbGlobalStore::QueryTarget method

Retrieves the ITsSbTarget object for the given parameters.

Syntax

HRESULT QueryTarget(
  BSTR        ProviderName,
  BSTR        TargetName,
  BSTR        FarmName,
  ITsSbTarget **ppTarget
);

Parameters

ProviderName

The name of the resource plug-in provider.

TargetName

The target name.

FarmName

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

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

   
Windows version None supported Windows Server 2012
Target Platform Windows
Header sbtsv.h

See Also

ITsSbGlobalStore