midiDisconnect (winmm)
Last changed: -81.108.194.163

.
Summary
Disconnects a MIDI input device from a MIDI thru or output device, or disconnects a MIDI thru device from a MIDI output device.

C# Signature:

[DllImport("winmm.dll")]
static extern UInt32 midiDisconnect(IntPtr hMidi, IntPtr hmo, IntPtr pReserved);

VB Signature:

Declare Function midiDisconnect Lib "winmm.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

UInt32 Disconnect(IntPtr midiInputHandle, IntPtr midiOutputHandle)
{
     return midiDisconnect(midiInputHandle, midiOutputHandle, IntPtr.Zero);
}

Documentation