IReplicaMetadata::GetReplicaId

Gets the ID of the replica that is associated with this metadata.


HRESULT GetReplicaId(
  BYTE * pbReplicaId,
  ULONG * pcbReplicaId);

pbReplicaId

[in, out, size_is(*pcbReplicaId), unique] Returns the ID of the replica that is associated with this metadata.

pcbReplicaId

[in, out] Specifies the number of bytes in pbReplicaId. Returns the required number of bytes for pbReplicaId when pbReplicaId is too small, or the number of bytes written to pbReplicaId when data is written.

  • S_OK

  • E_POINTER

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbReplicaId is too small. In this case, pcbReplicaId returns the number of bytes required.

A replica ID uniquely identifies a replica to a synchronization community.

Show: