ITypeInfo::GetContainingTypeLib method

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

ppTLib [out]

The containing type library.

pIndex [out]

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

Return value

This method can return one of these values.

Return codeDescription
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

IDL

OaIdl.idl

See also

ITypeInfo

 

 

Show: