public static extern int WNetConnectionDialog(IntPtr whnd, int dwType); [DllImport("mpr.dll", CharSet = CharSet.Auto)]