Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The midiOutMessage function sends a message to the MIDI device drivers. This function is used only for driver-specific messages that are not supported by the MIDI API.
DWORD midiOutMessage(
  HMIDIOUT  deviceID, 
  UINT      msg, 
  DWORD_PTR dw1, 
  DWORD_PTR dw2  
);
Parameters
deviceID
Identifier of the MIDI device that receives the message. You must cast the device ID to the HMIDIOUT handle type. If you supply a handle instead of a device ID, the function fails and returns the MMSYSERR_NOSUPPORT error code.
msg
Message to send.
dw1
Message parameter.
dw2
Message parameter.
Return Values
Returns the value returned by the audio device driver.
Requirements
**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Mmsystem.h; include Windows.h.
**  Library:** Use Winmm.lib.
See Also