ITypeLib::GetTypeInfoOfGuid method (oaidl.h)

Retrieves the type description that corresponds to the specified GUID.

Syntax

HRESULT GetTypeInfoOfGuid(
  [in]  REFGUID   guid,
  [out] ITypeInfo **ppTinfo
);

Parameters

[in] guid

The GUID of the type description.

[out] ppTinfo

The ITypeInfo interface.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
TYPE_E_ELEMENTNOTFOUND
No type description was found in the library with the specified GUID.
E_INVALIDARG
One or more of the arguments is not valid.
E_OUTOFMEMORY
Insufficient memory to complete the operation.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ITypeLib