0

I want to Read from Registry the Name.how i can do this using VC++ ?

Ex : I have one folder called ABC in Registry under that i have 3 enteries Name , Type, Data.

Now i want to read all Name one by one

Name     Type        Data
V:\      REG_SZ      \\124.158.14.74\CIFS
J:\       REG_SZ       \\124.158.14.74\CIFS

In my case Name is nothing but drive name's i want to read it one by one. Any help is appreciated.

3 Answers 3

2

I think RegEnumValue is the API you are looking for.

1
  • Correct - just set lpType and lpData to NULL if you need only the name, not the value. The function name is a bit misleading in that respect; it might get the value but it will always get the name.
    – MSalters
    Commented Feb 28, 2011 at 10:15
0

See the SHEnumKeyEx function for simplicity

0

See the following link, in enumerating registry in windows. Hope this helps.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724256%28v=vs.85%29.aspx

Not the answer you're looking for? Browse other questions tagged or ask your own question.