Solved

How to communicate with DLL loaded in address space of Internet Explorer ?

Posted on 2004-10-17
3
234 Views
Last Modified: 2013-11-20
Hello All
I have wrote one Browser Helper Object in ATL, As you know that BHO is
just a DLL which Internet Explorer loads each time when it starts.
That means that BHO runs in the address space of Internet Explorer and
works with Internet Explorer.
         Now I want to call one function of the BHO ( e.g.If
IDiscovery is my BHO , then I want to call
IDisocvery::CallThisFunction() from a third application) I want to
start the working of BHO explicitly.It Means that I want to control
the BHO which is loaded in address space of Internet Explorer from
another application. There might be many instances of Internet
Explorer,each one having the BHO (Dll) mapped in its address space. So
how can I communicate with the DLL loaded in the address space of
specific instance of Internet Explorer ?
        In short,I want a flexible way to communicate with my BHO. I
have already used WM_COPYDATA (IPC mechanism ) to send some data from
BHO to my application. but this type of communication is something
different. Here I am  communicating with DLL mapped in the address
space of the another process.
Can anyone shed some light on this problem and tell how I can achieve
this communication ?
0
Comment
Question by:rollocool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:OnegaZhang
ID: 12336393
try the following
register BHO in ROT
GetRunningObjectTable
IRunningObjectTable::Register

in client program , use IRunningObjectTable::EnumRunning to get all BHO instance and find out the one you are interested in.

welcome to www.fruitfruit.com
0
 
LVL 12

Accepted Solution

by:
OnegaZhang earned 250 total points
ID: 12336396
http://www.codeguru.com/Cpp/COM-Tech/atl/misc/article.php/c7387/
Interprocess Communication Using the Running Object Table (ROT)

welcome to www.fruitfruit.com
0
 
LVL 2

Expert Comment

by:raed_hasan
ID: 12336791
I did one since long time with help with this nice article
http://www.15seconds.com/issue/040331.htm
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 54
Windows Drag & Drop Location 2 112
fizzArray  challenge 1 109
Thin secure Windows 10 5 108
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question