积极答复者
如何向程序内嵌的IE浏览器的userAgent尾部写入标识信息

问题
答案
-
IOleControl::OnAmbientPropertyChange调用过了?
如果UrlMkSetSessionOption URLMON_OPTION_USERAGENT不起作用,那么把注册表里面的代理改掉,调用完UrlMkSetSessionOption URLMON_OPTION_USERAGENTREFRESH再改回去。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Jesse JiangModerator 2011年1月18日 8:36
全部回复
-
DISPID_AMBIENT_USERAGENT
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
UrlMkSetSessionOption URLMON_OPTION_USERAGENT& URLMON_OPTION_USERAGENTREFRESH
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
还有就是Hook WinInet的API自己实现了,提供沙盒功能的浏览器都这么干
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
-
IOleControl::OnAmbientPropertyChange调用过了?
如果UrlMkSetSessionOption URLMON_OPTION_USERAGENT不起作用,那么把注册表里面的代理改掉,调用完UrlMkSetSessionOption URLMON_OPTION_USERAGENTREFRESH再改回去。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Jesse JiangModerator 2011年1月18日 8:36
-
这个也试过了。IE8这样改可以,但IE6,7下没有效果。
其实现在看,问题就是如何搞定IE6,7,搞定IE6,7后问题就算解决的呢。
MVP兄,还有什么别的办法么,劳驾您再指导下,谢谢。
市面上的外壳浏览器“世界之窗”和最新版的“遨游”都已实现该功能了,当然我并不是做外壳浏览器的。
http://img.doyo.cn/img/doyo_soft/12/AddUserAgent.rar
上面这个链接是我这边写的示例源码,麻烦您看看,再次感谢