Expand description
Checks if the current Windows process is elevated. Returns true if the process is elevated, false if not.
§Example
use check_elevation::is_elevated;
if is_elevated().expect("Failed to get elevation status.") {
println!("Running as administrator.");
} else {
println!("Not running as administrator.");
}made with ♥ by h4rl uses bsd-2-clause license