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 |
---|---|
|
Success. |
|
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for