System.TCppAggregatedObject.QueryInterface
C++
long __stdcall _QueryInterface(const _GUID & iid, void * * p);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | systobj.h | System | TCppAggregatedObject |
Description
Implements the IInterfaceQueryInterface method.
System.TCppAggregatedObject.QueryInterface inherits from System.TAggregatedObject.QueryInterface. All content below this line refers to System.TAggregatedObject.QueryInterface.
Implements the IInterfaceQueryInterface method.
Do not call the protected QueryInterface method directly. QueryInterface is called through IInterface to obtain an interface pointer for the interface identified by the IID parameter. If the object supports the requested interface, it is returned in the Obj parameter and QueryInterface returns S_OK. If the object does not support the interface, QueryInterface returns E_NOINTERFACE.
If QueryInterface successfully returns an interface pointer, it automatically increments the reference count.