Sdílet prostřednictvím


ISyncFilterInfo::Serialize

Serializes the filter data to an array of bytes.

HRESULT Serialize( 
  BYTE *pbBuffer,
  DWORD *pcbBuffer);

Parameters

  • pbBuffer
    [in, out, size_is(*pcbBuffer)] Returns the serialized filter information. Set this value to NULL to request the required size of the buffer.
  • pcbBuffer
    [in, out] Specifies the number of bytes in pbBuffer. Returns the number of bytes required to serialize the filter when pcbBuffer is too small, or the number of bytes written.

Return Value

  • S_OK

  • E_INVALIDARG

  • 0x800700EA (HRESULT_FROM_WIN32(ERROR_MORE_DATA)) when pbBuffer is NULL or pcbBuffer is too small. In this case, the number of bytes required to serialize the filter is returned in pcbBuffer.

See Also

Reference

ISyncFilterInfo Interface