IReplicaKeyMap::LookupReplicaKey

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

HRESULT LookupReplicaKey( 
  const BYTE *pbReplicaId,
  DWORD *pdwReplicaKey);

Parameters

  • pbReplicaId
    [in] The replica ID to look up.
  • pdwReplicaKey
    [out] Returns the replica key that corresponds to pbReplicaId.

Return Value

  • S_OK

  • E_POINTER

  • SYNC_E_ID_FORMAT_MISMATCH when pbReplicaId is not in the format thatis specified by the ID format schema of the provider.

  • SYNC_E_REPLICA_NOT_FOUND when pbReplicaId is not found.

See Also

Reference

IReplicaKeyMap Interface