IReplicaKeyMap::LookupReplicaKey method (winsync.h)

Gets the replica key that corresponds to the specified replica ID.

Syntax

HRESULT LookupReplicaKey(
  [in]  const BYTE *pbReplicaId,
  [out] DWORD      *pdwReplicaKey
);

Parameters

[in] pbReplicaId

The replica ID to look up.

[out] pdwReplicaKey

Returns the replica key that corresponds to pbReplicaId.

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_POINTER
SYNC_E_ID_FORMAT_MISMATCH
When pbReplicaId is not in the format that is specified by the ID format schema of the provider.
SYNC_E_REPLICA_NOT_FOUND
When pbReplicaId is not found.

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

IReplicaKeyMap Interface