Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method copies one HREPLOBJ, which can be a HREPLITEMor HREPLFLD, to another.

Syntax

BOOL CopyObject(
  HREPLOBJ 
hObjSrc,
  HREPLOBJ 
hObjDst
);

Parameters

hObjSrc

[in] Handle to the source.

hObjDst

[in] Handle to the destination.

Return Value

Returns TRUE if the operation was successful. Returns FALSE if the operation failed. If the method fails, it is usually because the source and destination handles are of different types or different sizes.

Remarks

CopyObjectcopies the contents of one 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. CopyObjectis always called when the ActiveSync 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 FindNextItemor FindNextItem.

Requirements

Header cesync.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IReplStore