Expand description
tasklist
tasklist
is a crate let you easily get tasklist and process information on windows.
it based on windows-rs
crate.
what information you can get
- process name,pid,parrentID,theradsID.
- process start_time,exit_time,kernel_time,user_time.
- process path and commandline params.
- process SID and Domain/User.
- TODO
process IO infomation - TODO
process memory information - TODO
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());
}
}
}
Modules
Structs
Functions
enbale the debug privilege for your program , it return a bool
to show if it success.
return the first process id by the name you gave , it return the Option<u32>
, u32
is the process id.
find the process id by the name you gave , it return a Vec<U32>
, if the process is not exist , it will return a empty Vec<u32>
just like the name , this function will return a Option<String>
by the id you gave, String
is the name of process.