#include <oskit/com.h>OSKIT_COMDECL query(oskit_iunknown_t *obj, const oskit_iid_t *iid, [out] void **ihandle);
Given a reference to any of an object's COM interfaces, this method allows the client to obtain a reference to any of the other interfaces the object exports by querying for a specific interface identifier (IID).
- obj
- The object being queried.
- iid
- The interface identifier of the requested interface.
- ihandle
- On success, the requested interface pointer is returned in this parameter. The client must release the returned reference when it is no longer needed.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error. Usually the only error code this method returns is OSKIT_E_NOINTERFACE, indicating that the object does not support the requested interface.