Package winappdbg :: Module registry :: Class RegistryKey
[hide private]
[frames] | no frames]

Class RegistryKey

source code


Exposes a single Windows Registry key as a dictionary-like object.


See Also: Registry

Nested Classes [hide private]
  _RegistryContainer__EmptyArgument (Inherited from winappdbg.registry._RegistryContainer)
Instance Methods [hide private]
 
__init__(self, path, handle)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__contains__(self, name) source code
 
__getitem__(self, name) source code
 
__setitem__(self, name, value) source code
 
__delitem__(self, name) source code
 
iterkeys(self) source code
 
itervalues(self) source code
 
iteritems(self) source code
 
keys(self) source code
 
values(self) source code
 
items(self) source code
int
get_value_type(self, name)
Retrieves the low-level data type for the given value.
source code
 
clear(self) source code
 
__str__(self)
str(x)
source code
 
__unicode__(self) source code
 
__repr__(self)
repr(x)
source code
iter of RegistryKey
iterchildren(self)
Iterates the subkeys for this Registry key.
source code
list(RegistryKey)
children(self)
Returns a list of subkeys for this Registry key.
source code
RegistryKey
child(self, subkey)
Retrieves a subkey for this Registry key, given its name.
source code
 
flush(self)
Flushes changes immediately to disk.
source code
 
__iter__(self) (Inherited from winappdbg.registry._RegistryContainer) source code
 
get(self, name, default=__emptyArgument) (Inherited from winappdbg.registry._RegistryContainer) source code
 
has_key(self, name) (Inherited from winappdbg.registry._RegistryContainer) source code
 
setdefault(self, default) (Inherited from winappdbg.registry._RegistryContainer) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  _RegistryContainer__emptyArgument = __emptyArgument (Inherited from winappdbg.registry._RegistryContainer)
Instance Variables [hide private]
str path
Registry key path.
win32.RegistryKeyHandle handle
Registry key handle.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path, handle)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
Overrides: object.__init__

get_value_type(self, name)

source code 

Retrieves the low-level data type for the given value.

Parameters:
  • name (str) - Registry value name.
Returns: int
One of the following constants:
Raises:
  • KeyError - The specified value could not be found.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

iterchildren(self)

source code 

Iterates the subkeys for this Registry key.

Returns: iter of RegistryKey
Iterator of subkeys.

children(self)

source code 

Returns a list of subkeys for this Registry key.

Returns: list(RegistryKey)
List of subkeys.

child(self, subkey)

source code 

Retrieves a subkey for this Registry key, given its name.

Parameters:
  • subkey (str) - Name of the subkey.
Returns: RegistryKey
Subkey.

flush(self)

source code 

Flushes changes immediately to disk.

This method is normally not needed, as the Registry writes changes to disk by itself. This mechanism is provided to ensure the write happens immediately, as opposed to whenever the OS wants to.

Warning: Calling this method too often may degrade performance.


Instance Variable Details [hide private]

path

Registry key path.
Get Method:
unreachable.path(self)

handle

Registry key handle.
Get Method:
unreachable.handle(self)