The midiInClose function closes the specified MIDI input device.
MMRESULT midiInClose( HMIDIIN hmi );
Handle to the MIDI input device. If the function is successful, the handle is no longer valid after the call to this function.
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.
||Buffers are still in the queue.|
||The specified device handle is invalid.|
||The system is unable to allocate or lock memory.|
If there are input buffers that have been sent by using the midiInAddBuffer function and have not been returned to the application, the close operation will fail. To return all pending buffers through the callback function, use the midiInReset function.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||mmeapi.h (include Windows.h)|