[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern uint NetGetJoinInformation( string Server, out IntPtr Buffer, out JoinStatus Status );
Microsoft documentation: Link
Last updated 1 year ago