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(including kernel time and user time).
- Process path and commandline params.
- Process SID and Domain/User.
- Process IO infomation , including all of
IO_COUNTERS
member. - Process memory information , including all of
PROCESS_MEMORY_COUNTERS
member. - Process handles information , use
GetProcessHandleCount
Api. - Process file infomation , use
GetFileVersionInfoExW
Api. - Check whether the process is running in the WOW64 environment.
- Iterate over all processes
remember some infomation need higher privilege in some specific windows versions
example
Get all process pid , process name and user .
use tasklist;
Get all process name , pid , company name , file description.
use tasklist;
Usage
Add this to your Cargo.toml
:
[]
= "0.2.13"