parameters: (cls, base, key)
return_statement: return d
docstring: Return dict of registry keys and values.
  
          All names are converted to lowercase.
docstring_summary: Return dict of registry keys and values.
docstring_tokens: Return dict of registry keys and values .
function: def read_values(cls, base, key):
          """Return dict of registry keys and values.
  
          All names are converted to lowercase.
          """
          try:
              handle = RegOpenKeyEx(base, key)
          except RegError:
              return None
          d = {}
          i = 0
          while True:
              try:
                  name, value, type = RegEnumValue(handle, i)
              except RegError:
                  break
              name = name.lower()
              d[cls.convert_mbcs(name)] = cls.convert_mbcs(value)
              i += 1
          return d
function_tokens: def read_values ( cls , base , key ) : try : handle = RegOpenKeyEx ( base , key ) except RegError : return None d = { } i = 0 while True : try : name , value , type = RegEnumValue ( handle , i ) except RegError : break name = name . lower ( ) d [ cls . convert_mbcs ( name ) ] = cls . convert_mbcs ( value ) i += 1 return d