pub unsafe fn tasklist() -> HashMap<String, u32>
get the windows tasklist ,return a HashMap<String,u32> String is the name of process, and u32 is the id of process
HashMap<String,u32>
String
u32
unsafe{ let list = tasklist::tasklist(); println!("{:#?}",list); }