IWDTFTarget2::HasInterface method (wdtf.h)
Determines whether the target supports a given interface.
Syntax
HRESULT HasInterface(
BSTR WDTFInterfaceName,
VARIANT Args,
[in, optional] VARIANT MonikerSuffix,
[out, retval] VARIANT_BOOL *pResult
);
Parameters
WDTFInterfaceName
Args
[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] pResult
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP Professional |
Minimum supported server | Windows Server 2008 |
Target Platform | Desktop |
Header | wdtf.h |