如何使用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; 
}