aida64-reader-rs 0.1.33

a data reader from AIDA64
Documentation

Example

# default use feature "shm"(read data from shared memory)

[dependencies]

aida64-reader-rs = "*"



# you can also choose feature "reg" (read data from registry) and feature "wmis" (read data from wmi)

[dependencies]

aida64-reader-rs = {version = "*", default-features = false, feature = ["reg"] }

aida64-reader-rs = {version = "*", default-features = false, feature = ["wmis"] }



use std::collections::HashMap;
use aida64_reader_rs::shm;

fn main() {
    loop {
        let mut dictionary:HashMap<&str,&str> = HashMap::new();
        match shm::read_from_shared_memory()  {
            Ok(datas) => {
                datas.iter().for_each(|d| {
                    dictionary.insert(d.id.as_str(),d.value.as_str());  
                });
                println!("{:?}",dictionary);
            },
            Err(e) => panic!("{}",e),
        }
        std::thread::sleep(std::time::Duration::from_millis(1000));
    }
}