Click here to Skip to main content
11,705,451 members (61,810 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: IE7 C# Win7 event
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 at 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 at 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 at 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 at 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 at 6-Jun-12 8:06am
What part of "You don't have an alternate solution" don't you get??
kranthi1988 at 6-Jun-12 9:51am
Dave,Kindly can you explain your concern clearly...?
Dave Kreskowiak at 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 ->

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..Smile | :)

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 500
1 OriginalGriff 269
2 CPallini 82
3 ppolymorphe 68
4 Inimicos 60
0 OriginalGriff 9,053
1 Sergey Alexandrovich Kryukov 8,347
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 8 Jun 2012
Copyright © CodeProject, 1999-2015
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