The GetContainingTypeLib method retrieves the ITypeLib server instance whose type information table contains the ITypeInfo instance, and the index of the ITypeInfo instance within the type information table.
-
HRESULT GetContainingTypeLib( [out] ITypeLib** ppTLib, [out] UINT* pIndex );
ppTLib: MUST be set to a reference to an ITypeLib server instance (see section 3.11).
pIndex: MUST be set to the index value of the current automation type description within the type information table (see section 3.11.1).
Return Values: The method MUST return information in an HRESULT data structure, defined in [MS-ERREF] section 2.1. The severity bit in the structure identifies the following conditions:
If the severity bit is set to 0, the method completed successfully.
If the severity bit is set to 1, the method failed and encountered a fatal error.