| Previous | Next |
| STATUS_THREAD_NOT_IN_PROCESS | STATUS_PAGEFILE_QUOTA_EXCEEDED |
STATUS_TOKEN_ALREADY_IN_USE
The primary token lifetime is already committed
A primary token represents a security context for a process. This status appears when code tries to assign or establish a primary token in a way that conflicts with its existing use.
It is a token-object lifetime and ownership problem rather than a simple authentication failure. Creating a fresh token or duplicating with the intended token type may be necessary.
What to inspect
- Record where the token handle was obtained and whether it is already attached to a process.
- Check duplicated-token type, desired access, and inheritance choices.
- Look for service code that caches a primary token and tries to reuse it across unrelated logon sessions.
References
- Microsoft: Access tokens
- Microsoft: Access rights for access-token objects
- Microsoft Open Specifications: NTSTATUS values
Looking for a different code? Search another status or error code.