Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CopyObject method copies the contents of the source handle to the destination handle. The handle is a Windows CE HREPLOBJ structure, which can be a Windows CE HREPLITEM or a Windows CE HREPLFLD structure.
Syntax
BOOL CopyObject (
HREPLOBJ hObjSrc,
HREPLOBJ hObjDest
);
Parameters
- hObjSrc
[in] Specifies a source handle. - hObjDest
[in] Specifies a destination handle.
Return Values
- TRUE
The method completed successfully. - FALSE
The operation failed, possibly because the handles are different types or different sizes.
Remarks
Any resource allocated for the source handle must be freed before it is overwritten, and any resource allocated for the destination handle should be reset so that 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 sychronization. The contents of the modified handle must be updated. The handle is returned by the ActiveSync service provider from IReplStore::FindFirstItem or IReplStore::FindNextItem.
Requirements
Pocket PC: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cesync.h
Library: None
See Also
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.