如何枚举和删除已安装的ActiveX控件? [英] How can I enumerate and remove installed ActiveX controls?

查看:145
本文介绍了如何枚举和删除已安装的ActiveX控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序来删除ActiveX控件.但是..

我不知道如何获取已安装控件的列表...

...而且一旦发现,我不知道如何将其删除!

我徒劳地搜索了网络,但找不到答案.

I''m making a program to remove ActiveX controls. But..

I don''t know how to get a list of installed controls...

...and I don''t know how to remove them once found!

I searched the ''Net in vain, but could not find an answer.

推荐答案

名为RegMaid的Microsoft工具的作用与你想做什么.令人高兴的是,它附带了完整的C ++源代码.如您所见,删除ActiveX控件(CLSID,AppID,接口,Typelib等)涉及很多工作.在此处下载该工具和源代码:

http://support.microsoft.com/kb/156078 [
A Microsoft tool named RegMaid does the same thing as what you want to do. The nice thing is that it comes with the full C++ source code. As you can see there is lot involved in removing ActiveX controls (CLSID, AppID, Interfaces, Typelibs etc). Download the tool and the source code here:

http://support.microsoft.com/kb/156078[^]

The code may require some tweaking to be build in latest versions of Visual Studio, and of course if you''re trying to use VB.NET you''ll want to keep in mind that .NET provides some additional libraries for manipulating the registry. But still, you can get a clean idea on how to write your own tool by looking at the source.


注册表记录是您的朋友.
The registry records are your friend here.


这篇关于如何枚举和删除已安装的ActiveX控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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