Get / set Enhanced Protected Mode from C ++ Code

I need to install and install the "Enhanced Protected Mode" option added in IE10 and then from C ++ code. I googled a lot, but all the solutions describe only how to do it manually, and not from the code, but I need to do this in the installer of our IE add-in.

Any other solutions to this problem through the registry, WMI or the console command are also very interesting.

Can anyone help with this problem?

+4
source share
2 answers

A warning. This is not supported, and it can lead to your code being marked as malware using AV products or Microsoft SmartScreen.

The Enable Enhanced Protected Mode check box on the Internet Control Panel is controlled by the Isolation value in the registry key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main . It contains the PMEM value if you want to use AppContainers (EPM) or PMIL if you should use integrity levels (IL) not EPM instead (the default for IE10). There is no API to set this value as it is not supported.

Protected mode itself is enabled or disabled for each zone; The URLMon SetZoneActionPolicy API is used to configure zone settings (for URLAction_LOWRIGHTS ) to enable or disable protected mode for this zone.

+6
source

Was there an upgrade from 8.0 to 8.1 and there is no name for the Isolation key value. But the Enable Enhanced Protected Mode mode is turned on. It appears that if the isolation name is missing, it has the same effect as the value set in PMEM. The key value is created if you clear the "Enable advanced protected mode" check box and is updated every time you switch the setting.

+3
source

Source: https://habr.com/ru/post/1490752/


All Articles