def valuestodict(key):
    dict = {}
    size = winreg.QueryInfoKey(key)[1]
    for i in range(size):
        data = winreg.EnumValue(key, i)
        dict[data[0]] = data[1]
    return dict
Convert a registry key's values to a dictionary.
dataset/ETHPy150Open wakatime/komodo-wakatime/components/wakatime/packages/tzlocal3/win32.py/valuestodict