[][src]Function is_elevated::is_elevated

pub fn is_elevated() -> bool

Returns a boolean value, indicating whether the current process is elevated.

Example

use is_elevated::is_elevated;

if !is_elevated() {
    println!(
        "Warning: the program isn’t running as elevated; some functionality may not work."
    );
}