Activate IE add-ons from BHO

I wrote two objects, a desktop toolbar and a bho for IE. The goal is for bho to display the toolbar after installation. Microsoft's approach is to use pBrowser-> ShowBrowserBar (& vtBandGUID, & vtShow, 0);

This method is good for showing and hiding toolbars that are already activated with the addon manager, but do not work for deactivated addons. Is there a way to do the same as the addon manager (enable / disable certain addons) just programmatically?

0


a source to share


3 answers


You should clarify your question.



Writing code to activate add-ons that the user has disabled can be considered malicious behavior and could result in the specified application being flagged as malware.

+3


a source


You can enable / disable BHOs ​​by adding / removing a DWORD registry value called "Flags" with a value of 1 to this key:



HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\Settings\<BHO CLSID>

      

+2


a source


Also, the value 0

Flags

means it is on. 1

means it is disabled.

Sometimes values ​​other than 1 are entered (for example, 256).

HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Ext\Settings\<BHO CLSID>

      

0


a source







All Articles