IRecordInfo::RecordCopy method (oaidl.h)

Copies an existing record into the passed in buffer.

Syntax

HRESULT RecordCopy(
  [in]  PVOID pvExisting,
  [out] PVOID pvNew
);

Parameters

[in] pvExisting

The current record instance.

[out] pvNew

The destination where the record will be copied.

Return value

This method can return one of these values.

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

Remarks

RecordCopy will release the resources in the destination first. The caller is responsible for allocating sufficient memory in the destination by calling GetSize or RecordCreate. If RecordCopy fails to copy any of the fields then all fields will be cleared, as though RecordClear had been called.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

IRecordInfo