BHO,好厉害的东东

这只是我个人的资料搜集,并不是介绍性的文章,很乱而没有条理,见谅。


MSDN中一篇文章,介绍Browser Helper Objects,真是定制IE的利器啊。一搜和QQ都用过这种技术。值得研究,但这种技术不应该被滥用,否则,真的不敢用IE了。

屏蔽掉BHO:
如果不希望IE运行BHO,可以 进控制面板,找到“Internet选项”,进入“高级”页,在“浏览”栏下,取消“启用第三方浏览器扩展”前面的钩,重新启动IE。我做了,哇!,整个天空干净了,打开IE时硬盘再也不哗啦哗啦响了。嗯,我这是什么态度啊?


There are some requirements when creating a Browser Helper Object

The application that you create must be an in-proc server (that is, DLL).
This DLL must implement IObjectWithSite.
The IObjectWithSite::SetSite() method must be implemented. It is through this method that your application receives a pointer to Internet Explorer's IUnknown. (Internet Explorer actually passes a pointer to IWebBrowser2 but the implementation of SetSite() receives a pointer to IUnknown.) You can use this IUnknown pointer to automate Internet Explorer or to sink events from Internet Explorer.
It must be registered as a Browser Helper Object as described above.

每开一个IE窗口,或打开资源浏览器窗口,会寻找注册表中:
      HKLM\SOFTWARE\Microsoft\Windows \CurrentVersion\Explorer\Browser Helper Objects
下的CLSID,并加载实例。


参考阅读文档:http://msdn.microsoft.com/ie/iedev/default.aspx

                            http://support.microsoft.com/default.aspx?scid=kb;en-us;322178

                           http://www.cnblogs.com/hbifts/articles/24265.html
                          http://support.microsoft.com/kb/179230/EN-US/
                             http://support.microsoft.com/default.aspx?scid=kb;en-us;298931
                            http://www.microsoft.com/mind/0598/browhelp.asp
                             http://blog.joycode.com/lostinet/archive/2005/02/27/45013.aspx

posted @   坐看云起  阅读(15143)  评论(3编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示