Looking for missing link IInternetProtocol/IInternetProtoclSink -> top level IWebBrowser2



Hello!

My .NET/native BHO appliction implements some data filtering and
internal protocol forwarding based partially on Igor Tandetnik's
PassThru sample application. Everything works smoothly but I face the
following design problem which so far could not be solved.

I need to change my APP protocol behaviour depending on top level
domain of the page which is loaded - unfortunately it is true for
rather large set of domains. It is simple and straightforward in case
where only one top level window is pesent, however, gets rather
difficult when many top level windows are created inside single
process. Unfortunately I could not find any link between top level
IWebBrowser2 interface and currently instantiated
IInternetProtocol/IInternetSink pair or IHttpNegotiate instance.

I have thought of possibility of using thread id on which IWebBrowser2
is instantiated but it seems to be unreliable as download process is
done in a multithreaded way.

Any ideas?

Cheers

http://sourceforge.net/projects/ngmp

.