Platform SDK: Active Directory, ADSI, and Directory Services |
The DsListServersInSite function lists all the servers in a site.
DWORD DsListServersInSite( HANDLE hDs, LPTSTR site, PDS_NAME_RESULT *ppServers );
If the function returns a list of servers, the return value is NO_ERROR.
If the function fails, the return value can be one of the following error codes.
Individual name conversion errors are reported in the returned DS_NAME_RESULT structure.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntdsapi.h.
Library: Included as a resource in Ntdsapi.dll.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
DC and Replication Management Functions, DsFreeNameResult, DS_NAME_RESULT