MODM_CACHEDRUMPATCHES - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// mmddk.h

DWORD modMessage(
   UINT      uDeviceID,
   UINT      uMsg,
   DWORD_PTR dwUser,
   DWORD_PTR dwParam1,
   DWORD_PTR dwParam2
);
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (modm-cachedrumpatches)

MODM_CACHEDRUMPATCHES function

WINMM sends the MODM_CACHEDRUMPATCHES message to the modMessage function of a MIDI output driver to ask the driver to cache or uncache the specified drum keys. This allows the internal synthesizer drivers to load the patches that are needed by the client application.

Parameters

Return value

modMessage returns MMSYSERR_NOERROR if the MODM_CACHEDRUMPATCHES message was successfully processed. Otherwise, it returns one of the following error messages.

Return code Description
MMSYSERR_NOTENABLED The driver failed to load or initialize.
MMSYSERR_NOTSUPPORTED The function specified in the call to modMessage is not supported.

Remarks

Patch caching is only supported by internal synthesizer device drivers. Drivers for MIDI output ports must return an MMSYSERR_NOTSUPPORTED error for this message. Support for patch caching is optional for internal synthesizer devices. When a driver receives a MODM_GETDEVCAPS message, it must indicate support for patch caching by setting or clearing the MIDICAPS_CACHE bit in the dwSupport field of the MIDIOUTCAPS data structure.

Requirements

Target platform Desktop
Version Available in Windows XP and later Windows operating systems.
Header Mmddk.h (include Mmddk.h, Mmsystem.h, or Windows.h)

See also

modMessage

MODM_GETDEVCAPS

MIDIOUTCAPS

KEYARRAY