IWDTFTargets2::GetInterfacesIfExist method (wdtf.h)

Returns a collection of actions that support the interface - one IWDTFAction2 for each item that has one.

Syntax

HRESULT GetInterfacesIfExist(
  [in]           BSTR          WDTFInterfaceName,
  [in, optional] VARIANT       MoreTargets,
  [in, optional] VARIANT       MonikerSuffix,
  [out, retval]  IWDTFActions2 **ppInterface
);

Parameters

[in] WDTFInterfaceName

[in, optional] MoreTargets

Optional extra arguments that you can use to define additional targets to attach to the returned interface.

This parameter is not currently implemented. Set MoreTargets to a VARIANT that contains VT_EMPTY.

[in, optional] MonikerSuffix

An optional moniker that defines more options about how the interface should be instantiated.

This parameter is not yet implemented. Set MonikerSuffix to a VARIANT that contains VT_EMPTY.

[out, retval] ppInterface

The address of a variable that will receive the collection of actions.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method will succeed even if one or more of the collection members do not return an action.

Requirements

Requirement Value
Minimum supported client Windows XP Professional
Minimum supported server Windows Server 2008
Target Platform Desktop
Header wdtf.h

See also

IWDTFTargets2