IReplicaKeyMap::LookupReplicaId

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

Syntax

HRESULT LookupReplicaId( 
  DWORD dwReplicaKey,
  BYTE *pbReplicaId,
  DWORD *pcbIdSize);

Parameters

  • dwReplicaKey
    [in] The replica key to look up.

  • pbReplicaId
    [in, out, unique, size_is(*pcbIdSize)] Returns the replica ID that corresponds to dwReplicaKey.

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

  • SYNC_E_REPLICA_NOT_FOUND when dwReplicaKey is not found.

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbReplicaId is too small. In this case, the required number of bytes is returned in pcbIdSize.

See Also

Reference

IReplicaKeyMap Interface