public bool Disconnect(IntPtr handleFrom) { if (this._disposing) { return(false); } this._lastError = Midi.MIDI_Disconnect(this._device, handleFrom); return(this._lastError == MIDIError.MIDI_OK); }