a small crate let you can easily get tasklist and process information on windows
windows-rs
crate remember some infomation need higher privilege in some specific windows versions
```rust use tasklist;
fn main(){
unsafe{
let tl = tasklist::Tasklist::new();
for i in tl{
println!("{} {} {}",i.get_pid(),i.get_pname(),i.get_user());
}
}
} ```
Add this to your Cargo.toml
:
toml
[dependencies]
tasklist = "0.1.9"