The midiOutLongMsg function sends a system-exclusive MIDI message to the specified MIDI output device.
MMRESULT midiOutLongMsg(
HMIDIOUT hmo,
LPMIDIHDR lpMidiOutHdr,
UINT cbMidiOutHdr
);
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following:
Value | Description | ||
---|---|---|---|
MIDIERR_NOTREADY | The hardware is busy with other data. | ||
MIDIERR_UNPREPARED | The buffer pointed to by lpMidiOutHdr has not been prepared. | ||
MMSYSERR_INVALHANDLE | The specified device handle is invalid. | ||
MMSYSERR_INVALPARAM | The specified pointer or structure is invalid. |
Before the buffer is passed to midiOutLongMsg, it must be prepared by using the midiOutPrepareHeader function. The MIDI output device driver determines whether the data is sent synchronously or asynchronously.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.
Musical Instrument Digital Interface (MIDI) Overview, MIDI Functions, MIDIHDR, midiOutPrepareHeader