Simple, safe, and efficient access to the Windows registry.
- 馃摝 crates.io
- 馃摉 docs.rs
- 馃殌 Getting started
- 馃З Samples
- 馃搧 Source
windows-registry wraps the Win32 registry APIs behind a small, safe surface. Start from one of the
predefined roots - CURRENT_USER, LOCAL_MACHINE, or CLASSES_ROOT - then create or open keys
and read or write typed values. The options() builder adds fine-grained control, including
transactions, volatile keys, additional access rights, and the registry redirection view:
wow64_32() targets the 32-bit (WOW6432Node) view and wow64_64() the native 64-bit view. The
two views are mutually exclusive - the last call wins.
The remainder of this page covers how the crate is built and maintained. It is for contributors and
is not needed to use windows-registry.
src/bindings.rs is generated by tool_bindings from crates/tools/bindings/src/registry.txt;
Key, Value, OpenOptions, and Transaction are hand-written safe wrappers.
Run cargo test -p windows-registry; see also the workspace test crates.