1
0

feat(registry): add privilege check and improve ProgId handling

- Add WFHasPrivilege function to check user privileges
- Refactor ProgId structure to use standard format with optional version
- Improve registry operations with safer key/value handling
- Update dependencies to include Win32_System_Registry
This commit is contained in:
2025-10-19 14:10:21 +08:00
parent f37b4b6652
commit d5fed1e580
5 changed files with 135 additions and 92 deletions

View File

@ -8,7 +8,12 @@ license = "SPDX:MIT"
[dependencies]
thiserror = { workspace = true }
windows-sys = { version = "0.60.2", features = ["Win32_Security", "Win32_System_SystemServices", "Win32_UI_Shell"] }
windows-sys = { version = "0.60.2", features = [
"Win32_Security",
"Win32_System_SystemServices",
"Win32_UI_Shell",
"Win32_System_Registry",
] }
winreg = { version = "0.55.0", features = ["transactions"] }
indexmap = "2.11.4"
regex = "1.11.3"