MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read_keys

Function read_keys

tools/python-3.11.9-amd64/Lib/distutils/msvccompiler.py:54–69  ·  view source on GitHub ↗

Return list of registry keys.

(base, key)

Source from the content-addressed store, hash-verified

52 hkey_mod.HKEY_CLASSES_ROOT)
53
54def read_keys(base, key):
55 """Return list of registry keys."""
56 try:
57 handle = RegOpenKeyEx(base, key)
58 except RegError:
59 return None
60 L = []
61 i = 0
62 while True:
63 try:
64 k = RegEnumKey(handle, i)
65 except RegError:
66 break
67 L.append(k)
68 i += 1
69 return L
70
71def read_values(base, key):
72 """Return dict of registry keys and values.

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected