IAction::SetTarget method

The SetTarget method is used internally by WDTF. Do not call this method directly.

Syntax


HRESULT SetTarget(
  [in]  IWDTFTarget2 *pMainTarget,
  [in]  VARIANT MoreTargets
);

Parameters

pMainTarget [in]

The main target for the implementation to use. This target is the one that IWDTFTarget2::GetInterface was called on.

MoreTargets [in]

Optional additional targets for the implementation. Currently, the MoreTargets parameter will always be VT_EMPTY. You should fail the SetTarget call if this parameter is anything other than VT_EMPTY.

Return value

SetTarget returns a standard HRESULT value

Remarks

The SetTarget method is used when you are creating WDTF actions. Do not call this method from a WDTF scenario.

Requirements

Minimum supported client

Windows XP Professional

Minimum supported server

Windows Server 2008

Namespace

Microsoft.WDTF

Assembly

WDTF.Interop.metadata_dll

Header

WDTF.h

IDL

WDTF.idl

See also

IAction
IWDTFTarget2
IWDTFTarget2::GetInterface
IWDTFTargets2
Action interfaces

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft