Directory Services |
The DsReplicaGetInfo function retrieves replication state data from the directory service.
DWORD DsReplicaGetInfo( HANDLE hDS, DS_REPL_INFO_TYPE InfoType, LPCWSTR pszObject, UUID* puuidForSourceDsaObjGuid, VOID** ppInfo );
Only the following values are supported for this function. If other data types are required, the DsReplicaGetInfo2 function must be used.
DS_REPL_INFO_NEIGHBORS
DS_REPL_INFO_CURSORS_FOR_NC
DS_REPL_INFO_METADATA_FOR_OBJ
DS_REPL_INFO_KCC_DSA_CONNECT_FAILURES
DS_REPL_INFO_KCC_DSA_LINK_FAILURES
DS_REPL_INFO_PENDING_OPS
Value | Meaning |
---|---|
DS_REPL_INFO_NEIGHBORS | pszObject identifies the naming context for which replication neighbors are requested. |
DS_REPL_INFO_CURSORS_FOR_NC | pszObject identifies the naming context for which replication cursors are requested. |
DS_REPL_INFO_METADATA_FOR_OBJ | pszObject identifies the object for which replication metadata is requested. |
DS_REPL_INFO_KCC_DSA_CONNECT_FAILURES | pszObject must be NULL. |
DS_REPL_INFO_KCC_DSA_LINK_FAILURES | pszObject must be NULL. |
DS_REPL_INFO_PENDING_OPS | pszObject must be NULL. |
The caller must free this memory when it is no longer required by calling DsReplicaFreeInfo.
Return Code | Description |
---|---|
ERROR_INVALID_PARAMETER | One or more parameters are invalid. |
ERROR_NOT_SUPPORTED | The requested version of the directory service server extensions is not supported. |
ERROR_DS_DRA_ACCESS_DENIED | The user associated with the credentials tied to hDS does not have sufficient privileges to read the requested replication state data. The user must have the Manage Replication Topology control access right on the root of the naming context containing pszObject, or the root of the local domain if pszObject is NULL. |
ERROR_DS_DRA_BAD_DN | pszObject is not an appropriate distinguished name. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Unicode: Implemented only as Unicode.
Header: Declared in Ntdsapi.h.
Library: Use Ntdsapi.lib.
DsBind, DsBindWithCred, DsReplicaGetInfo2, DsReplicaFreeInfo, DS_REPL_INFO_TYPE, Domain Controller and Replication Management Functions