コード例 #1
0
ファイル: RasFuncs.cs プロジェクト: mxride/Confirmed-Windows
        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
ファイル: RAS.cs プロジェクト: anarcher/enso-commands
 public static extern bool RasDialDlg(
     IntPtr phoneBook,
     string entryName,
     IntPtr phoneNumber,
     ref RASDIALDLG info);