Once you have opened a MIDI input device, you can begin receiving MIDI input. MIDI messages other than system exclusive messages are sent directly to a callback. To receive system exclusive messages, you must pass data buffers to the input device. These data buffers must be prepared before being sent to the device. Use the following messages to prepare system exclusive data buffers and pass these buffers to a MIDI input device:
midiInAddBuffer
Sends an input buffer for system exclusive messages to a specified MIDI input device. The buffer is sent back to the application when it is filled with system exclusive data.
midiInPrepareHeader
Informs a MIDI input device that the given data buffer should be prepared for recording.
midiInUnprepareHeader
Informs a MIDI input device that the preparation performed on the given data buffer can be cleaned up.