Re: Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 19 Apr 2005 12:13:21 -0400
"Martin Schäfer" <martin.schaefer@xxxxxxxxxxxxxxxxx> wrote in message
news:%23r3aplLRFHA.3544@xxxxxxxxxxxxxxxxxxxx
> I'm using the web browser control from within an mmc.exe snap-in. MMC
> creates the OCX for me after the snap-in gives it the
> CLSID_WebBrowser, and I can get access to the IWebBrowser2 interface
> pointer. Now when I'm using Navigate2 to navigate to a
> password-protected site, I want to avoid popping up the
> authentication dialog, because the snap-in already knows the password.
>
> I know that I have to implement the IServiceProvider and IAuthenticate
> interfaces, but I don't know in which class. The examples on the MS
> site use some ATL code which I can't map to my snap-in project. If I
> implement IServiceProvider and IAuthenticate in a new class, I have
> to pass this class on to the web browser control, but how?
Normally, you would be hosting a WebBrowser control yourself, in which
case you implement IServiceProvider on the client site pointer. In your
situation, it appears that you do not host the control yourself, but
have MMC host it on your behalf. If this is the case, you cannot have
WebBrowser use your IServiceProvider implementation unless MMC somehow
exposes this functionality. Note that I don't really know anything about
MMC.
Perhaps you can write an ActiveX control that would, in turn, host
WebBrowser control, then tell MMC to instantiate your control. Your
wrapper can then implement IAuthenticate
--
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
.
- Follow-Ups:
- Re: Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?
- From: Martin Schäfer
- Re: Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?
- References:
- Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?
- From: Martin Schäfer
- Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?
- Prev by Date: Re: Multiple IE instances
- Next by Date: axWebBrowser crashes after navigating to a SharePoint site
- Previous by thread: Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?
- Next by thread: Re: Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?
- Index(es):
Relevant Pages
|
|