Reading a Registry Key or Value
A version of this page is also available for
4/8/2010
Use the RegQueryValueEx function to read a value from the registry. RegQueryValueEx returns the type and contents of a value. Similarly, you can use RegQueryInfoKey to obtain data about a key. RegQueryInfoKey returns information such as the class name, number of subkeys, and number of values associated with the key, as well as the lengths of the longest subkey name, value name, and value under the key.