Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Adds entries to or finds entries in an IReplicaKeyMap object.
Syntax
HRESULT FindOrAddReplica(
const BYTE * pbReplicaId,
DWORD * pdwReplicaKey);
Parameters
pbReplicaId
[in] The ID of the replica to add or find.pdwReplicaKey
[out] The key of the replica in the map. If an entry for pbReplicaId does not exist in the map, an entry is created and a new key is assigned to it.
Return Value
S_OK
E_POINTER
SYNC_E_ID_FORMAT_MISMATCH when pbReplicaId is not of the format that the provider specified.