<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: 10.1.0 - 10.6.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIGetSerialPortDrivers",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@F@MIDIGetSerialPortDrivers"
  },
  "title" : "MIDIGetSerialPortDrivers"
}
-->

# MIDIGetSerialPortDrivers

Returns a list of installed MIDI drivers for serial port MIDI devices.

```
extern OSStatus MIDIGetSerialPortDrivers(CFArrayRef*outDriverNames);
```

## Parameters

`outDriverNames`

On exit, a CFArrayRef containing a list of CFStringRef’s which are the names of the serial port MIDI drivers. The array should be released by the caller.

## Return Value

An OSStatus result code.

## Discussion

Use this to determine which of the installed MIDI drivers are for devices which may attach to serial ports.

New for CoreMIDI 1.1.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)