Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Reading registry values

Posted on 1999-07-09
Medium Priority
Last Modified: 2010-04-02
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.
Question by:bmuralimohan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1199603
look at for easy to use registry access code ...

Accepted Solution

BSoeters earned 20 total points
ID: 1199604
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.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question