[DllImport("Mpr.dll", SetLastError = true)] public static extern uint WNetAddConnection2( ref NETRESOURCE lpNetResource, string lpPassword, string lpUserName, uint dwFlags );
Microsoft documentation: Link
Last updated 1 year ago