ITypeInfo::GetRefTypeInfo

Prototypes

HRESULT ITypeInfo::GetRefTypeInfo(HREFTYPE hRefType, ITypeInfo **pTypeInfo);

Description

Retrouve la description du type identifiée par hRefType.

Le résultat est rangé dans pITypeInfo.

Exemple

#include <windows.h>
#include <winbase.h>
#include <ole2.h>

ITypeInfo *pITypeInfo;
UINT Index;
HREFTYPE hRefType;
ITypeInfo *pITypeInfo2;

...
hRefType=NULL;
if (pIClassFactory->GetRefTypeOfImplType(Index, &hRefType)!=S_OK)
...
pITypeInfo2=NULL;
if ((pIClassFactory->GetRefTypeInfo(hRefType, &pITypeInfo2)!=S_OK)||!pITypeInfo2)
...

Avertissement

Le résultat est S_OK en cas de succès.

Voir aussi

ITypeInfo::GetRefTypeOfImplType pour retrouver l'identifiant d'une interface implémentée.