日志标签 ‘BHO’

了解并运行 Internet Explorer 保护模式

2008年12月2日

了解并运行 Internet Explorer 保护模式

为什么setsite会不被调用

2008年10月29日

昨日从msdn上看到一个鲜为人知的技巧,原文如下:

it is a lesser known fact that IE relies on GetSite to determine who “owns” the control or BHO. If the control doesn’t return the original site when requested, IE will not call SetSite(NULL) upon uninitialization.

翻译为:当IE调用你的bho的getsite方法时如果你没有将setsite方法出入的参数原封不动的传给IE,那么你的setsite(NULL)将不会被调用。这是极其极其重要的一个特性,却极少有人关注和了解。我们常常会在setsite(NULL)中做一些释放资源的事情,所以这个调用也是至关重要的。

注意:MSDN中没有相关介绍。

用VisualStudio2005生成浏览器帮助对象

2007年12月21日

重要文献:http://news.newhua.com/html/Soft_Deve/2007-2/6/072611344925093_86.shtml

Prevent a Browser Helper Object (BHO) from loading with Explorer.exe instances

2007年12月21日

Browser Helper Objects (BHOs) are in-process Component Object Model (COM) components—that Internet Explorer will load each time it starts up. Such objects run in the same memory context as the browser and can perform any action on the available windows and modules. BHOs are triggered for each Internet Explorer and Explorer processes (iexplore.exe and explorer.exe processes). This means that » 阅读更多: Prevent a Browser Helper Object (BHO) from loading with Explorer.exe instances