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
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.
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.
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.
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.
- Edited by EricStob Tuesday, April 03, 2012 12:53 AM