check_elevation 0.2.6

Check if the current process is elevated. A successor to the `is_elevated` crate. Now no_std!
Documentation
check_elevation-0.2.6 has been yanked.

check_elevation

license version

A tool to check the elevation status through a simple function.

Successor to is_elevated.

Example

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.");
    }
}

Dependencies