windows-snapshot

Crates.iowindows-snapshot
lib.rswindows-snapshot
version0.1.1
sourcesrc
created_at2023-05-22 10:58:33.855605
updated_at2023-05-24 05:30:19.147035
descriptionFind out windows state asynchronously and more
homepagehttps://github.com/SubconsciousCompute/windows-snapshot
repositoryhttps://github.com/SubconsciousCompute/windows-snapshot
max_upload_size
id870567
size342,052
Nidhi Hemanth (NidhiHemanth)

documentation

https://docs.rs/query-wmi/windows-snapshot/

README

windows-snapshot

Rust Crates.io docs.rs

The aim is to provide a snapshot of Windows system asynchronously. It achieves this by using WMI.

Our global state is windows_snapshot::state::Windows which stores the states of Windows machine at any given instance. Each state member can be updated synchronously or asynchronously, alone or alongside other states.

Example:

use windows_snapshot::COMLibrary;

#[tokio::main]
async fn main() {
    let _com_con = COMLibrary::new().unwrap(); // initialise security context

    let mut k = windows_snapshot::state::Windows::default();

    k.async_update().await;
    //k.update(); // for synchronous update

    println!("{k:#?}");
}
Commit count: 173

cargo fmt