I would like BHO instances of my IE extension to be able to share common data. I just need them to share a couple of variables, so I'm trying to find an easy solution to the problem.
Alternatives that I can think of, from simpler to more complex:
1) Writing / reading data to / from the file system or to the registry, see MSDN article and Codeproject article . Question : is this information available from BHO instances running on different threads?
2) Development of a Windows service or background application that interacts with all BHO instances, see the MSDN article . Problem . I have no IDEA how to do this or where to start. I am worried that the user has to install many things.
3) Providing IPC mechanisms so that different instances of BHO can communicate directly with each other. Similar to using IGlobalInterfaceTable, see ookii article . Problem . Yes, you can store pointers in this IGlobalInterfaceTable and get cookies to access them, but how can you share one cookie received in instance BHO 1 with BHO instance 2 so that the second instance can access the data inserted into IGlobalInterfaceTable first? Don't we have the same data exchange problem here?
Well, as you can see, after a whole week of finding a solution, I just donβt know how to start dealing with this problem. Any help would be greatly appreciated.
source share