예제 #1
0
        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);
        }
예제 #2
0
 public static extern bool RasDialDlg(
     IntPtr phoneBook,
     string entryName,
     IntPtr phoneNumber,
     ref RASDIALDLG info);