RecordCopy Method

IRecordInfo::RecordCopy method

Copies an existing record into the passed in buffer.

Syntax


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

Parameters

pvExisting [in]

The current record instance.

pvNew [out]

The destination where the record will be copied.

Return value

This method can return one of these values.

Return codeDescription
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

IDL

OaIdl.idl

See also

IRecordInfo

 

 

Show:
© 2016 Microsoft