Directory Services |
The DsReplicaConsistencyCheck function invokes the Knowledge Consistency Checker (KCC) in order to verify the replication topology. The Knowledge Consistency Checker (KCC) dynamically adjusts the data replication topology of your network when domain controllers are added to or removed from the network, when a domain controller is unavailable, or when the data replication schedules are changed.
DWORD DsReplicaConsistencyCheck( HANDLE hDS, DS_KCC_TASKID TaskID, DWORD dwFlags );
Value | Meaning |
---|---|
DS_KCC_FLAG_ASYNC_OP | The task is queued and then the function returns without waiting for the task to complete. |
DS_KCC_FLAG_DAMPED | The task will not be added to the queue if another queued task will run soon. |
Return Code | Description |
---|---|
ERROR_INVALID_PARAMETER | One of the specified parameters is incorrect. |
ERROR_NOT_SUPPORTED | The requested version of the directory service server extensions is not supported. |
ERROR_DS_DRA_ACCESS_DENIED | The user associated with the credentials tied to hDS does not have sufficient privileges to read the requested replication state information. The user must have the "Manage Replication Topology" control access right on the root of the configuration naming context. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Ntdsapi.h.
Library: Use Ntdsapi.lib.
DsBind, DsBindWithCred, DsBindWithSpn, Domain Controller and Replication Management Functions