IRecordInfo::RecordCreateCopy method (oaidl.h)

Creates a copy of an instance of a record to the specified location.

Syntax

HRESULT RecordCreateCopy(
  [in]  PVOID pvSource,
  [out] PVOID *ppvDest
);

Parameters

[in] pvSource

An instance of the record to be copied.

[out] ppvDest

The new record with data copied from pvSource.

Return value

This method can return one of these values.

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

Remarks

The records created must be freed by calling RecordDestroy.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

IRecordInfo