Results 1 to 12 of 12

Thread: registry search

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    registry search

    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

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: registry search

    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    Re: registry search

    how is that done . can u explain it in a little detail ???? if an example is available then it would be great.

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: registry search

    have a look at some of the examples at vbnet to see if you can get any ideas to help

    pete

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    Re: registry search

    not much help there

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: registry search

    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

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    Re: registry search

    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..........

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: registry search

    Try AllAPI.net for RegEnum. they have samples

    http://www.mentalis.org/apilist/RegEnumKeyEx.shtml

  9. #9
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: registry search

    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

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    Re: registry search

    so what to do next

  11. #11
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: registry search

    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

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2005
    Posts
    305

    Re: registry search

    i got the code to enumerate reg. , but now the problem is how to get the entries that are wrong ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width