Microsoft SDK for Java

supportsInterface

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.

Syntax

public native static boolean supportsInterface(Object pComObject, _Guid id);

Return Value

Returns true if the interface is supported; otherwise, returns false.

Parameters

pComObject Any Java object that can be mapped to a COM object.
iid The identifier of the interface to query for.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.