Re: Given a IWebBrowser2 where do I implement IAuthenticate and IServiceProvider?



"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


.



Relevant Pages

  • Re: Disallowing connection to TS by group name
    ... the permissions tab and check Deny for Full Control, User Access, and Guest ... > Terminal Server Configuration MMC. ...
    (microsoft.public.win2000.termserv.clients)
  • Re: Shutdown problem with 9.02 Multimedia control panel
    ... I have yet to have a problem with the new Control Center on its own. ... >>Since I upgraded my ATI software to the newest version the computer will ... > and MMC are. ... > just the card driver. ...
    (microsoft.public.windowsxp.hardware)
  • How to make video on form "full screen" using MMC
    ... I'm trying to play video ... Using MMC VB is taking care of all call's etcetera. ... I can't even control the position on the screen whre the video plays ...
    (microsoft.public.vb.controls)
  • Providing IServiceProvider.QueryService to third party AX controls...
    ... I need to use a third party database Activex control that uses the ... It uses this API object to get an OleDb connection string so that it can ... IOleClientSite instance via the IOleObject.SetClientSite method, ... to IServiceProvider and if not null, asks for the API object via the ...
    (microsoft.public.dotnet.framework)
  • Providing IServiceProvider.QueryService to third party AX controls...
    ... I need to use a third party database Activex control that uses the ... It uses this API object to get an OleDb connection string so that it can ... IOleClientSite instance via the IOleObject.SetClientSite method, ... to IServiceProvider and if not null, asks for the API object via the ...
    (microsoft.public.dotnet.framework.interop)