bho

IE Crashing when exposing Methods for JS

…衆ロ難τιáo~ 提交于 2021-02-11 15:34:21
问题 I am developing a BHO for IE in C#. The issue I am stuck in is that IE crashes by saying that "Internet Explorer has stopped working" then "A problem with the webpage caused Internet Explorer to close and open the tab again" This behavior is observed on Windows 10 Pro 2016 and IE 11. However same BHO is working fine on other versions of Windows like Windows 8.1 - IE 11, Windows 10 2019,2020 - IE 11. This usually occurs on navigating to a link in the already opened tab or on refreshing the

IE Crashing when exposing Methods for JS

假装没事ソ 提交于 2021-02-11 15:33:21
问题 I am developing a BHO for IE in C#. The issue I am stuck in is that IE crashes by saying that "Internet Explorer has stopped working" then "A problem with the webpage caused Internet Explorer to close and open the tab again" This behavior is observed on Windows 10 Pro 2016 and IE 11. However same BHO is working fine on other versions of Windows like Windows 8.1 - IE 11, Windows 10 2019,2020 - IE 11. This usually occurs on navigating to a link in the already opened tab or on refreshing the

What is the simpliest way to install a BHO

社会主义新天地 提交于 2021-02-08 07:21:47
问题 I am not a windows programmer but it seems that I have to do an extension for Internet explorer. I made a BHO with the help of this thread : How to get started with developing Internet Explorer extensions? I did it, it "works" with VS's debug mode. Now I want a way to install it on a target machine. I know there is a lot of thread all over internet but half of it don't work for me and I can't understand the other half. Windows's system programming is not a trivia for me and I really need help

IE opening new tab about:blank instead of Webpage

邮差的信 提交于 2021-02-05 09:48:07
问题 I am developing a BHO for IE in C# that controls the navigation flow of IE by checking the URL in onBeforeNavigateEvent. Everything works fine except that when a link is opened in a new tab then some of the tabs opened as About:Blank. I have checked the logs and also debugged the BHO no exception is thrown. However in the case of About:Blank BHO is initiated SetSite and GetSite methods are called but navigation event is not fired. Also it happens when links are opened in new tab rapidly. For

IE opening new tab about:blank instead of Webpage

爱⌒轻易说出口 提交于 2021-02-05 09:48:05
问题 I am developing a BHO for IE in C# that controls the navigation flow of IE by checking the URL in onBeforeNavigateEvent. Everything works fine except that when a link is opened in a new tab then some of the tabs opened as About:Blank. I have checked the logs and also debugged the BHO no exception is thrown. However in the case of About:Blank BHO is initiated SetSite and GetSite methods are called but navigation event is not fired. Also it happens when links are opened in new tab rapidly. For

Accessing named pipe servers from within IE EPM BHO

无人久伴 提交于 2020-01-25 04:29:06
问题 I am trying to make some changes to our legacy product to support IE EPM on the BHO. I have managed to get it to load and the various methods - SetSite, DocumentComplete etc. - get invoked. I seem to be hitting a snag when trying to connect to the named pipe server running inside a Windows Service. Previously, we had already made changes to allow IE BHO in protected mode to access the named pipe server - using LOW_INTEGRITY_SDDL_SACL ("S:(ML;;NW;;;LW)"). Within the code, we were using

Advising an HTML control: when should I call DispEventUnadvise?

丶灬走出姿态 提交于 2020-01-15 03:49:27
问题 I use DispEventAdvise in a BHO in order to capture onclick events of a specific checkbox. You can see the code in my previous question (although it's not that relevant). In order to be able to call DispEventUnadvise later, I keep a reference to the IHTMLElement object of the checkbox. When should I call DispEventUnadvise ? Is there a way to know when the checkbox is going away? Is it even legal to keep a reference to the IHTMLElement object? I mean, when the page is destroyed, and there's

How to embed an image on a web page from a BHO?

旧城冷巷雨未停 提交于 2020-01-13 13:50:44
问题 I have a BHO library mybho.dll written in C#. I have embedded a Resource file "image.png". I'd like to show this image on some pages. According to what I read, it should look like this: <img src="res://mybho.dll/image.png"> But Internet Explorer does not find the image. I've tried this one without success: <img src="res://mybho.dll/#2/image.png"> What is the right way to do it? 回答1: You are confusing Win32 resources and .NET assembly resources. the 'res:' protocol handler returns a Win32