GetRecordInfoFromTypeInfo function

Returns a pointer to the IRecordInfo interface of the UDT by passing its type information. The given ITypeInfo interface is used to create a RecordInfo object.

Syntax


HRESULT GetRecordInfoFromTypeInfo(
  _In_  ITypeInfo   *pTypeInfo,
  _Out_ IRecordInfo **ppRecInfo
);

Parameters

pTypeInfo [in]

The type information of a record.

ppRecInfo [out]

The IRecordInfo interface.

Return value

This function can return one of these values.

Return codeDescription
S_OK

Success.

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

One or more of the arguments is not valid.

TYPE_E_UNSUPFORMAT

The type is not an interface.

 

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

See also

IRecordInfo
ITypeInfo

 

 

Show: