elevation prompt && uac warning

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages committed 2022-09-29 09:13:19 +08:00
1 parent e1c2b8de6e
commit 728985e3bf
32 files changed
+156 -16

No files matched your search

+13
View File
@@ -755,6 +755,19 @@ pub fn has_hwcodec() -> bool {
return true;
}
#[inline]
pub fn is_release() -> bool {
#[cfg(not(debug_assertions))]
return true;
#[cfg(debug_assertions)]
return false;
}
#[inline]
pub fn is_root() -> bool {
crate::platform::is_root()
}
#[inline]
pub fn check_super_user_permission() -> bool {
#[cfg(any(windows, target_os = "linux"))]