Function tasklist::find_process_id_by_name
source · [−]Expand description
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>
unsafe{
let aid = tasklist::find_process_id_by_name("cmd.exe");
println!("{:#?}",aid);
}