MODM_RESTART - 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-restart)

MODM_RESTART function

WINMM sends the MODM_RESTART message to the modMessage function of a MIDI output driver to restart playback after a MODM_PAUSE.

Parameters

Return value

The modMessage function returns MMSYSERR_NOERROR if the operation is successful. Otherwise, it returns MMSYSERR_NOTENABLED to indicate that the driver failed to load or initialize.

Remarks

The MIDI output device driver must restart MIDI playback at the current position.

MODM_PAUSE and MODM_RESTART message pairs cannot be nested. MODM_PAUSE messages that are received while the driver is already in the paused state must be ignored; playback will start on the first MODM_RESTART message that is received regardless of the number of MODM_PAUSE that messages were received. Likewise, MODM_RESTART messages that are received while the driver is already in play mode must be ignored. MMSYSERR_NOERROR must be returned in either case.

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_PAUSE