pub unsafe fn tasklist() -> HashMap<String, u32>
Expand description

get the windows tasklist ,return a HashMap<String,u32> String is the name of process, and u32 is the id of process

unsafe{
    let list = tasklist::tasklist();
    println!("{:#?}",list);
}