Site icon EfmSoft

What does Windows error code 1300 (ERROR_NOT_ALL_ASSIGNED) mean?

 
Previous Next
ERROR_INVALID_LABEL ERROR_SOME_NOT_MAPPED

ERROR_NOT_ALL_ASSIGNED

ERROR_NOT_ALL_ASSIGNED (1300, 0x00000514) is a special success-with-warning result from AdjustTokenPrivileges: the call returned success, but the token did not contain one or more requested privileges.

Why the Boolean return value is not enough

AdjustTokenPrivileges can enable or disable privileges already present in an access token. It cannot grant a privilege that is absent. Windows may adjust the privileges that do exist and still set the last error to ERROR_NOT_ALL_ASSIGNED; in some cases none of the requested privileges were changed.

Correct handling

See Microsoft documentation for AdjustTokenPrivileges and changing privileges in a token.


Looking for a different code? Search another status or error code.

Exit mobile version