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.

Syntax

HRESULT GetRecordInfoFromGuids(
  REFGUID     rGuidTypeLib,
  ULONG       uVerMajor,
  ULONG       uVerMinor,
  LCID        lcid,
  REFGUID     rGuidTypeInfo,
  IRecordInfo **ppRecInfo
);

Parameters

rGuidTypeLib

The GUID of the type library containing the UDT.

uVerMajor

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

uVerMinor

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

lcid

The locale ID of the caller.

rGuidTypeInfo

The GUID of the typeinfo that describes the UDT.

ppRecInfo

The IRecordInfo interface.

Return value

This function can return one of these values.

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

Remarks

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.

Requirements

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