Function

CGBeginDisplayConfiguration

Begins a new set of display configuration changes.

Declaration

CGError CGBeginDisplayConfiguration(CGDisplayConfigRef _Nullable *config);

Parameters

pConfigRef

A pointer to storage you provide for a display configuration. On return, your storage contains a new display configuration.

Return Value

A result code. If the object is successfully created, the result is kCGErrorSuccess. For other possible values, see Core Graphics Data Types and Constants.

Discussion

This function creates a display configuration object that provides a context for a set of display configuration changes. After you specify the desired changes, you use CGCompleteDisplayConfiguration to apply them in a single transaction.