midiStreamClose

The midiStreamClose function closes an open MIDI stream.

MMRESULT midiStreamClose(
  HMIDISTRM hStream  
);
 

Parameters

hStream
Handle of a MIDI stream, as retrieved by using the midiStreamOpen function.

Return Values

Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following:

Value Description
MMSYSERR_INVALHANDLE The specified device handle is invalid.

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, midiStreamOpen