IReplicaKeyMap::LookupReplicaKey

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


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

pbReplicaId

[in] The replica ID to look up.

pdwReplicaKey

[out] Returns the replica key that corresponds to pbReplicaId.

  • 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.

Show: