Expand description

tasklist

tasklist is a crate let you easily get tasklist and process information on windows. it based on windows-rs crate.

Re-exports

pub use infos::Process;
pub use infos::Tasklist;
pub use infos::info;

Modules

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.

judge if your program has the debug privilege to another process (because sometimes even your program has the debug privilege but still cannot debug another process like widnows11). it will return true if it can be debuged.

kill a process by process_id . if success , it will return true