[DllImport("ntdsapi.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern int DsBind( string DomainControllerName, string DnsDomainName, out IntPtr phDS );
Microsoft documentation: Link
Last updated 1 year ago