ISyncKnowledge::GetOwnerReplicaId
Gets the ID of the replica that owns this knowledge.
HRESULT GetOwnerReplicaId(
BYTE *pbReplicaId,
DWORD *pcbIdSize);
Parameters
- pbReplicaId
[in, out, unique, size_is(*pcbIdSize)] Returns the ID of the replica that owns this knowledge.
- pcbIdSize
[in, out] Specifies the number of bytes in pbReplicaId. Returns the number of bytes required to retrieve the ID when pbReplicaId is too small, or returns the number of bytes written.
Return Value
S_OK
E_INVALIDARG
HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbReplicaId is too small. In this case, the required number of bytes is returned in pcbIdSize.
Remarks
Knowledge is valid only to the replica that owns it. To use knowledge from a replica that differs from the owning replica, the knowledge must first be converted by using ISyncKnowledge::MapRemoteToLocal.