WORD midiOutReset(hMidiOut)
This function turns off all notes on all MIDI channels for the specified MIDI output device.
HMIDIOUT hMidiOut
Specifies a handle to the MIDI output 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.
If the specified MIDI output device is an output port, a note off message for each note of each channel is sent. In addition, a sustain (damper pedal) off controller message is sent for each channel.
midiOutLongMsg, midiOutClose