is_elevated

Crates.iois_elevated
lib.rsis_elevated
version0.1.2
sourcesrc
created_at2019-03-28 12:58:53.621408
updated_at2019-03-28 16:13:59.101095
descriptionDetermine whether your Windows process is running elevated or not.
homepage
repositoryhttps://github.com/yandexx/is_elevated
max_upload_size
id124336
size5,406
Vsevolod Zubarev (yandexx)

documentation

README

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."
    );
}
Commit count: 18

cargo fmt