ITypeInfo::GetRefTypeInfo Function

If a type description references other type descriptions, it retrieves the referenced type descriptions. 

HRESULT GetRefTypeInfo(
  HREFTYPE  hRefType,
  ITypeInfo FAR* FAR  *ppTInfo
);

hRefType

Handle to the referenced type description to be returned.

ppTInfo

Points a pointer to a pointer to the referenced type description.

The return value obtained from the returned HRESULT is one of the following:

Return value

Meaning

S_OK

Success.

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

One or more of the arguments is invalid.

On return, the second parameter contains a pointer to a pointer to a type description that is referenced by this type description. A type description must have a reference to each type description that occurs as the type of any of its variables, function parameters, or function return types. For example, if the type of a data member is a record type, the type description for that data member contains the hRefType of a referenced type description. To get a pointer to the type description, the reference is passed to GetRefTypeInfo.

Show: