6 releases
0.1.33 | Jun 10, 2024 |
---|---|
0.1.32 | Jun 10, 2024 |
#2 in #reg
8KB
135 lines
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));
}
}
Dependencies
~0.3–27MB
~387K SLoC