This method of the ComLib Class determines whether a COM object supports a particular interface by using that object's QueryInterface method. The interface is not returned because Java interfaces exist only at compile time and are not distinguishable from the main object at run time.
public native static boolean supportsInterface(Object pComObject, _Guid id);
Returns true if the interface is supported; otherwise, returns false.
pComObject | Any Java object that can be mapped to a COM object. |
iid | The identifier of the interface to query for. |