帮助注册表扫描 [英] Help With Registry Scanning

查看:87
本文介绍了帮助注册表扫描的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经上网了两天,试图找到有关如何删除无效注册表项的线索.我已经能够找到用于读取,创建和删除注册表项的代码,但是没有什么可与注册表进行比较,因此它将知道哪些整体无效以及使用它们的程序仍在使用那些.我正在寻找的是正确方向的指针,因为我还没有找到任何有关问什么的信息.

I have been all over the internet now for two days to try and find a lead on how to remove invalid registry entries. I have been able to find code to read, create and delete registry keys but have nothing to compare the registry to so that it will know what entires are invalid and which are still in use by the programs that use them. What im looking for is a pointer in the right direction because i have not found any information about what to even ask.

thanks in advance!

推荐答案

假设您正在尝试制作一些可以清除注册表的内容...

注册表可用于存储许多不同的内容,因此在尝试清理注册表时,必须考虑所有这些内容.

让我们来看一个例子.在我使用VB6的日子里,必须注册这些OCX文件才能使用它们.当您注册它们时,会在注册表中创建一个条目(在某些特定位置... Google可以帮助您完成此操作).作为开发人员,注册表中将存在大量不再使用的OCX文件的旧条目.您可以扫描这些注册表项并查找指向文件系统上不再存在的OCX文件的注册表项,然后可以删除这些条目以及与它们关联的条目.

我认为没有通用的解决方案可以清理注册表".您将需要做一些研究,找到放入注册表的事物的类型,以及如何检测它们是否仍然有效(例如,在上面的示例中,您可以通过检查来确定它们是否有效)如果文件仍然存在).
Assuming you are trying to make something that will clean out the registry...

The registry can be used to store many different things, so you''ll have to consider each of those things when trying to clean out the registry.

Let''s look at an example. Back in my days working with VB6, there were these OCX files that had to be registered in order to make use of them. When you registered them, an entry got created in the registry (in some particular locations... Google can help you out with that). Working as a developer, there would be tons of old entries in the registry for OCX files that were no longer being used. You could scan these registry entries and look for ones that point to OCX files that no longer exist on the file system, and you could remove those entries and the entries associated with them.

I don''t think there is a general purpose solution to "clean the registry". You''re gonna have to do some research and find the types of things that get put into the registry and how you can detect if they are still valid (e.g., in the example above, you detect if they''re valid by checking if the file still exists).


这篇关于帮助注册表扫描的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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