windows-registry

Crates.iowindows-registry
lib.rswindows-registry
version0.3.0
sourcesrc
created_at2024-02-15 05:27:39.377652
updated_at2024-09-25 11:45:35.645098
descriptionWindows registry
homepage
repositoryhttps://github.com/microsoft/windows-rs
max_upload_size
id1140682
size42,910
Kenny Kerr (kennykerr)

documentation

README

Windows registry

The windows-registry crate provides simple, safe, and efficient access to the Windows registry.

Start by adding the following to your Cargo.toml file:

[dependencies.windows-registry]
version = "0.3"

Read and write registry keys and values as needed:

use windows_registry::*;

fn main() -> Result<()> {
    let key = CURRENT_USER.create("software\\windows-rs")?;

    key.set_u32("number", 123)?;
    key.set_string("name", "Rust")?;

    println!("{}", key.get_u32("number")?);
    println!("{}", key.get_string("name")?);

    Ok(())
}
Commit count: 1510

cargo fmt