简体   繁体   English

自定义工具栏兼容IE保护模式

[英]Custom toolbar compatible for IE Protected Mode

I have created a custom toolbar for IE. 我已经为IE创建了一个自定义工具栏。 I am placing my COM DLL in System32 folder. 我将COM DLL放在System32文件夹中。 IE is able to load my toolbar in protected mode. IE可以在保护模式下加载我的工具栏。 My toolbar should read some data from ini file which is created in InternetCache folder. 我的工具栏应该从InternetCache文件夹中创建的ini文件中读取一些数据。 I am not registering my COM component to any category (eg CATID_AppContainerCompatible). 我没有将COM组件注册到任何类别(例如CATID_AppContainerCompatible)。

My question is 我的问题是

1) Is it compulsory to place the my DLL in sub folder of program files? 1)是否必须将我的DLL放在程序文件的子文件夹中?

2) Do I need to register to app container category? 2)我需要注册到应用容器类别吗?

3) How can I make sure that my toolbar is compatible with protected mode. 3)如何确保我的工具栏与保护模式兼容。

Thanks in advance. 提前致谢。

Regards, Santhosh 问候,桑索什

I used to develop a BHO for IE6+ before and hope you'll find those answers useful. 我以前曾经为IE6 +开发BHO,希望您能找到有用的答案。

1) Is it compulsory to place the my DLL in sub folder of program files? 1)是否必须将我的DLL放在程序文件的子文件夹中?

Don't remember exactly but if it's both signed and placed under a trusted location the more chances IE will pick it up. 记不清了,但是如果将其同时签名并放置在受信任的位置下,则IE提取它的机会就更多。

2) Do I need to register to app container category? 2)我需要注册到应用容器类别吗?

Just registering a COM DLL module should be enough. 仅注册一个COM DLL模块就足够了。

3) How can I make sure that my toolbar is compatible with protected mode. 3)如何确保我的工具栏与保护模式兼容。

It is by default but in protected mode you'll receive 'access denied' error on attempts of reading from or writing to many locations both on file system and in registry. 它是默认设置,但是在保护模式下,尝试从文件系统和注册表中的许多位置读取或写入数据时,将收到“拒绝访问”错误。

In registry you can use HKEY_CURRENT_USER\\Software\\AppDataLow and %USERPROFILE%\\AppData\\LocalLow on file system. 在注册表中,您可以在文件系统上使用HKEY_CURRENT_USER \\ Software \\ AppDataLow和%USERPROFILE%\\ AppData \\ LocalLow。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM