首页 > 代码库 > 检测 BHO 启用状态

检测 BHO 启用状态

禁用:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\

启用:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Stats\

 

示例:

1.禁用

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{C59D3771-0E3E-48B8-97C5-9CD2C091CF09}] "Flags"=dword:00000001 "Version"="*"

 

2.启用

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Stats\{C59D3771-0E3E-48B8-97C5-9CD2C091CF09}]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Stats\{C59D3771-0E3E-48B8-97C5-9CD2C091CF09}\iexplore] "Type"=dword:00000003 "Flags"=dword:00000000 "Count"=dword:000003e1 "Time"=hex:de,07,0b,00,04,00,1b,00,0d,00,1e,00,25,00,34,02 "Blocked"=dword:000000a3 "LoadTimeArray"=hex:21,89,00,00,d8,00,00,00,3f,01,00,00,dc,00,00,00,99,06,00,\   00,ed,00,00,00,f5,00,00,00,00,00,00,00,b2,00,00,00,d3,00,00,00

 

MSDN 论坛原文:

Add the BHO‘s CLSID under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\[Settings] and [Stats]; the presence of the CLSID under [Stats] with a subkey of "iexplore" with a non-zero "Blocked" value of is actually what blocks the object. I don‘t think the stuff under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext is documented; as I recall, "Time" is when the object was last requested, "Count" is how many activation requests have been received for the object, "Blocked" is how many of those requests were blocked, and "Type" is the type of the object (control, extension, BHO, don‘t remember what else). Find the CLSID of a BHO, block that BHO in Manage Add-ons, and then clone the values as a starting point.

 

检测 BHO 启用状态