Simplified Thomas Heller's registry patch: just assign all those HKEY_* and Reg* names once, rather than having near-duplicate code in the two import attempts.
Your change won't work, the function names in win32api and winreg are not the same: Example: win32api.RegEnumValue <-> winreg.EnumValue
Also dropped the leading underscore on all the imported symbols, as it's not appropriate (they're not local to this module).
Are they used anywhere else? Or do you think they *could* be used somewhere else? Thomas Heller