Re: Reading the registry

Tech-Archive recommends: Speed Up your PC by fixing your registry



Relisis Kembi wrote:
Hi everyone,

I am a little new to VB6. I need my program to find a key in the registry.
Compare one of the sub keys to a known value. If it is not a match read the
next sub key and compare it. Until all subkeys under the main key have been
checked.

EG:
HKLM\Software\MyKey
Key1
A
B
C

Key2
A
B
C

Key3
A
B
C


I want to check all B values and see if they are equal to known value.

I have read some stuff on reading the registry, but can figure out how to do
this (I think is should be simple)

Open your MyKey key (RegOpenKey), enumerate the subkeys (RegEnumKey) then open each in turn (RegOpenKey aggain) then read the B value from each (RegQueryValueEx).
Then close both the keys (RegCloseKey)

Now you know the general process and the function names, you should be able to find many samples.

--
Dean Earley (dean.earley@xxxxxxxxxxx)
i-Catcher Development Team

iCode Systems
.



Relevant Pages

  • Re: Reading the registry
    ... I am a little new to VB6. ... Compare one of the sub keys to a known value. ... A game that saves player info in the registry, ...
    (microsoft.public.vb.winapi)
  • Reading the registry
    ... I am a little new to VB6. ... I need my program to find a key in the registry. ... Compare one of the sub keys to a known value. ...
    (microsoft.public.vb.winapi)
  • Re: Reading the registry
    ... I am a little new to VB6. ... I need my program to find a key in the registry. ... Compare one of the sub keys to a known value. ...
    (microsoft.public.vb.winapi)
  • RE: [Full-Disclosure] Windows Registry Analzyer
    ... Use RegMon for real-time Reg watching and try this product for Snapshot ... RegShot is a small registry compare utility that allows you to quickly ... >> Anyone know of any free tools to analyze what changes have ...
    (Full-Disclosure)
  • Re: How good is Comodo Internet Security?
    ... and create another one with the same name under our admin account? ... Will I be safe if every time I egt infected I delete my user profile? ... on the system afterwards (files and registry), ... of the registry, so you can compare. ...
    (comp.security.firewalls)