This method retrieves the interface pointer for an alternate interface that the item exposes. The specified interface must be an Automation interface; that is, it must support the methods of the IDispatch interface.
HRESULT get_Interface(
VARIANT whichInterface,
IDispatch **ppInterface
);
Parameters
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.
Remarks
Some objects expose multiple interfaces. This method is provided as a mechanism for the Automation programmer to be able to easily access alternate interfaces, when no type library is available for the item's class.