WORD midiInReset(hMidiIn)
This function stops input on a given MIDI input device and marks all pending input buffers as done.
HMIDIIN hMidiIn
Specifies a handle to the MIDI input device.
Returns zero if the function was successful. Otherwise, it returns an error number. Possible error returns are:
MMSYSERR_INVALHANDLE
Specified device handle is invalid.
midiInStart, midiInStop, midiInAddBuffer, midiInClose