[DllImport("Mpr.dll", SetLastError = true)] public static extern uint WNetGetConnection( string lpLocalName, StringBuilder lpRemoteName, ref int lpnLength );
Microsoft documentation: Link
Last updated 1 year ago