[英]Activate IE Add-Ons from an BHO
I've written two objects, a deskband toolbar and a bho for IE. 我已经写了两个对象,一个桌面工具栏和一个用于IE的bho。 The goal is that the bho shows up the toolbar after installation.
目的是使bho在安装后显示工具栏。 Microsoft's approach is to use pBrowser->ShowBrowserBar(&vtBandGUID, &vtShow, 0);
微软的方法是使用pBrowser-> ShowBrowserBar(&vtBandGUID,&vtShow,0);。
This method is nice to show and hide toolbars which got already activated via the addon manager but does not work for deactivated addons. 此方法非常适合显示和隐藏已通过插件管理器激活的工具栏,但不适用于停用的插件。 Is there a way to do exactly the same thing as the addon manager does (enabling / disabling specific addons) just programmatically?
是否有一种方法可以通过编程方式与插件管理器(启用/禁用特定插件)完全相同?
You should clarify your question. 您应该澄清您的问题。
Writing code to activate add-ons that the user has specifically disabled could be considered malicious behavior and could result in the application in question being marked as malware. 编写代码来激活用户明确禁用的加载项可以被认为是恶意行为,并且可能导致所涉及的应用程序被标记为恶意软件。
您可以通过在此注册表项中添加/删除一个值为1的DWORD注册表值“ Flags”来启用/禁用BHO:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\Settings\<BHO CLSID>
Also, the 0
value of Flags
means enabled. 同样,
Flags
的0
值表示已启用。 1
means disabled. 1
表示禁用。
Sometimes other values than 1 are entered (for example 256). 有时输入的值不是1(例如256)。
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\Settings\<BHO CLSID>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.