Reading a Registry Key or Value

Use the RegQueryValueEx function to read a specified value from the registry. You can also use RegQueryInfoKey to receive data about a specified key.