ISyncChangeBatchBase::Serialize method (winsync.h)
Serializes the change batch to an array of bytes.
HRESULT Serialize( [in, out] BYTE *pbChangeBatch, [in, out] DWORD *pcbChangeBatch );
[in, out] pbChangeBatch
The byte array that receives the change batch data.
[in, out] pcbChangeBatch
Specifies the number of bytes in pbChangeBatch. Returns the number of bytes required for pbChangeBatch when pbChangeBatch is too small, or the number of bytes written to pbChangeBatch when data is written.
The possible return codes include, but are not limited to, the values shown in the following table.
||The method succeeded.|
||pbChangeBatch is too small. In this case, the required number of bytes is stored in pcbChangeBatch.|
||The last group added to the batch was not ended.|
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|