midiOutClose function (mmeapi.h)
The midiOutClose function closes the specified MIDI output device.
Syntax
MMRESULT midiOutClose(
HMIDIOUT hmo
);
Parameters
hmo
Handle to the MIDI output device. If the function is successful, the handle is no longer valid after the call to this function.
Return value
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.
Return code | Description |
---|---|
|
Buffers are still in the queue. |
|
The specified device handle is invalid. |
|
The system is unable to load mapper string description. |
Remarks
If there are output buffers that have been sent by using the midiOutLongMsg function and have not been returned to the application, the close operation will fail. To mark all pending buffers as being done, use the midiOutReset function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | mmeapi.h (include Windows.h) |
Library | Winmm.lib |
DLL | Winmm.dll |