CGDisplayVendorNumber(_:)
Returns the vendor number of the specified display’s monitor.
Declaration
func CGDisplayVendorNumber(_ display: CGDirectDisplayID) -> UInt32Parameters
- 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, kDisplayVendorIDUnknown is returned.
If there is no monitor associated with the display,
0xFFFFFFFFis returned.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()