MIDI input messages are sent by audio device drivers to an application to inform the application about the status of MIDI input operations. By specifying flags with the midiInOpen function, applications may choose to have messages sent either to a window or to a low-level callback function. Use these messages to manage MIDI input:
MM_MIM_CLOSE
Sent to a window when a MIDI input device is closed.
MM_MIM_DATA
Sent to a window when a MIDI message is received by the device.
MM_MIM_ERROR
Sent to a window when an invalid MIDI message is received by the device.
MM_MIM_LONGERROR
Sent to a window when an invalid MIDI system exclusive message is received by the device.
MM_MIM_LONGDATA
Sent to a window when a MIDI system exclusive data buffer is filled and is being returned to the application.
MM_MIM_OPEN
Sent to a low-level callback function when a MIDI input device is opened.
MIM_OPEN
Sent to a window when a MIDI input device is opened.
MIM_CLOSE
Sent to a low-level callback function when a MIDI input device is closed.
MIM_DATA
Sent to a low-level callback function when a MIDI message is received by the device. The parameters to this message include a timestamp specifying the time that the MIDI message was received.
MIM_ERROR
Sent to a low-level callback function when an invalid MIDI message is received by the device.
MIM_LONGERROR
Sent to a low-level callback function when an invalid MIDI system exclusive message is received by the device.
MIM_LONGDATA
Sent to a low-level callback function when a MIDI system exclusive message is received by the device. The parameters to this message include a timestamp specifying the time that the MIDI message was received.