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.
asked Feb 28, 2011 at 10:06
Swapnil Gupta
9,02117 gold badges61 silver badges75 bronze badges
3 Answers 3
I think RegEnumValue is the API you are looking for.
answered Feb 28, 2011 at 10:13
Naveen
73.8k47 gold badges182 silver badges237 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
MSalters
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.See the SHEnumKeyEx function for simplicity
Comments
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
Comments
lang-cpp