Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 744 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 744 Bytes

Crates.io docs.rs Build status

is_elevated is a simple Windows-only crate that lets you determine whether the current process is running as elevated (also known “as administrator,” or integrity level High), or not (integrity level Medium or lower).

Example

use is_elevated::is_elevated;

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