Partager via


IReplStore::CopyObject

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method copies one HREPLOBJ, which can be a HREPLITEM or 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

CopyObject copies 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. CopyObject is 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 FindNextItem or 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