System.TCppAggregatedObject.QueryInterface

提供: RAD Studio API Documentation
移動先: 案内検索

C++

long __stdcall _QueryInterface(const _GUID & iid, void * * p);

プロパティ

種類 可視性 ソース ユニット
function public systobj.h System TCppAggregatedObject

説明

IInterfaceQueryInterface メソッドを実装します。

System.TCppAggregatedObject.QueryInterface は System.TAggregatedObject.QueryInterface を継承しています。以下の内容はすべて System.TAggregatedObject.QueryInterface を参照しています。

IInterfaceQueryInterface メソッドを実装します。

プロテクト メソッド QueryInterface を直接呼び出さないでください。QueryInterface は、IID パラメータによって識別されるインターフェイスのインターフェイス ポインタを取得するために、IInterface を使用して呼び出します。オブジェクトが要求されたインターフェイスをサポートする場合、Obj パラメータにインターフェイス ポインタが返され、QueryInterface は S_OK を返します。オブジェクトがそのインターフェイスをサポートしない場合、QueryInterface は E_NOINTERFACE を返します。

QueryInterface がインターフェイス ポインタを正常に返した場合は、自動的に参照カウントがインクリメントされます。

関連項目