Share via


IReplStore::CopyObject (Windows CE 5.0)

Send Feedback

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

BOOL CopyObject(HREPLOBJ hObjSrc,HREPLOBJ hObjDst);

Parameters

  • hObjSrc
    [in] Handle to the source.
  • hObjDst
    [in] Handle to the destination.

Return Values

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

OS Versions: Windows CE 2.0 and later.
Header: Cesync.h.
Link Library: Coredll.lib.

See Also

IReplStore

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.