通过IWebBrowser2接口检测cookie是否启用

发布于 2024-08-21 05:04:46 字数 334 浏览 15 评论 0原文

是否可以通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

嘿看小鸭子会跑 2024-08-28 05:04:46

您可以将 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. :-/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文