【问题标题】:How to detect IE Protected Mode using c#如何使用 c# 检测 IE 保护模式
【发布时间】:2011-01-04 00:12:09
【问题描述】:

我正在构建一个 IE 扩展,我需要将我的 Access 数据库文件保存在 Appdata 文件夹中。它工作正常。但是在许多 IE IE 保护模式为 ON 的系统中,它会崩溃,我猜这是因为 IE 保护模式不允许扩展访问 Appdata。 我试图找到出路,以便我可以通过我的扩展检测 IE 是否处于保护模式。 请提供一些代码 sn-ps 和一些链接,让我摆脱这个问题。

问候

我还附上了错误截图。

【问题讨论】:

标签: c# internet-explorer protected-mode


【解决方案1】:

我会使用 IEIsProtectedModeProcess(),但您需要自己进行互操作。

【讨论】:

    【解决方案2】:

    您正在寻找 IE 进程“完整性级别”。在此处查看官方文档:Determining Process Integrity Levels 和 C++ 示例,您将在此处找到用 C# 编写的示例:Getting Process Integrity Level in Vista using Pinvoke

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-11
      • 1970-01-01
      • 2015-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多