1 2 3 4 5 6
fn main() { use quork::prelude::is_root; let root = is_root().unwrap(); println!("Is the the process running as admin? {}", root); }