WINMM sends the
MODM_PAUSE message to the modMessage function of a MIDI output driver to temporarily pause output requests. Playback of streams stops but no buffers are marked as done.
DWORD modMessage( UINT uDeviceID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dwParam1, DWORD_PTR dwParam2 );
Specifies the ID of the target device. Device IDs are sequential and have an initial value of zero and a final value that is equal to one less than the number of devices that the driver supports.
WINMM sets this parameter to MODM_PAUSE when it calls modMessage to process this message.
Use this parameter to return instance data to the driver. Drivers that support multiple clients can use this instance data to track the client that is associated with the message.
The modMessage function returns MMSYSERR_NOERROR if the operation was successful. Otherwise, it returns MMSYSERR_NOTENABLED to indicate that the driver failed to load or initialize.
The driver must halt MIDI playback in the current position. The driver must then turn off all notes that are currently on.
|Available in Windows XP and later Windows operating systems.|