[DllImport("ntdsapi.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern int DsGetDomainControllerInfo( IntPtr hDS, string DomainName, DS_DOMAIN_INFO_LEVEL InfoLevel, out IntPtr pDCI );
Microsoft documentation: Link
Last updated 1 year ago