()
| 10 | #[cfg(target_os = "windows")] |
| 11 | #[must_use] |
| 12 | pub fn get_security_context() -> SecurityContext { |
| 13 | use is_elevated::is_elevated; |
| 14 | if is_elevated() { |
| 15 | return SecurityContext::Admin; |
| 16 | } |
| 17 | SecurityContext::User |
| 18 | } |
| 19 | |
| 20 | #[cfg(not(target_os = "windows"))] |
| 21 | #[must_use] |
no outgoing calls
no test coverage detected