bho

Calling C# BHO methods from Javascript (still not working)

故事扮演 提交于 2019-12-23 09:18:01
问题 I followed this answer exactly and read and reread all google findings. Unfortunately mostly all of them simply the copy and pastes of the referenced answer (including the 'Stop banging your head against the wall and go celebrate!') sentence and it does not work for me... So after a half day working I am really about to start banging my head... My simple error: The javascript windows.myExtension object is 'undefined' so calling Foo on it throws error. See the full source below. It seems the

Regasm BHO from C# Code

橙三吉。 提交于 2019-12-23 05:36:10
问题 I have DLL With BHO IE Plugin. And I use " regasm.exe /codebase myBHO.dll " to register my dll. Is there any C# code to regasm my DLL in windows application? 回答1: Create a dedicated installer for this. For quick debugging cycles from Visual Studio, setup some Build Events like so: "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64\gacutil.exe" /f /i $(TargetDir)$(TargetFileName) "%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe" /unregister $(TargetDir)$

64bit BHO not loading inside IE 9 64

风格不统一 提交于 2019-12-22 10:59:33
问题 I've created a 32-bit and 64-bit version of my BHO (C++ code). The 32-bit version loads fine in IE 9 32-bit, but not the 64-bit version in IE 9 64 on WIndows 7. I have double checked that: the 64-bit DLL is indeed 64-bit code ( dumpbin /headers on the DLL) Registry entries HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects and HKEY_CLASSES_ROOT\Wow6432Node\CLSID are correct my IE 64-bit can load 3rd party extension (2 BHO are actually

How can i set the name of IE Extension (BHO In IE)

ⅰ亾dé卋堺 提交于 2019-12-22 09:56:14
问题 How Can i Set the Name of the BHO appear in IE Extension (e.g Manage Addons).. The Name that Appear in the Internet Explorer Addons list is the Namespace of my program when i attach it with regasm.exe. how can i set the name of that.?... Thanks. 回答1: I am working on a C# BHO, and was struggling with this very same question. If you're working with C#, one approach that can be taken is to add code similar to the following in the method that is marked with the ComRegisterFunction attribute. This

Securing a Browser Helper Object

扶醉桌前 提交于 2019-12-21 09:25:18
问题 I'm currently in the process of building a browser helper object. One of the things the BHO has to do is to make cross-site requests that bypass the cross-domain policy. For this, I'm exposing a __MyBHONameSpace.Request method that uses WebClient internally. However, it has occurred to me that anyone that is using my BHO now has a CSRF vulnerability everywhere as a smart attacker can now make arbitrary requests from my clients' computers. Is there any clever way to mitigate this? 回答1: The

Activate IE Add-Ons from an BHO

为君一笑 提交于 2019-12-20 07:27:45
问题 I've written two objects, a deskband toolbar and a bho for IE. The goal is that the bho shows up the toolbar after installation. Microsoft's approach is to use 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? 回答1: You should

How to lower integrity of WCF named pipe

点点圈 提交于 2019-12-19 03:22:24
问题 I have an Internet Explorer add-in, written in C#, which talks via a WCF named-pipe to a .NET desktop application. The desktop app creates the ServiceHost for the netNamedPipeBinding, and each instance of the IE add-in creates a ChannelFactory to talk to the app. Everything works fine under Windows XP, but an exception is thrown under IE's protected mode in Windows 7. System.ServiceModel.CommunicationException: Cannot connect to endpoint 'net.pipe://localhost/MyApp.MyID'. ---> System.IO

How to lower integrity of WCF named pipe

大憨熊 提交于 2019-12-19 03:22:22
问题 I have an Internet Explorer add-in, written in C#, which talks via a WCF named-pipe to a .NET desktop application. The desktop app creates the ServiceHost for the netNamedPipeBinding, and each instance of the IE add-in creates a ChannelFactory to talk to the app. Everything works fine under Windows XP, but an exception is thrown under IE's protected mode in Windows 7. System.ServiceModel.CommunicationException: Cannot connect to endpoint 'net.pipe://localhost/MyApp.MyID'. ---> System.IO

Is there a way to create a named pipe from an AppContainer BHO on IE11?

做~自己de王妃 提交于 2019-12-18 04:54:27
问题 I'm trying to write a BHO for Internet Explorer 11 (Windows 8.1). My BHO implements the AppContainer sandbox, but I can't seem to create a Named Pipe, CreateNamedPipe fails with that message: Access is denied. Here's the code I'm using to create the named pipe (which I found on a russian website, last comment: LPCWSTR LOW_INTEGRITY_SDDL_SACL_W = L"S:(ML;;NW;;;LW)D:(A;;0x120083;;;WD)(A;;0x120083;;;AC)"; PSECURITY_DESCRIPTOR pSD = NULL; ConvertStringSecurityDescriptorToSecurityDescriptorW ( LOW

Calling BHO method from Javascript?

久未见 提交于 2019-12-18 02:47:44
问题 I am trying to call my BHO method from the javascript. The problem is same as stated in the the following posts: Call BHO from Javascript function http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/91d4076e-4795-4d9e-9b07-5b9c9eca62fb/ Calling C++ function from JavaScript script running in a web browser control Third link is another SO post talking about it, but I did not understand the need and code. Also the shared working sample keeps crashing on windows 7 with ie