Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

midiDisconnect function

The midiDisconnect function disconnects a MIDI input device from a MIDI thru or output device, or disconnects a MIDI thru device from a MIDI output device.

Syntax


MMRESULT midiDisconnect(
  HMIDI hMidi,
  HMIDIOUT hmo,
  LPVOID pReserved
);

Parameters

hMidi

Handle to a MIDI input device or a MIDI thru device.

hmo

Handle to the MIDI output device to be disconnected.

pReserved

Reserved; must be NULL.

Return value

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

Return codeDescription
MMSYSERR_INVALHANDLE

Specified device handle is invalid.

 

Remarks

MIDI input, output, and thru devices can be connected by using the midiConnect function. Thereafter, whenever the MIDI input device receives event data in an MIM_DATA message, a message with the same event data is sent to the output device driver (or through the thru driver to the output drivers).

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

MIDI Functions

 

 

Community Additions

Show:
© 2014 Microsoft