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.
ObjectToBytes saves the data represented by a handle to a disk. The handle is a Windows CE HREPLOBJ structure, which can be a Windows CE HREPLITEM structure or a Windows CE HREPLFLD structure.
When the method saves the data, it converts the structure to an array of bytes.
Syntax
UINT ObjectToBytes (
HREPLOBJ hObject,
LPBYTE lpb
);
Parameters
- hObject
[in] Specifies a handle to an object. - lpb
[in] Reference to a buffer where the array of bytes should be stored.
Return Values
This method returns the number of bytes in the array.
Remarks
An ActiveSync service manager calls this method first with lpb set to NULL. After the service provider returns the buffer size required for the array, the ActiveSync service manager calls ObjectToBytes again with lpb set to that buffer size.
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.