pub const fn is_elevated() -> Result<bool, TokenPrivilegeError>Expand description
Check if the current process is running with elevated (Administrator) privileges.
§Platform Support
This is a non-Windows stub that always returns an error. On Windows, this queries the process token for UAC elevation status.
§Errors
Always returns TokenPrivilegeError::UnsupportedPlatform on non-Windows.