Re: Pointer to IHTMLWindow2 inside Passthru APP using back/forward, refresh



"Max K." <maxkl@xxxxxxxxxxxxx> wrote in message
news:1173150406.609019.160200@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am using Igor's Passthru APP. I need to get pointers to
IHTMLWindow2 to access DOM inside IHTTPNegotiate::OnResponse()
method. I am calling QueryService for IHTMLWindow2 on given target
IInternetProtocolSink (which I get in start method).

I'm surprised it has worked for you with any reliability. In my
experience, it works quite rarely.

I don't know any good, easy way to get from APP to the document that
requested the navigation. The best approach I've discovered so far is
described here:

http://groups.google.com/group/microsoft.public.inetsdk.programming.webbrowser_ctl/browse_frm/thread/3a255f3cf3f827df

This gives you HWND of MSHTML window: it usually requires external help
(e.g. from the application that registered the APP in the first place)
to map this HWND to, say, IHTMLWindow2 pointer.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.