IReplStore::CopyObject

The IReplStore::CopyObject method copies data from one handle to another handle.

Syntax

BOOL CopyObject(
HREPLOBJ
hObjSrc,
HREPLOBJ
hObjDst
);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

hObjSrc
Handle to the source.
hObjDst
Handle to the destination.

Return Values

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 given handle to another. Any resource allocated in the source like pointers or handles must be freed before they are overwritten, and any resource in the destination should be reset so it won't get 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 therefore its contents must be updated from the modified handle returned by the ActiveSync service provider from FindNextItem or FindNextItem.

See Also

IReplStore