This message is sent to MIDI input device drivers to stop recording and return all buffers in the input queue to the client.
DWORD dwParam1
Unused.
DWORD dwParam2
Unused.
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.
The driver should stop recording and set the MHDR_DONE bit and clear the MHDR_INQUEUE bit in the dwFlags field of the MIDIHDR structure for each buffer in the input queue. It should also be sure the dwBytesRecorded field contains the number of bytes recorded for each buffer. The driver should then notify the client by using DriverCallback to send a MOM_DONE message for each buffer.