如何使用C#启用增强保护模式 [英] how to enable enhanced protected mode using C#

查看:61
本文介绍了如何使用C#启用增强保护模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在IE中启用/禁用增强保护模式。



Internet选项 - 高级选项卡 - 安全 - 启用增强保护模式。

how to enable/disable enhanced protected mode in IE .

Internet Option-Advanced Tab-Security-Enable Enhanced Protected Mode.

推荐答案

您可以通过以下代码警告用户该情况。



You can warn the user about the situation by following code.

private bool IsEPMEnabled() 
{ 
    using (RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Internet Explorer\Main", false)) 
    { 
        if (key != null) 
            return ((string)key.GetValue("Isolation", String.Empty) == "PMEM");  
    } 
 
    return false; 
} 


这篇关于如何使用C#启用增强保护模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆