The MM_MIM_ERROR message is sent to a window when an invalid MIDI message is received.
MM_MIM_ERROR
wParam = (WPARAM) hInput
lParam = (LPARAM) (DWORD) lMidiMessage
This message does not return a value.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Musical Instrument Digital Interface (MIDI) Overview, MIDI Messages