【问题标题】:Check if cookies are enabled in Internet Explorer检查是否在 Internet Explorer 中启用了 cookie
【发布时间】:2017-11-28 16:10:03
【问题描述】:

桌面应用程序可以使用一些Win API 函数或通过Windows Registry 来检查吗?怎么样?

【问题讨论】:

    标签: windows internet-explorer winapi


    【解决方案1】:

    您可以使用 IOmNavigator::cookieEnabled 来检查是否启用了持久客户端 cookie。您可以从 IHTMLWindow2::get_Navigator 获取 IOmNavigator *。如果您没有可用的 IHTMLWindow2,您可以 CoCreateInstance 一个 CLSID_HTMLWindow2。

    【讨论】:

      猜你喜欢
      • 2011-10-03
      • 1970-01-01
      • 2011-04-02
      • 2012-03-15
      • 2012-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多