(privs ...string)
| 116 | } |
| 117 | |
| 118 | func removePrivileges(privs ...string) { |
| 119 | var token windows.Token |
| 120 | _ = windows.OpenProcessToken(windows.CurrentProcess(), windows.TOKEN_ADJUST_PRIVILEGES|windows.TOKEN_QUERY, &token) |
| 121 | _ = adjustTokenPrivileges(token, PrivilegeRemoved, privs...) |
| 122 | } |
no test coverage detected