Freigeben über


IReplStore::ObjectToBytes (Windows CE 5.0)

Send Feedback

This method converts the HREPLOBJ, which can be either a HREPLITEM or HREPLFLD, to an array of bytes when saving.

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 Values

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

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

See Also

IReplStore::BytesToObject | HREPLFLD | HREPLITEM | HREPLOBJ

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.