3.11.4.3 ITypeLib::GetTypeInfoType (Opnum 5)

The GetTypeInfoType method retrieves the TYPEKIND value associated with an automation type description.

 HRESULT GetTypeInfoType(
   [in] UINT index,
   [out] TYPEKIND* pTKind
 );

index: MUST equal the ordinal position of the specified automation type description within the type information table.

pTKind: MUST be set to the TYPEKIND value associated with the type description, as specified in 2.2.17.

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 and the entire HRESULT DWORD does not match a value in the following table, a fatal failure occurred.

  • If the severity bit is set to 1 and the entire HRESULT DWORD matches a value in the following table, a failure occurred.

    Return value/code

    Description

    0x8002802B

    TYPE_E_ELEMENTNOTFOUND

    The value of index did not specify the ordinal position of an element in the type information table. See [MS-ERREF].