Expand description
§nt-hive
The nt-hive Rust crate provides a comfortable and safe interface for accessing keys, values, and data stored in hive files.
Hive files can be found in C:\Windows\system32\config and store what is commonly called the Windows registry.
This crate supports the hive format that is used from Windows NT 4.0 up to the current Windows 10.
§Getting started
- Create a
Hivestructure from hive data by callingHive::new. - Retrieve the root
KeyNodeviaHive::root_key_node. - Move to a subkey via
KeyNode::subkey,KeyNode::subkeysorKeyNode::subpath. - Get an interesting value using
KeyNode::valueorKeyNode::values.
Structs§
- BigData
Slices - Iterator over
a contiguous range of data bytes containing Big Data list items,
returning a constant byte slice for each item,
used by
KeyValueData. - Hive
- Root structure describing a registry hive.
- Index
Root KeyNodes - Iterator over
a contiguous range of data bytes containing Index Root items,
returning a constant
KeyNodefor each Leaf item of each Index Root item, used bySubKeyNodes - KeyNode
- A single key that belongs to a
Hive. It has a name and possibly subkeys (KeyNode) and values (KeyValue). - KeyValue
- A single value that belongs to a
KeyNode. It has a name and attached data. - KeyValues
- Iterator over
a contiguous range of data bytes containing Key Value items,
returning a constant
KeyValuefor each item. - Leaf
KeyNodes - Iterator over
a contiguous range of data bytes containing Leaf items of any type (Fast/Hash/Index),
returning a constant
KeyNodefor each Leaf item, used bySubKeyNodes. - RegMultiSZ
Strings
Enums§
- Hive
Minor Version - Known hive minor versions.
- KeyValue
Data - Zero-copy representation of raw Key Value data, returned by
KeyValue::data. - KeyValue
Data Type - Possible data types of the data belonging to a
KeyValue. - NtHive
Error - Central error type of nt-hive.
- NtHive
Name String - Zero-copy representation of a key name or value name string stored in hive data. Can be either in Latin1 (ISO-8859-1) or UTF-16 (Little-Endian).
- SubKey
Nodes - Iterator over
all subkeys of a
KeyNode, returning a constantKeyNodefor each subkey.
Type Aliases§
- Result
- Central result type of nt-hive.