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      
);
 Returns the value returned by the audio device driver.
  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