DsReplicaSync function
The DsReplicaSync function synchronizes a destination naming context (NC) with one of its sources.
Syntax
DWORD DsReplicaSync(
_In_ HANDLE hDS,
_In_ LPCTSTR NameContext,
_In_ const UUID *pUuidDsaSrc,
_In_ ULONG Options
);
Parameters
- hDS [in]
-
Contains a directory service handle obtained from either the DSBind or DSBindWithCred function.
- NameContext [in]
-
Pointer to a constant null-terminated string that specifies the distinguished name of the destination NC.
- pUuidDsaSrc [in]
-
Pointer to the UUID of a source that replicates to the destination NC.
- Options [in]
-
Passes additional data used to process the request. This parameter can be a combination of the following values.
Return value
If the function performs its operation successfully, the return value is ERROR_SUCCESS.
If the function fails, the return value is one of the standard Win32 API errors.
Remarks
The server that DsReplicaSync executes on is called the destination. The destination naming context is brought up-to-date with respect to a source system, identified by the UUID of the source system NTDS Settings object. The destination system must already be configured so that the source system is one of the systems from which it receives replication data.
Note Forcing manual synchronization can prevent the directory service from properly prioritizing replication operations. For example, synchronizing a new user may preempt an urgent synchronization performed to provide access to a recently locked out user or to add a new trust password. If you call this API often, you can flood the network with requests, which can interfere with other replication operations. For this reason, it is strongly recommended that this function be used only for single-use scenarios rather than incorporating it into an application that would use it on a regular basis.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Redistributable | Active Directory Client Extension on Windows NT 4.0 and Windows Me/98/95 |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | DsReplicaSyncW (Unicode) and DsReplicaSyncA (ANSI) |
See also
- Domain Controller and Replication Management Functions
- DsReplicaAdd
- DsReplicaDel
- DsReplicaModify
- DsReplicaUpdateRefs
Send comments about this topic to Microsoft
Build date: 10/26/2012