| Crates.io | tasklist |
| lib.rs | tasklist |
| version | 0.3.1 |
| created_at | 2022-06-23 14:57:00.266789+00 |
| updated_at | 2025-06-01 13:22:04.942+00 |
| description | Get the tasklist and process information on windows |
| homepage | |
| repository | https://github.com/yalishandar/tasklist-rs |
| max_upload_size | |
| id | 611918 |
| size | 407,272 |
a small crate let you can easily get tasklist and process information on windows
windows-rs crateIO_COUNTERS member.PROCESS_MEMORY_COUNTERS member.GetProcessHandleCount Api.GetFileVersionInfoExW Api.remember some infomation need higher privilege in some specific windows versions
Get all process pid , process name and user .
use tasklist;
fn main(){
let tl = tasklist::Tasklist::new().unwrap();
tasklist::enable_debug_priv();
for i in tl{
println!("{} {} {}",i.get_pid(),i.get_pname(),i.get_user());
}
}
Get all process name , pid , company name , file description.
use tasklist;
fn main(){
let tasks = tasklist::tasklist().unwrap();
for i in tasks {
match i.get_file_info(){
Ok(info) => println!("{:?}", info.get("FileDescription")),
Err(_) => (),
}
}
}
Add this to your Cargo.toml:
[dependencies]
tasklist = "0.3.1"