DsReplicaDel function
The DsReplicaDel function removes a replication source reference from a destination naming context (NC).
Syntax
DWORD DsReplicaDel( _In_ HANDLE hDS, _In_ LPCTSTR NameContext, _In_ LPCTSTR DsaSrc, _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 (DN) of the destination NC from which to remove the replica. The destination NC record must exist locally as either an object, instantiated or not, or a reference phantom, for example, a phantom with a GUID.
- DsaSrc [in]
-
Pointer to a constant null-terminated Unicode string that specifies the transport-specific address of the source directory system agent (DSA). This source server is identified by a string name, not by its UUID. A string name appropriate for DsaSrc is usually a DNS name that is based on a GUID, where the GUID part of the name is the GUID of the nTDSDSA object for the source server.
- 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 succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a standard Win32 API error or ERROR_INVALID_PARAMETER if a parameter is invalid.
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 | DsReplicaDelW (Unicode) and DsReplicaDelA (ANSI) |
See also
- Domain Controller and Replication Management Functions
- DsReplicaAdd
- DsReplicaModify
- DsReplicaSync
- DsReplicaUpdateRefs
Send comments about this topic to Microsoft
Build date: 10/26/2012