Share via


IProviderSyncServices::DeserializeReplicaKeyMap

Creates an IReplicaKeyMap object and initializes it by using serialized data.

HRESULT DeserializeReplicaKeyMap( 
  const BYTE *pbReplicaKeyMap,
  DWORD cbReplicaKeyMap,
  IReplicaKeyMap **ppReplicaKeyMap);

Parameters

  • pbReplicaKeyMap
    [in, size_is(cbReplicaKeyMap)] The serialized replica key map data.
  • cbReplicaKeyMap
    [in] The number of bytes in pbReplicaKeyMap.
  • ppReplicaKeyMap
    [out] Returns the newly created replica key map object.

Return Value

  • S_OK

  • E_OUTOFMEMORY

  • E_POINTER

  • SYNC_E_DESERIALIZATION when the serialized data is not valid.

  • SYNC_E_INVALID_OPERATION when this object is not initialized.

  • SYNC_E_ID_FORMAT_MISMATCH if the ID format schema that is specified by pbReplicaKeyMap differs from the ID format schema that is used to initialize the IProviderSyncServices object.

See Also

Reference

IProviderSyncServices Interface