Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Use the RegQueryValueExfunction to read a value from the registry. RegQueryValueExreturns the type and contents of a value. Similarly, you can use RegQueryInfoKeyto obtain data about a key. RegQueryInfoKeyreturns 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.

See Also