ITsSbProvider::CreateTargetObject method (sbtsv.h)

Creates an ITsSbTarget target object.

Syntax

HRESULT CreateTargetObject(
  [in]  BSTR        TargetName,
        BSTR        EnvironmentName,
  [out] ITsSbTarget **ppTarget
);

Parameters

[in] TargetName

A BSTR variable that contains the target name.

EnvironmentName

A BSTR variable that contains the environment name.

[out] ppTarget

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

Return value

This method can return one of these values.

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

Plug-ins can use this method to create a target object.

Requirements

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

See also

ITsSbProvider

ITsSbTarget