3 releases
Uses old Rust 2015
0.1.2 | Mar 28, 2019 |
---|---|
0.1.1 | Mar 28, 2019 |
0.1.0 | Mar 28, 2019 |
#167 in Windows APIs
4,536 downloads per month
Used in 3 crates
5KB
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."
);
}
lib.rs
:
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."
);
}
Dependencies
~225KB