IE保护模式为开时无法访问事件日志 [英] Can't Access EVENT LOG when IE Protected Mode is ON
问题描述
大家好,
我已经使用BHO(vs 2005,C#,IE7)插件了.
当IE选择插件时,该插件会将事件记录在事件日志中.
当IE保护模式为OFF时,上述功能可以正常工作.
但是当保护模式为开(机器正在运行LOW-Integrity模式)时
我的插件无法将日志写入事件日志,因为将日志写入事件日志或编写文件或写入注册表需要高特权访问.
最后,如果IE保护模式为开",则我们无法编写日志或文件或注册表.
因此,任何人都可以建议我以另一种方式记录事件.(与IE保护模式无关)吗?
在此先感谢.....
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.....
推荐答案
如果我了解您在做什么,那么您没有其他解决方案.保护模式意味着机器资源(注册表,事件日志,文件系统等)完全禁止使用代码,并阻止您从浏览器内部执行任何操作.
您刚刚确定必须将插件的要求设为保护模式.
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.
获得解决方案
可写的位置,以降低完整性
注册表
低完整性进程可以在HKEY_CURRENT_USER \ Software \ AppDataLow下写入并创建子项
文件系统
低完整性进程可以在
下编写和创建子文件夹 %USERPROFILE%\ AppData \ LocalLow
感谢ALL .. ::)
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..:)
这篇关于IE保护模式为开时无法访问事件日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!