因此,我正在考虑一种编写关闭Internet Explorer所有实例的程序的方法。使用windows API终止所有iexplore.exe进程还是枚举Internet Explorer窗口并关闭它会更好? (使用enumwindows)。关闭Internet Explorer的所有实例
1
A
回答
0
我知道它的晚,但:
https://blogs.msdn.microsoft.com/oldnewthing/20040720-00/?p=38393/
你只需要从方法RecalcText第2倍的IF()。粘贴此代码:
HWND hwndWBA;
pwba->get_HWND((LONG_PTR*)&hwndWBA);
InvalidateRect(hwndWBA, NULL, TRUE);
pwba->Quit();
pwba->Release();
它将关闭所有探险家。不仅是Internet Explorer,还有文件夹浏览器。在桌面上工作(在Windows 7上测试)。
+0
这仅适用于桌面。有谁知道如何在Windows CE或Windows Mobile上执行此操作? – Racky 2016-11-08 08:40:15
相关问题
- 1. 关闭Realm的所有本地实例
- 2. 关闭Http连接的所有实例
- 3. 的Visual Studio - 禁止关闭Internet Explorer中
- 4. Internet Explorer条件注释未关闭
- 5. 禁用Internet Explorer关闭按钮
- 6. PowerShell中关闭Internet Explorer摆好/清洁
- 7. DIV在Internet Explorer中关闭屏幕
- 8. Internet Explorer现有实例的控件大小和屏幕位置
- 9. 检测Internet Explorer中的插件没有实例化对象
- 10. 从Delphi的Internet Explorer现有实例获取HTML
- 11. Internet Explorer - Flexbox图像比例
- 12. 从Internet Explorer中检索所有cookie
- 13. Word Automation关闭Word的现有实例
- 14. 关闭在Windows CE 5.0中的Internet Explorer的预防
- 15. jquery-ui对话框不会在Facebook上的Internet Explorer中关闭
- 16. 如何使用mshtml关闭新打开的Internet Explorer
- 17. 如何提供关闭Internet Explorer窗口的确认?
- 18. 如何关闭Azure中的Internet Explorer增强安全设置
- 19. Internet Explorer弹出窗口和关闭窗口的问题
- 20. 如何关闭不响应的Win32 Internet Explorer COM接口?
- 21. 如何使用mshtml(c#代码)关闭新打开的Internet Explorer
- 22. 如何关闭Internet Explorer中的弹出窗口?
- 23. 实例化和关闭领域实例
- 24. OCL中的关联的所有实例
- 25. 的Internet Explorer 8和Internet Explorer 6并排
- 26. 创建使用visual c的Internet Explorer的实例#
- 27. 的Internet Explorer 9 - 调整图像比例
- 28. Internet Explorer中的字段设置图例
- 29. 如果Internet Explorer自动关闭弹出窗口阻止程序
- 30. 如何使用PostThreadMessage从C++关闭Internet Explorer
我们可以扩展到全局范围内终止IE的所有实例,而不仅仅是在您的机器上? – Maxpm 2011-06-04 04:40:44
@Maxpm LOL好的。 – johnathon 2011-06-04 06:17:34
我刚刚添加了第一个答案,但它仅适用于桌面。有谁知道如何在Windows CE或Windows Mobile上执行此操作? – Racky 2016-11-08 08:39:58