pyregfi
Public Member Functions | Static Public Attributes
pyregfi.Key Class Reference

Registry key These represent registry keys (REGFI_NK records) and provide access to their subkeys, values, and other metadata. More...

Inheritance diagram for pyregfi.Key:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def fetch_security
 Retrieves the Security properties for this key.
def fetch_classname
 Retrieves the class name for this key.
def get_parent
 Retrieves this key's parent key.
def is_root
 Checks to see if this Key is the root of its Hive.

Static Public Attributes

 values = None
 A ValueList object representing the list of Values stored on this Key.
 subkeys = None
 A SubkeyList object representing the list of subkeys stored on this Key.
tuple name_raw = (b"...")
 The raw Key name as an uninterpreted bytearray.
string name = "..."
 The name of the Key as a (unicode) string.
int offset = 0xCAFEBABE
 The absolute file offset of the Key record's cell in the Hive file.
float modified = 1300000000.123456
 This Key's last modified time represented as the number of seconds since the UNIX epoch in UTC; similar to what time.time() returns.
int flags = 0x10110001
 The NK record's flags field.

Detailed Description

Registry key These represent registry keys (REGFI_NK records) and provide access to their subkeys, values, and other metadata.

Note:
Key instances may provide access to more attributes than are documented here. However, undocumented attributes may change over time and are not officially supported. If you need access to an attribute not shown here, see pyregfi.structures.

Member Function Documentation

def pyregfi.Key.fetch_classname (   self)

Retrieves the class name for this key.

Class names are typically stored as UTF-16LE strings, so these are decoded into proper python (unicode) strings. However, if this fails, a bytearray is instead returned containing the raw buffer stored for the class name.

Returns:
The class name as a string or bytearray. None if a class name doesn't exist or an unrecoverable error occurred during retrieval.
def pyregfi.Key.get_parent (   self)

Retrieves this key's parent key.

Returns:
The parent's Key instance or None if current key is root (or an error occured)
def pyregfi.Key.is_root (   self)

Checks to see if this Key is the root of its Hive.

Returns:
True if it is, False otherwise

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables