• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Reading registry values

I am facing a problem in reading values of the registry keys. Suppose there is a key in the registry under
SOFTWARE\Classes\files. This key has a string value under "default" as "C:\Projects\ConfigFile.ini". I could successfully read this default value. This key has some more string entries like "datafile" , "propfile" etc,. each having a diifferent values. I could not get these values for each entry? Can you please suggest me some thing. If you have any source please send me.
1 Solution
look at http://www.codeguru.com/system/ for easy to use registry access code ...
Use the RegOpenKey() or RegOpenKeyEx() functions to open keys. Then, use the same functions on the previous opened keys to open sub-keys.

When you're at the key-level you want, you may use the function ReQueryInfoKey to read key values.
You could also use the RegQueryMultipleValues() function to read multiple key values.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now