所以我想到了一种方法来编写一个关闭所有Internet Explorer实例的程序。使用Windows API终止所有iexplore.exe进程或枚举Internet Explorer窗口并以这种方式关闭它会更好吗? (使用enumwindows)。
答案 0 :(得分:0)
我知道现在已经很晚了,但是:
https://blogs.msdn.microsoft.com/oldnewthing/20040720-00/?p=38393/
您只需要方法RecalcText()中的前2个IF。粘贴此代码:
push
它将关闭所有探险家。不仅是Internet Explorers,还有文件夹浏览器。适用于桌面(在Windows 7上测试)。