This method converts the HREPLOBJ, which can be either a HREPLITEM or HREPLFLD, to an array of bytes when saving.
At a Glance
Header file: | Cesync.h |
Windows CE versions: | 2.0 and later |
Syntax
UINT ObjectToBytes( HREPLOBJ hObject, LPBYTE lpb );
Parameters
hObject
Handle to an object.
lpb
Long pointer to a buffer where the array of bytes should be stored. This parameter can be NULL.
Return Values
Number of bytes in the array.
Remarks
The IReplStore::ObjectToBytes method is used to save the data represented by a handle to a disk. The ActiveSync service manager calls ObjectToBytes first with lpb set to NULL. The ActiveSync service provider should then return the size required, followed by the ActiveSync service manager calling ObjectToBytes with a lpb parameter pointing to a buffer large enough for the array.
See Also