ITypeInfo::GetContainingTypeLib method (oaidl.h)

Retrieves the containing type library and the index of the type description within that type library.

Syntax

HRESULT GetContainingTypeLib(
  [out] ITypeLib **ppTLib,
  [out] UINT     *pIndex
);

Parameters

[out] ppTLib

The containing type library.

[out] pIndex

The index of the type description within the containing type library.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
One or more of the arguments is not valid.
E_OUTOFMEMORY
Insufficient memory to complete the operation.
E_NOINTERFACE
OLE could not find an implementation of one or more required interfaces.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ITypeInfo