The NetGetAnyDCName function is obsolete. It is provided only for compatibility with 16-bit versions of Windows. For NT5 and subsequent versions, Win32-based applications should use the DSGetDCName function.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmaccess.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, NetGetDCName