This method copies one HREPLOBJ, which can be either a HREPLITEM or HREPLFLD, over to another.
At a Glance
Header file: | Cesync.h |
Windows CE versions: | 2.0 and later |
Syntax
BOOL CopyObject( HREPLOBJ hObjSrc, HREPLOBJ hObjDst );
Parameters
hObjSrc
Handle to the source.
hObjDst
Handle to the destination.
Return Values
One of the values described in the following table is returned.
Value | Description |
TRUE | The operation was successful. |
FALSE | The operation failed. A possible reason is that the two handles are of different types or of different sizes. |
Remarks
The IReplStore::CopyObject method is used to copy the contents of a specified handle to another. Any resource allocated in the source must be freed before they are overwritten, and any resource in the destination should be reset so it is not freed after the assignment to the source. CopyObject is always called when the ActiveSync service manager detects that an object has been modified since the last replication and its contents must therefore be updated from the modified handle returned by the ActiveSync service provider from FindNextItem or FindNextItem.
See Also