Last updated 1 year ago
[DllImport("ntdsapi.dll", SetLastError = true)] public static extern int DsUnBind( ref IntPtr phDS );
Microsoft documentation: