How to change default search provider in IE-9?
-
Thursday, July 28, 2011 8:54 AM
There are fine post: http://blogs.msdn.com/b/ie/archive/2011/05/12/staying-in-control-of-your-default-search-provider.aspx#10167885.
I use 'proper method' API IOpenService::SetDefault to change search provider, and it work fine on IE-8. But in IE-9 there are no dialog and SetDefault returns error 0x80004005. What i do wrong?
I use example from this article: http://technet.microsoft.com/en-us/library/cc849088%28v=VS.85%29.aspx
All Replies
-
Thursday, August 04, 2011 8:58 AMModerator
Hi,
I recommend you post this issue to our Connect feedback portal. Our developer will evaluate them seriously and take them into consideration when designing future release or service pack of the Visual Studio. Thanks for your understanding.
Best Regards,
Rob
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Thursday, November 17, 2011 7:09 PM
I ran into the same problem. After much tinkering, I figured out specifying the /O1 or /O2 or /Ox compile options caused the SetDefault call to fail with that error. Try removing those optimzation flags and see if it helps.
Cheers
Jake
- Proposed As Answer by jakeEatsHisPeas Thursday, November 17, 2011 7:10 PM
- Unproposed As Answer by jakeEatsHisPeas Thursday, November 17, 2011 7:28 PM
- Edited by jakeEatsHisPeas Thursday, November 17, 2011 7:32 PM
-
Tuesday, April 03, 2012 12:42 AM
I have the exact same problem!
IE does not even ask for the user's permission to add the search provider, it just adds it no questions asked.
And then when I try to setDefault IE crashes even if I wrap the call in a try/catch.
Whats up with this?
Also I am not setting any compile flags so I know that's not it. -
Tuesday, April 03, 2012 12:47 AM@Rob Pan IOpenService is not a feature of Visual Studio, it is a feature of Internet Explorer.
-
Tuesday, April 03, 2012 12:49 AMI guess I will add the search provider through the DOM instead of through COM. (though COM is supposed to be the blessed way?)


