midiOutMessage

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 hmo,  
  UINT msg,      
  DWORD dw1,     
  DWORD dw2      
);
 

Parameters

hmo
Handle of the MIDI device. This parameter can also be the handle of a MIDI stream cast to HMIDIOUT.
msg
Message to send.
dw1 and dw2
Message parameters.

Return Values

Returns the value returned by the audio device driver.

QuickInfo

  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.

See Also

Musical Instrument Digital Interface (MIDI) Overview, MIDI Functions