I am building an IE Extension, and I need to keep my Access Database file in the Appdata folder. It's working fine. But in many systems where IE IE Protected Mode is ON, it crashes, I guess this is because IE Protected Mode doesn't allow Extensions to access Appdata. I was trying to find a way out so that I can detect if IE is in Protected Mode through my extension. Please give some code snippets and some links to get me out of this issue.
Regards
I am attaching a screenshot of error as well.
I would use IEIsProtectedModeProcess(), but you're on your own for interop.
You're looking for the IE process "Integrity Level". See the official doc here: Determining Process Integrity Levels with a sample in C++, and you will find a sample written in C# here: Getting Process Integrity Level in Vista using Pinvoke
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With