Click here to Skip to main content
Rate this: bad
good
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
Comments
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
   
Ok.
Rate this: bad
good
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.
  Permalink  
Comments
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 -> http://msdn.microsoft.com/en-us/library/bb250462(v=vs.85).aspx#upm
 
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Got the solution
 
Locations that are writeable for low integrity
 
Registry
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
%USERPROFILE%\AppData\LocalLow
 
Thanks to ALL..Smile | :)
  Permalink  

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

  Print Answers RSS
0 CHill60 320
1 Sarvesh Kumar Gupta 238
2 Sergey Alexandrovich Kryukov 163
3 OriginalGriff 163
4 DamithSL 153


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 8 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid