Skip to content

Rust crate to determine if your Windows process is running as elevated

License

Notifications You must be signed in to change notification settings

yandexx/is_elevated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rust crate to determine if your Windows process is running as elevated

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages