| Previous | Next |
| STATUS_ACCOUNT_LOCKED_OUT | STATUS_CONNECTION_REFUSED |
STATUS_HANDLE_NOT_CLOSABLE
The object handle is deliberately protected from close
Windows handles can carry a protect-from-close property. The public SetHandleInformation API exposes HANDLE_FLAG_PROTECT_FROM_CLOSE; the native Object Manager representation exposes the corresponding ProtectFromClose handle flag. Closing such a handle is rejected rather than silently destroying the reference.
Determine who set the flag and whether protection is part of the component's lifetime design. A broad cleanup loop that closes every numeric handle can hit this status legitimately. If the handle should be closed, clear the protection through the owning API or Object Manager information path before closing it. Do not suppress the status and assume the resource was released.
What to inspect
- Query or track the handle protection flag before cleanup.
- Identify the component that enabled protect-from-close and its intended lifetime.
- Confirm the close actually succeeded before clearing ownership bookkeeping.
References
- Microsoft: SetHandleInformation
- Microsoft: CloseHandle
- System Informer PHNT: Object Manager Native API
Looking for a different code? Search another status or error code.
