c# - Change Internet Explorer settings programmatically? -


any idea how do following using c#?

  1. going tools -> internet options -> security
  2. select security tab
  3. click custom level button
  4. in miscellaneous section change display mixed content enable

the "cheat" way change value

hkey_current_user\software\microsoft\windows\currentversion\internet settings\zones\0\1609 hkey_current_user\software\microsoft\windows\currentversion\internet settings\zones\1\1609 hkey_current_user\software\microsoft\windows\currentversion\internet settings\zones\2\1609 hkey_current_user\software\microsoft\windows\currentversion\internet settings\zones\3\1609 hkey_current_user\software\microsoft\windows\currentversion\internet settings\zones\4\1609

where 0-4 zone identifiers , value 0 allow, 1 prompt, , 3 block. keep in mind if code on anyone's machine own, you're find code blocked malware.

the "proper" way use apis create iinternetzonemanager , call setzoneactionpolicy adjust settings urlaction_html_mixed_content in zones want adjust.


Comments