views:

67

answers:

2

hey everyone,

I have a subkey in my registry with an unknown numbers of values.

I want to get all the data from those values in th specified subkey.

how can I do that ? I don't know the names of the values and the number of values.

I'm programming in C.

thanks!

+1  A: 

MSDN

EFraim
A: 

You'll want to use the Win32 API RegEnumValue to enumerate the registry values of a subkey. There is an example on MSDN which is similar to this but for enumerating registry subkeys.

You can also find some helper functions from one of my previous answers here.

Brian R. Bondy