22.214.171.124 ITypeLib::GetTypeInfo (Opnum 4)
The GetTypeInfo method retrieves the automation type description that has the specified ordinal position within the type information table.
HRESULT GetTypeInfo( [in] UINT index, [out] ITypeInfo** ppTInfo );
index: MUST equal the ordinal position of the specified automation type description within the type information table.
ppTInfo: MUST be set to a reference to the ITypeInfo server instance (see section 3.7) with the specified position in the type information table, or to NULL if the value of index is greater than or equal to the number of automation type descriptions in the type information table.
MUST refer to the partner dispinterface if index specifies a dual interface. To retrieve the ITypeInfo server that corresponds to the partner interface, the client MUST call the GetRefTypeOfImplType and GetRefTypeInfo methods of the ITypeInfo instance that correspond to the partner dispinterface, as specified in sections 126.96.36.199 and 188.8.131.52.
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.
The value of index did not specify the ordinal position of an element in the type information table. See [MS-ERREF].