MODM_CACHEPATCHES - 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-cachepatches)

MODM_CACHEPATCHES function

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

Parameters

Return value

The modMessage function returns zero if the operation is successful. Otherwise, it returns one of the error messages in the following table.

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 drivers. Drivers for MIDI output ports must return an MMSYSERR_NOTSUPPORTED error in response to the MODM_CACHEPATCHES message. Support for patch caching is optional for internal synthesizer devices. When a driver receives a MODM_GETDEVCAPS message, it must either set or clear the MIDICAPS_CACHE bit in the dwSupport field of the MIDIOUTCAPS data structure to indicate support for patch caching.

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

PATCHARRAY