IWDTFTarget2::HasInterface method

Determines whether the target supports a given interface.

Syntax


HRESULT HasInterface(
  [in]           BSTR         ProgID,
  [in, optional] VARIANT      MoreTargets,
  [in, optional] VARIANT      MonikerSuffix,
  [out, retval]  VARIANT_BOOL *pResult
);

Parameters

ProgID [in]

The WDTF ProgID of the requested interface.

MoreTargets [in, optional]

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

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

MonikerSuffix [in, optional]

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.

pResult [out, retval]

True if the target supports the interface; otherwise false.

Return value

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

Requirements

Minimum supported client

Windows XP Professional

Minimum supported server

Windows Server 2008

Target platform

Desktop

Namespace

Microsoft.WDTF

Assembly

WDTF.Interop.metadata_dll

Header

WDTF.h

IDL

WDTF.idl

See also

IWDTFTarget2

 

 

Send comments about this topic to Microsoft

Show: