all the softs that search the registry for bugs scan the whole registry for it .can such things be done invb ?????if yes then please tell a little in detail......
thanksssssssssssss
Printable View
all the softs that search the registry for bugs scan the whole registry for it .can such things be done invb ?????if yes then please tell a little in detail......
thanksssssssssssss
I think you wouldneed to enumerate all the registry keys, put the return values into an 2d array or something (Key and Value) and then search through that.
how is that done . can u explain it in a little detail ???? if an example is available then it would be great.
have a look at some of the examples at vbnet to see if you can get any ideas to help
pete
not much help there
i did a google on enumerate registry vb and came up with a lot of hits with code samples, but working with the registry is at least a bit cofusing,
also it pays to back up your registry before doing this
pete
that's the problem , iwant to enumerate the reg. and then search for broken shortcuts, invalid file associations, missing dlls etc . all the things that a registry cleaner software can do . there are codes to enumerate reg on psc but not on the later one .
hope u guys get something..........
Try AllAPI.net for RegEnum. they have samples
http://www.mentalis.org/apilist/RegEnumKeyEx.shtml
hmm sounds like you would have to read every value and if it points to anysort of a file check if that file exists, but that still wouldn't tell you if tha file was being used for anything or whether it too was an orphan, deleteing the unconnected keys is easy to do as long as you are sure it is not needed.
many of the spyware program such as spybot and spy doctor read the registry and compare the keys and values to a database of known spyware and other trojans, which can find hundreds of entries, even if the spyware has been removed
i recently scanned my system and had over 400 registry entries and files that were related to spyware, even though none of those prorams was still running
but all the different programs can get different results
pete
so what to do next
a lot of study
do searches on enumerating registry keys and values, to see if you can find some good code examples, allapi has some code for enumerating all the values of a key, but i don't think i have seen any for enumerating the keys.
check the code bank to see any one has done anything that will help, and check the api forum too as registry is all api stuff, there is at least on third party tool to create a registry object, which may make it a lot easier to do, but i have no idea if any would be free
pete
i got the code to enumerate reg. , but now the problem is how to get the entries that are wrong ...