Directory Services


The SyncUpdateProc function is an application-defined function that handles update messages passed from the DsReplicaSyncAll function. SyncUpdateProc is a placeholder for the application-defined callback function name.

BOOL SyncUpdateProc(
  LPVOID pData,


Pointer to application-defined data passed in the pCallbackData parameter of the DsReplicaSyncAll function.
Pointer to a DS_REPSYNCALL_UPDATE structure that describes the event in the DsReplicaSyncAll function that caused the SyncUpdateProc callback function to be called.

Return Values

Execution of the DsReplicaSyncAll function pauses when it calls the SyncUpdateProc callback function. If SyncUpdateProc returns TRUE, execution of DsReplicaSyncAll resumes. Otherwise, the DsReplicaSyncAll function terminates.


You may use the SyncUpdateProc callback function to display the status of a DsReplicaSyncAll call to the user. The callback might also inform the user that the DsReplicaSyncAll function has encountered an error while synchronizing two servers, then query the user whether to continue synchronizing other servers or to stop replication.

The DsReplicaSyncAll function calls SyncUpdateProc when any of four events occur:

The nature of the event that caused the DsReplicaSyncAll function to call SyncUpdateProc is stored in the event member of the DS_REPSYNCALL_UPDATE structure pointed to by the pUpdate parameter.


Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Ntdsapi.h.

See Also

DS_REPSYNCALL_UPDATE, DsReplicaSyncAll, Domain Controller and Replication Management Functions