(privs ...string)
| 110 | } |
| 111 | |
| 112 | func enablePrivileges(privs ...string) { |
| 113 | var token windows.Token |
| 114 | _ = windows.OpenProcessToken(windows.CurrentProcess(), windows.TOKEN_ADJUST_PRIVILEGES|windows.TOKEN_QUERY, &token) |
| 115 | _ = adjustTokenPrivileges(token, PrivilegedEnabled, privs...) |
| 116 | } |
| 117 | |
| 118 | func removePrivileges(privs ...string) { |
| 119 | var token windows.Token |
no test coverage detected