DsReplicaVerifyObjectsA function (ntdsapi.h)

The DsReplicaVerifyObjects function verifies all objects for a naming context with a source.


NTDSAPI DWORD DsReplicaVerifyObjectsA(
  [in] HANDLE     hDS,
  [in] LPCSTR     NameContext,
  [in] const UUID *pUuidDsaSrc,
  [in] ULONG      ulOptions


[in] hDS

Contains a directory service handle obtained from either the DSBind, DSBindWithCred, or DsBindWithSpn function.

[in] NameContext

Pointer to a null-terminated string that contains the distinguished name of the naming context.

[in] pUuidDsaSrc

Pointer to a UUID value that contains the objectGuid of the directory system agent object.

[in] ulOptions

Contains a set of flags that modify the behavior of the function. This can be zero or the following value.


Do not delete objects in response to this function.

Return value

Returns ERROR_SUCCESS if successful or a Win32 error otherwise. Possible error values include the following.



The ntdsapi.h header defines DsReplicaVerifyObjects as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.


Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header ntdsapi.h
Library Ntdsapi.lib
DLL Ntdsapi.dll

See also

Domain Controller and Replication Management Functions