Hi,
I need to obtain the number of subkeys in a given
key and then I need values for particular entries in
each subkey read. Tell me if the procedure I’m using
is correct.
-
Open Key using ZwOpenKey
-
Use ZwQueryKey, with KeyFullInformation and extract
number of subkeys. (what exactly does “class name
refer to here”
-
For loop from 0 to count and in each loop,
a. Use ZwEnumerateKey to get subkey name
b. Open the subkey with Zwopenkey
c. Finally use n number of ZwQueryValueKey to obtain
the values required
I thought of using ZwEnumerateValueKey, but how do you
pass the entry name (ValueName) that you want to read?
I could have used RtlQueryRegistryValues, but that
seemed more complex.
Rajeev
=====
Everything you always wanted to know about cars and bikes,now
at: http://in.autos.yahoo.com/cricket/tracker.html
You don’t have to use the ZwQueryKey before calling ZwEnumerateKey. Just
call ZwEnumerateKey until you receive the error NO_MORE_ENTRIES (or
something like that)
G.
-----Original Message-----
From: Rajeev Rao [mailto:xxxxx@yahoo.co.in]
Sent: Sat, May 25, 2002 6:49 AM
To: NT Developers Interest List
Subject: [ntdev] Registry Clarification
Hi,
I need to obtain the number of subkeys in a given
key and then I need values for particular entries in
each subkey read. Tell me if the procedure I’m using
is correct.
-
Open Key using ZwOpenKey
-
Use ZwQueryKey, with KeyFullInformation and extract
number of subkeys. (what exactly does “class name
refer to here”
-
For loop from 0 to count and in each loop,
a. Use ZwEnumerateKey to get subkey name
b. Open the subkey with Zwopenkey
c. Finally use n number of ZwQueryValueKey to obtain
the values required
I thought of using ZwEnumerateValueKey, but how do you
pass the entry name (ValueName) that you want to read?
I could have used RtlQueryRegistryValues, but that
seemed more complex.
Rajeev
=====
Everything you always wanted to know about cars and bikes,now
at: http://in.autos.yahoo.com/cricket/tracker.html
You are currently subscribed to ntdev as: xxxxx@appstream.com
To unsubscribe send a blank email to %%email.unsub%%