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_RESET
                                                 Contents Index Back
────────────────────────────────────────────────────────────────────────────
MODM_RESET
 
        This message is sent to a MIDI output device driver to stop
        output from the output queue and to turn off any notes that can
        be playing.
 
Parameters
        DWORD dwParam1
            Unused.
 
        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.
 
Comments
        If the driver's output queue is not empty, it should stop and
        mark all pending data blocks as done by setting the MHDR_DONE
        bit in the dwFlags field of the MIDIHDR structure for each
        block. The driver should then notify the client by using
        DriverCallback to send a MOM_DONE message for each data block.
 
        If the device is an output port, the driver should send a MIDI
        note off event for all 128 notes for all 16 channels. In
        addition, the driver should send a damper pedal off event
        (controller 0x40) for each channel. If the device is an internal
        synthesizer, the driver should turn off any notes playing.
 
                                       -♦-