3.11.4.4 ITypeLib::GetTypeInfoOfGuid (Opnum 6)
The GetTypeInfoOfGuid method retrieves the automation type description with the specified GUID from the server's type information table.
-
HRESULT GetTypeInfoOfGuid( [in] REFGUID guid, [out] ITypeInfo** ppTInfo );
guid: MUST be a GUID.
ppTInfo: MUST be set to an ITypeInfo server instance that represents the automation type description associated with the specified GUID in the type information table (see section 3.7) or to NULL. MUST be NULL if the value of guid is IID_NULL, or is not associated with an automation type description.
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 guid did not correspond to any entry in the Type information table, or the value of guid was IID_NULL. See [MS-ERREF].