A tool to check the elevation status through a simple function.
Successor to is_elevated.
use check_elevation::is_elevated;
fn main() {
if is_elevated().expect("Failed to get elevation status.") {
println!("Running as administrator.");
} else {
println!("Not running as administrator.");
}
}