win32api.RegQueryValueEx

(object,type) = RegQueryValueEx(key, valueName )

Retrieves the type and data for a specified value name associated with an open registry key.

Parameters

key : PyHKEY/int

An already open key, or any one of the following win32con constants:
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS

valueName : string

The name of the value to query.

Comments

Values in the registry have name, type, and data components. This method retrieves the data for the given value.

Win32 API References

Search for RegQueryValueEx at msdn, google or google groups.