ITypeLib::GetTypeInfoType

HRESULT GetTypeInfoType( 
  unsigned int  index,  
  TYPEKIND FAR*  pTKind 
);
 

Retrieves the type of a type description.

Parameters

index
The index of the type description within the type library.
pTKind
A pointer to the TYPEKIND enumeration for the type description.

Return Value

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

Return value Meaning
S_OK Success.
TYPE_E_ELEMENTNOTFOUND Index is outside the range of 0 to GetTypeInfoCount() –1.