windows portable: request elevation && run as system

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-09-26 16:23:09 +08:00
parent 77276dd78e
commit e1c2b8de6e
5 changed files with 82 additions and 4 deletions

View File

@@ -91,6 +91,8 @@ winapi = { version = "0.3", features = ["winuser"] }
winreg = "0.10"
windows-service = "0.4"
virtual_display = { path = "libs/virtual_display" }
is_elevated = "0.1.2"
impersonate_system = { git = "https://github.com/21pages/impersonate-system" }
[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2"