IReplicaKeyMap::Serialize

Serializes the replica key map data to a byte array.

HRESULT Serialize( 
  BYTE *pbReplicaKeyMap,
  DWORD *pcbReplicaKeyMap);

Parameters

  • pbReplicaKeyMap
    [in, out, unique, size_is(*pcbReplicaKeyMap)] The byte array that receives the serialized data.
  • pcbReplicaKeyMap
    [in, out] Specifies the number of bytes in pbReplicaKeyMap. Returns the number of bytes required to serialize the replica key map data when pbReplicaKeyMap is too small, or returns the number of bytes written.

Return Value

  • S_OK

  • E_INVALIDARG when a replica ID or replica key stored in the map is not valid.

  • E_POINTER

  • E_OUTOFMEMORY

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbReplicaKeyMap is too small. In this case, the required number of bytes is returned in pcbReplicaKeyMap.

See Also

Reference

IReplicaKeyMap Interface