The current implementation of EnableAllPrivileges() enable a list of hardcoded privileges by their names.
The code should be refactored to dynamically retrieves the privileges from the token leveraging the function GetTokenPrivileges() and enables only the disabled ones.
The current implementation of EnableAllPrivileges() enable a list of hardcoded privileges by their names.
The code should be refactored to dynamically retrieves the privileges from the token leveraging the function GetTokenPrivileges() and enables only the disabled ones.