public static bool connectToVPNDlg(string vpnName) { RASDIALDLG info = new RASDIALDLG(); info.dwSize = Marshal.SizeOf(info); bool ret = RasDialDlg(IntPtr.Zero, vpnName, IntPtr.Zero, ref info); return(ret); }
public static extern bool RasDialDlg( IntPtr phoneBook, string entryName, IntPtr phoneNumber, ref RASDIALDLG info);