ISyncKnowledge::GetOwnerReplicaId method (winsync.h)

Gets the ID of the replica that owns this knowledge.

Syntax

HRESULT GetOwnerReplicaId(
  [in, out] BYTE  *pbReplicaId,
  [in, out] DWORD *pcbIdSize
);

Parameters

[in, out] pbReplicaId

Returns the ID of the replica that owns this knowledge.

[in, out] pcbIdSize

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

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
S_OK
The method succeeded.
E_INVALIDARG
HRESULT_FROM_WIN32(ERROR_MORE_DATA)
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.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winsync.h

See also

ISyncKnowledge Interface