Crate nt_hive[−][src]
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
Hive
structure from hive data by callingHive::new
. - Retrieve the root
KeyNode
viaHive::root_key_node
. - Move to a subkey via
KeyNode::subkey
,KeyNode::subkeys
orKeyNode::subpath
. - Get an interesting value using
KeyNode::value
orKeyNode::values
.
Structs
Iterator over
a contiguous range of data bytes containing Big Data list items,
returning a constant byte slice for each item,
used by KeyValueData
.
Root structure describing a registry hive.
Iterator over
a contiguous range of data bytes containing Index Root items,
returning a constant KeyNode
for each Leaf item of each Index Root item,
used by SubKeyNodes
Iterator over
a contiguous range of data bytes containing Key Value items,
returning a constant KeyValue
for each item.
Iterator over
a contiguous range of data bytes containing Leaf items of any type (Fast/Hash/Index),
returning a constant KeyNode
for each Leaf item,
used by SubKeyNodes
.
Enums
Known hive minor versions.
Zero-copy representation of raw Key Value data, returned by KeyValue::data
.
Possible data types of the data belonging to a KeyValue
.
Central error type of nt-hive.
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).
Type Definitions
Central result type of nt-hive.