5 releases
0.2.4 | Oct 11, 2023 |
---|---|
0.2.3 | Oct 9, 2023 |
0.1.2 |
|
#241 in Windows APIs
137 downloads per month
5KB
check_elevation
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
Dependencies
~122MB
~2M SLoC