| Previous | Next |
| TPMAPI_E_AUTHORIZATION_FAILED | TPMAPI_E_TBS_COMMUNICATION_ERROR |
TPMAPI_E_INVALID_CONTEXT_HANDLE
TPMAPI_E_INVALID_CONTEXT_HANDLE is a Windows TPM API result. It indicates that the supplied context handle is uninitialized, closed, corrupted, or belongs to a different operation lifetime.
What to check for TPMAPI_E_INVALID_CONTEXT_HANDLE
- Create a new context and avoid reusing handles after close, failure, or process restart.
- Ensure that a context is used only by code that owns its lifetime and synchronization.
- Check handle initialization and cleanup paths for double-close or use-after-close errors.
Microsoft documentation for TPMAPI error codes
Diagnostic discriminator: Verify that the context handle is initialized, still open and belongs to the current TPM API lifetime. This result is handle validity, not invalid context parameter contents.
Looking for a different code? Search another status or error code.