Click here to Skip to main content
13,552,926 members
Rate this:
Please Sign up or sign in to vote.
Hi All,

I have careated a Plug-In using BHO(vs 2005,C#,IE7).
That plug-in logs the event in Event Log when plug-in has picked by the IE.
The above functionality working fine when IE protected Mode is OFF.
But When protected Mode is ON(machine was running LOW-Integrity Mode)
My plug-in not able to write the log into event log because writing a log into event log or wrirting files or writing registry needs High-privillage access.
Finally,If IE protected Mode is ON then we can't write the log or filesor registry.

So,Can any one suggest me to log the events in another way..(Irrespective of IE protected mode)?

Thanks in advance.....
Posted 5-Jun-12 3:36am
RDBurmon 8-Jun-12 8:20am
Thanks Everyone who replied to this thread , So Kranthi , I think you have got enough response and you should be able to mark it as your answer and close the thread.
kranthi1988 8-Jun-12 10:03am
Hi RD....
Actually i checked only in my machine.
Now im checking my plugin in various machines.
Once i confim then i'll close the thread.
RDBurmon 9-Jun-12 5:57am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If I understand what you're doing, you don't have an alternate solution to get around this. Protected Mode means machine resources (registry, event logs, filesystem, ...) are completely off-limits to your code and prevents you from doing ANYTHING from inside the browser.

You just determined that a requirement of your plugin is protected mode must be turned off.
kranthi1988 6-Jun-12 7:40am
Hi Dave,
My requirement is 'The plug-in shold work under IE protected mode ON environment'.
So,for creating logs i need an altenative solution......
Dave Kreskowiak 6-Jun-12 8:06am
What part of "You don't have an alternate solution" don't you get??
Dave Kreskowiak 6-Jun-12 10:17am
I already did. IE Protected Mode is an extremely locked down environment. You can't run an plugins unless they are authorized, you can't navigate to any web pages, unless they are authorized, and code that runs in the browser is restricted from accessing ANY machine resources, that includes event logs.

There is no other work around for this other than turning off Protected Mode.

Read ->

kranthi1988 6-Jun-12 9:51am
Dave,Kindly can you explain your concern clearly...?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Got the solution

Locations that are writeable for low integrity

Low-integrity processes can write to and create subkeys under HKEY_CURRENT_USER\Software\AppDataLow

File system
Low-integrity processes can write and create subfolders under

Thanks to ALL..:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180515.1 | Last Updated 8 Jun 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100