tasklist-rs
a small crate let you can easily get tasklist and process information on windows
- based on
windows-rs
crate
what information you can get
- process name,pid,parrentID,theradsID.
- process start_time,exit_time,and CPU_time.
- process path and commandline params.
- process SID and Domain/User.
- process IO infomation.
- process memory information.
- process handles information.
- tasklist(all process)
remember some infomation need higher privilege in some specific windows versions
example
use tasklist;
fn main(){
unsafe{
let tl = tasklist::Tasklist::new();
for i in tl{
println!("{} {} {}",i.get_pid(),i.get_pname(),i.get_user());
}
}
}
Usage
Add this to your Cargo.toml
:
[dependencies]
tasklist = "0.1.9"