DsReplicaModify function
The DsReplicaModify function modifies an existing replication source reference for a destination naming context.
Syntax
DWORD DsReplicaModify( _In_ HANDLE hDS, _In_ LPCTSTR NameContext, _In_ const UUID *pUuidSourceDsa, _In_ LPCTSTR TransportDn, _In_ LPCTSTR SourceDsaAddress, _In_ const PSCHEDULE pSchedule, _In_ DWORD ReplicaFlags, _In_ DWORD ModifyFields, _In_ DWORD 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 naming context (NC).
- pUuidSourceDsa [in]
-
Pointer to the UUID of the source directory system agent (DSA). This parameter may be null if ModifyFields does not include DS_REPMOD_UPDATE_ADDRESS and SourceDsaAddress is not NULL.
- TransportDn [in]
-
Reserved for future use. Any value other than NULL results in ERROR_NOT_SUPPORTED being returned.
- SourceDsaAddress [in]
-
Pointer to a constant null-terminated Unicode string that specifies the transport-specific address of the source DSA. This parameter is ignored if pUuidSourceDsa is not NULL and ModifyFields does not include DS_REPMOD_UPDATE_ADDRESS.
- pSchedule [in]
-
Pointer to a SCHEDULE structure that contains the replication schedule data for the replication source. This parameter is optional and can be NULL if not used. This parameter is required if ModifyFields contains the DS_REPMOD_UPDATE_SCHEDULE flag.
- ReplicaFlags [in]
-
This parameter is used to control replication behavior and can take the following values.
Windows 2000: Any value other than 0 results in ERROR_NOT_SUPPORTED being returned. - ModifyFields [in]
-
Specifies what fields should be modified. At least one field must be specified in ModifyFields. This parameter can be a combination of the following values.
- Options [in]
-
Passes additional data used to process the request. This parameter can be a combination of the following values.
Value Meaning - DS_REPMOD_ASYNCHRONOUS_OPERATION
Performs this operation asynchronously.
- DS_REPMOD_WRITEABLE
Indicates that the replica being modified can be written to.
Return value
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value can be one of the following.
| Return code | Description |
|---|---|
|
A parameter that is not valid was specified for this replication operation. |
|
A parameter is invalid. |
|
The function caller attempted to use a parameter reserved for future use. |
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 | DsReplicaModifyW (Unicode) and DsReplicaModifyA (ANSI) |
See also
- Domain Controller and Replication Management Functions
- DsReplicaAdd
- DsReplicaDel
- DsReplicaSync
- DsReplicaUpdateRefs
- SCHEDULE
Send comments about this topic to Microsoft
Build date: 10/26/2012