Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
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    
Ok.

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..:)
 
Share this answer
 
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.
 
Share this answer
 
Comments
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??
kranthi1988 6-Jun-12 9:51am    
Dave,Kindly can you explain your concern clearly...?
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 -> http://msdn.microsoft.com/en-us/library/bb250462(v=vs.85).aspx#upm

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900