public bool Send()
        {
            if (this._headerPtr == IntPtr.Zero)
            {
                return(false);
            }
            MIDIError midierror;

            if (this._input)
            {
                midierror = Midi.MIDI_InAddBuffer(this._device, this._headerPtr);
            }
            else
            {
                midierror = Midi.MIDI_OutLongMsg(this._device, this._headerPtr);
            }
            return(midierror == MIDIError.MIDI_OK);
        }