System.TCppAggregatedObject.QueryInterface
C++
long __stdcall _QueryInterface(const _GUID & iid, void * * p);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | systobj.h | System | TCppAggregatedObject |
Description
Implémente la méthode IInterface QueryInterface.
System.TCppAggregatedObject.QueryInterface hérite de System.TAggregatedObject.QueryInterface. Tout le contenu en-dessous de cette ligne se réfère à System.TAggregatedObject.QueryInterface.
Implémente la méthode IInterface QueryInterface.
N'appelez pas directement la méthode protégée QueryInterface. QueryInterface est appelée via l'interface IInterface afin d'obtenir un pointeur d'interface pour l'interface identifiée par le paramètre IID. Si l'objet supporte l'interface requise, il est renvoyé dans le paramètre Obj et QueryInterface renvoie S_OK. Si l'objet ne supporte pas l'interface, QueryInterface renvoie E_NOINTERFACE.
Si QueryInterface parvient à renvoyer un pointeur d'interface, elle incrémente automatiquement le nombre de références.