Skip to content

Latest commit

History

History
32 lines (22 loc) 路 1.37 KB

File metadata and controls

32 lines (22 loc) 路 1.37 KB

windows-registry

Simple, safe, and efficient access to the Windows registry.

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.


Internal documentation

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.

How it's built

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.

Testing

Run cargo test -p windows-registry; see also the workspace test crates.