โค้ด: เลือกทั้งหมด
from winreg import *
Registry = ConnectRegistry(None, HKEY_LOCAL_MACHINE)
RawKey = OpenKey(Registry, "Software\Classes\Applications\SupportedTypes")
try:
i = 0
while 1:
name, value, type = EnumValue(RawKey, i)
print(name)
i += 1
except WindowsError:
print(value)