如何设置IE扩展名(BHO In IE) [英] How can i set the name of IE Extension (BHO In IE)

查看:210
本文介绍了如何设置IE扩展名(BHO In IE)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置BHO的名称出现在IE扩展中(例如,管理插件)..当我使用regasm.exe附加时,Internet Explorer插件列表中显示的名称是我的程序的命名空间。我该怎么设置它的名字。?...

How Can i Set the Name of the BHO appear in IE Extension (e.g Manage Addons).. The Name that Appear in the Internet Explorer Addons list is the Namespace of my program when i attach it with regasm.exe. how can i set the name of that.?...

谢谢。

推荐答案

我正在研究C#BHO,并且正在努力解决这个问题。如果您正在使用C#,可以采用的一种方法是在使用ComRegisterFunction属性标记的方法中添加类似于以下内容的代码。这将设置相应的注册表项值,以便您所需的名称将反映在管理外接程序屏幕中。

I am working on a C# BHO, and was struggling with this very same question. If you're working with C#, one approach that can be taken is to add code similar to the following in the method that is marked with the ComRegisterFunction attribute. This will set the appropriate registry key value so that the name that you desire will be reflected in the Manage Add-Ons screen.

using (key = Registry.ClassesRoot.CreateSubKey("CLSID\\" + type.GUID.ToString("B")))
{
    key.SetValue(string.Empty, "My BHO Name Here");
}

这篇关于如何设置IE扩展名(BHO In IE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆