IReplStore::ObjectToBytes (Windows Embedded CE 6.0)
1/6/2010
This method converts the HREPLOBJ, which can be either a HREPLITEM or HREPLFLD, to an array of bytes when saving.
Syntax
UINT ObjectToBytes(
HREPLOBJ hObject,
LPBYTE lpb
);
Parameters
- hObject
[in] Handle to an object.
- lpb
[in] Long pointer to a buffer where the array of bytes should be stored. This parameter can be NULL.
Return Value
Returns the number of bytes in the array.
Remarks
ObjectToBytes is used to save the data represented by a handle to a disk. The ActiveSync manager calls ObjectToBytes first with lpb set to NULL. The ActiveSync service provider should then return the size required, followed by the ActiveSync manager calling ObjectToBytes with a lpb parameter pointing to a buffer large enough for the array.
Requirements
Header | cesync.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 2.0 and later |
See Also
Reference
IReplStore
IReplStore::BytesToObject
HREPLFLD
HREPLITEM
HREPLOBJ