Re: Reading the registry
- From: Dean Earley <dean.earley@xxxxxxxxxxx>
- Date: Fri, 06 Feb 2009 15:45:47 +0000
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
.
- References:
- Reading the registry
- From: Relisis Kembi
- Reading the registry
- Prev by Date: Reading the registry
- Next by Date: Re: Reading the registry
- Previous by thread: Reading the registry
- Next by thread: Re: Reading the registry
- Index(es):
Relevant Pages
|