MODM_DATA

See also MODM_LONGDATA

Sent to a MIDI output device driver to output a single MIDI event.

MMSYSERR_NOTENABLED

The driver failed to load or initialize.

MIDIERR_NOTREADY

The MIDI hardware is busy with other data.


DWORD dwParam1

Specifies the MIDI event. The low-order byte is the first byte of the event.

DWORD dwParam2

Unused.

This message is used to output all MIDI events, except system-exclusive events. System-exclusive events are output with the MODM_LONGDATA message. MIDI events output with MODM_DATA can be either one, two, or three bytes long. The driver must parse the event to determine how many bytes to output. Unused bytes are not guaranteed to be zero.

The driver can choose not to return until the message has been sent to the output device, or the driver can return immediately and output the MIDI data in the background.