ERROR_INVALID_EVENT_COUNT 0x80070097
Error code 151 · HRESULT 0x80070097
The number of specified semaphore events for DosMuxSemWait is not correct.
What it means
ERROR_INVALID_EVENT_COUNT is a Windows error code (system error 151, returned as HRESULT 0x80070097) reported by Windows. Its official message is: “The number of specified semaphore events for DosMuxSemWait is not correct.”
How to fix ERROR_INVALID_EVENT_COUNT
- Reboot once — many one-off system codes disappear with a clean restart
- Repair system files: 'sfc /scannow' then 'DISM /Online /Cleanup-Image /RestoreHealth'
- Find the source in Event Viewer → System: filter for this exact code and open its provider link
Related errors
Source: Microsoft WinError.h
Last updated: