Token privlages
-
I'm trying to enable the SE_TCB_NAME privilage within the token of my process, but for some reason after the call to AdjustTokenPrivilages() GetLastError returns ERROR_NOT_ALL_ASSIGNED. My program is running in elevated mode so I can't understand why I am unable to set this. Is there something I am missing?
Waldermort
-
I'm trying to enable the SE_TCB_NAME privilage within the token of my process, but for some reason after the call to AdjustTokenPrivilages() GetLastError returns ERROR_NOT_ALL_ASSIGNED. My program is running in elevated mode so I can't understand why I am unable to set this. Is there something I am missing?
Waldermort
The AdjustTokenPrivileges function cannot add new privileges to the access token. It can only enable or disable the token's existing privileges. To determine the token's privileges, call the GetTokenInformation function. -Sachin