Re: Capturing an event from a BHO



"L.Hema Priya" <lmhp@xxxxxxxxx> wrote in message
news:6a907947b80a47aba5dcfef5830c45bb@xxxxxxxxxxx
I did as u told. I implemented the IOleCommandTarget interface to
detect button click.
I also got the idea to use IServiceProvider.GetService method to get
the IWebBrowserApp service.
Now my doubt is how to use the IWebBrowserApp to get an instances of
IWebBrowser2.

When you call QueryService, pass SID_SWebBrowserApp for service GUID and
IID_IWebBrowser2 for interface IID. You'll get back IWebBrowser2
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


.