IReplicaMetadata::GetReplicaId
Gets the ID of the replica that is associated with this metadata.
Syntax
HRESULT GetReplicaId(
BYTE * pbReplicaId,
ULONG * pcbReplicaId);
Parameters
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.
Return Value
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.
Remarks
A replica ID uniquely identifies a replica to a synchronization community.