通过IWebBrowser2接口检测cookie是否启用
是否可以通过 IWebBrowser2 接口 或通过其他一些 WebBrowser 控件 C/C++ 接口?我看不到任何明显的方法,但想知道是否有一种微妙的方法。
Is it possible to detect whether cookies are enabled in Internet Explorer through the IWebBrowser2 Interface or through some other WebBrowser Control C/C++ interface? I can't see any obvious way to do it, but was wondering whether there is a subtle way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 URL 传递给 InternetGetPerSiteCookieDecision()它应该告诉您该网站的政策是什么。
这是一个名称相当糟糕的 API。 :-/
You can pass the URL to InternetGetPerSiteCookieDecision() and it should tell you what the policy is for that site.
It is a pretty terribly named API. :-/