using System.IO; using System.Runtime.InteropServices; [DllImport("kernel32.dll")] public static extern IntPtr _lopen(string lpPathName, int iReadWrite); [DllImport("kernel32.dll")] public static extern bool CloseHandle(IntPtr hObj
引用Microsoft HTML Object Library 引用 -> com -> Microsoft HTML Object Library 引用后,显示如图 1.判断ie浏览器是否已经打开了指定Url SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindows(); bool hasCurrentUrl = false; foreach (SHDocVw.InternetExplorer browser in shellW