Function tasklist::enable_debug_priv
source · [−]pub unsafe fn enable_debug_priv() -> bool
Expand description
enbale the debug privilege for your program , it return a bool
to show if it success.
println!("has the debug priv?{:#?}",tasklist::has_debug_priv_to(pid));
println!("open the debug priv{:?}",tasklist::enable_debug_priv());
println!("has the debug priv?{:#?}",tasklist::has_debug_priv_to(pid));