LGJ

I have written a BHO that works in IE6 and IE7. However, on Vista on IE7 with Protected Mode on the BHO is never called (SetSite is not called). The BHO works on Vista on IE7 with protected mode off.

The BHO shows in IE7 Manage Add-ons as enabled. What prevents a BHO from being called when protected mode is on.




Re: Internet Explorer Extension Development SetSite not called in IE7 protected mode

Sharath Udupa - MSFT

Does your BHO get loaded (calls DllMain/DllGetClassObject) in Protected Mode There might be something you require for your BHO to load which might be inaccessible from Protected Mode.



Re: Internet Explorer Extension Development SetSite not called in IE7 protected mode

LGJ

Thank you for your reply.

With Protected Mode off I see calls to:

InitInstance

DLLGetClassObject

SetSite

With Protected Mode on none of the above are called.






Re: Internet Explorer Extension Development SetSite not called in IE7 protected mode

LGJ

I have learned that my BHO is actually being called in IE7 in protected mode. I was confused because the break points I set in the debugger were never reached. I discovered that this is caused by the Internet Explorer Protected Mode feature launching a separate process and exiting so the Visual Studio debugger does not get called.

I discoved this on the following web site: http://msdn2.microsoft.com/en-us/library/bb250489.aspx

Now that I know my BHO is being called I can try an determine why I am getting different behavior in protected mode.

Lonnie






Re: Internet Explorer Extension Development SetSite not called in IE7 protected mode

Reza Nourai - MSFT

You are absolutely correct. If you are running Visual Studio on Vista, I recommend patching it with any new updates and running it as Administrator. This will aid in some debugging scenarios on Vista.



Re: Internet Explorer Extension Development SetSite not called in IE7 protected mode

IECUSTOMIZER

Hi, forgive me for my ignorance, as I have not taken the Vista plunge yet (3 weeks and counting for a msdn subscription), but are other addons running in IE7 when in protected mode I was under the impression that protected mode disabled addons in IE7.




Re: Internet Explorer Extension Development SetSite not called in IE7 protected mode

Reza Nourai - MSFT

Protected mode only runs IE in a low-priveledge process. It does not prevent add-ons from loading or running. However, since some add-ons try to do things that require higher priveleges (access registry/files/etc), they may not work properly with Protected Mode on.

Anybody writing an add-on needs to properly test their product on Vista with Protected Mode on to ensure that customers with Vista can use the add-on properly.

-Reza