How to Access AppData in IE Protected Mode (from a Managed BHO)

后端 未结 4 671
悲哀的现实
悲哀的现实 2020-12-09 06:12

I am writing an IE Extension (BHO) in C#. When run in protected mode (IE\'s new UAC-compliant mode which forces all extensions to run at low-integrity), it fails because it

4条回答
  •  误落风尘
    2020-12-09 06:28

    There's one approach that is not especially elegant but you can start another (broker)process with medium level integrity which can do the 'dirty work' and use IPC to communicate with it. To make your life easier I would suggest you to use sockets for communication because they don't require security check which can be tricky when you have communication between processes with different integrity levels.

    In order to skip UAC warning when you spawn new process you can modify BHO registration script and add few registry values that will inform IE to silently elevate new process to medium level.

    You can find more information here: http://msdn.microsoft.com/en-us/library/bb250462(VS.85).aspx#wpm_elebp

提交回复
热议问题