C language function:DsReplicaGetInfo sample codesSearch sample code in the internet.It is the result.
TITLE : DsReplicaGetInfo function (Windows)
TITLE : Repadmin diagnoses Active Directory replication issues in Windows
In the output, there is a section for the command running on each DC. If the attributes are listed, the object has been replicated. But if an error occurs, such as DsReplicaGetInfo() failed with status 8333, then the object has not yet been replicated to that DC........