<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDisplayVendorNumber(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGDisplayVendorNumber"
  },
  "title" : "CGDisplayVendorNumber(_:)"
}
-->

# CGDisplayVendorNumber(_:)

Returns the vendor number of the specified display’s monitor.

```
func CGDisplayVendorNumber(_ display: CGDirectDisplayID) -> UInt32
```

## Parameters

`display`

The identifier of the display to be accessed.

## Return Value

A vendor number for the monitor associated with the specified display, or a constant to indicate an exception—see the discussion below.

## Discussion

This function uses I/O Kit to identify the monitor associated with the specified display.

There are three cases:

- If I/O Kit can identify the monitor, the vendor ID is returned.
- If I/O Kit cannot identify the monitor, <doc://com.apple.documentation/documentation/iokit/1505632-anonymous/kdisplayvendoridunknown> is returned.
- If there is no monitor associated with the display, `0xFFFFFFFF` is returned.

---

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)