GetRecordInfoFromGuids function (oleauto.h)

Returns a pointer to the IRecordInfo interface for a UDT by passing the GUID of the type information without having to load the type library.


HRESULT GetRecordInfoFromGuids(
  [in]  REFGUID     rGuidTypeLib,
  [in]  ULONG       uVerMajor,
  [in]  ULONG       uVerMinor,
  [in]  LCID        lcid,
  [in]  REFGUID     rGuidTypeInfo,
  [out] IRecordInfo **ppRecInfo


[in] rGuidTypeLib

The GUID of the type library containing the UDT.

[in] uVerMajor

The major version number of the type library of the UDT.

[in] uVerMinor

The minor version number of the type library of the UDT.

[in] lcid

The locale ID of the caller.

[in] rGuidTypeInfo

The GUID of the typeinfo that describes the UDT.

[out] ppRecInfo

The IRecordInfo interface.

Return value

This function can return one of these values.

Return code Description
One or more of the arguments is not valid.


A pointer to IRecordInfo can be serialized by writing out the GUIDs and version numbers and deserialized by loading the information and passing it to GetRecordInfoFromGuids.


Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll