Windows Multimedia DDK (mddkqh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MODM_DATA
                                                 Contents Index Back
────────────────────────────────────────────────────────────────────────────
MODM_DATA
 
        This message is sent to a MIDI output device driver to output a
        single MIDI event.
 
Parameters
        DWORD dwParam1
            Specifies the MIDI event. The low-order byte is the first
            byte of the event.
 
        DWORD dwParam2
            Unused.
 
Return value
        The return value is an error code, or zero (MMSYSERR_NOERROR) if
        the operation is successful. Possible error codes are:
 
        MMSYSERR_NOTENABLED
            The driver failed to load or initialize.
 
        MIDIERR_NOTREADY
            The MIDI hardware is busy with other data.
 
Comments
        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.
 
See also
        MODM_LONGDATA
 
                                       -♦-