Package lib :: Package common :: Module registry
[hide private]
[frames] | no frames]

Module registry

source code

Classes [hide private]
  UNICODE_STRING
Functions [hide private]
 
rename_regkey(skey, ssubkey, dsubkey)
Rename an entire tree of values in the registry.
source code
 
regkey_exists(rootkey, subkey) source code
 
set_regkey(rootkey, subkey, name, type_, value) source code
 
set_regkey_full(regkey, type_, value) source code
 
query_value(rootkey, subkey, name) source code
Variables [hide private]
  log = logging.getLogger(__name__)
  RegOpenKeyExW = windll.advapi32.RegOpenKeyExW
  RegCreateKeyExW = windll.advapi32.RegCreateKeyExW
  RegQueryValueExW = windll.advapi32.RegQueryValueExW
  RegSetValueExW = windll.advapi32.RegSetValueExW
  NtRenameKey = windll.ntdll.NtRenameKey
  RegCloseKey = windll.advapi32.RegCloseKey
  _rootkeys = {"HKEY_LOCAL_MACHINE": _winreg.HKEY_LOCAL_MACHINE,...
  _regtypes = {"REG_DWORD": _winreg.REG_DWORD, "REG_SZ": _winreg...
Function Details [hide private]

rename_regkey(skey, ssubkey, dsubkey)

source code 

Rename an entire tree of values in the registry. Function by Thorsten Sick.


Variables Details [hide private]

_rootkeys

Value:
{"HKEY_LOCAL_MACHINE": _winreg.HKEY_LOCAL_MACHINE, "HKEY_CURRENT_USER"\
: _winreg.HKEY_CURRENT_USER,}

_regtypes

Value:
{"REG_DWORD": _winreg.REG_DWORD, "REG_SZ": _winreg.REG_SZ, "REG_BINARY\
": _winreg.REG_BINARY,}