IReplStore::ObjectToBytes

The IReplStore::ObjectToBytes method converts the give handle (which is either HREPLFLD or HREPLITEM) to an array of bytes when saving.

Syntax

UINT ObjectToBytes(
HREPLOBJ
hObject,
LPBYTE
lpb
);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

hObject
Handle to an object.
lpb
Handle to a buffer where the array of bytes should be store. 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 disk. The ActiveSync service manager calls ObjectToBytes first with lpb set to NULL. The ActiveSync service provider should then return the size required. The ActiveSync service manager then calls ObjectToBytes with a lpb parameter pointing to a buffer large enough for the array.

See Also

IReplStore::BytesToObject