Function tasklist::get_proc_sid_and_user
source · [−]Expand description
get the process sid and domain/user name from pid . it will return a tuple consisting of (domain/user,sid)
. if the privilege is not enough , it will return the failed reson.
use tasklist;
unsafe{
println!("{:?}",tasklist::get_proc_sid_and_user(17716));
}
OR
use tasklist::info;
unsafe{
println!("{:?}",info::get_proc_sid_and_user(17716));
}