The get functions retrieve information about a domain. Use these functions to retrieve information concerning domains, such as local and global user accounts, and workstation and server user accounts. These functions are:
MultinetGetConnectionPerformance
NetGetAnyDCName
NetGetDisplayInformationIndex
NetQueryDisplayInformation
The NetGetDCName function returns the name of the Primary Domain Controller (PDC) for the specified domain, while the NetGetAnyDCName function gets the name of any domain controller for a domain that is directly trusted by the server name. The NetGetDisplayInformationIndex function gets the index of the first display information entry whose name begins with a specified string. The NetQueryDisplayInformation function returns user, computer, or global group account information.
The information returned by NetQueryDisplayInformation is available at the following levels: