Contents

CMGetProfileByAVID

Gets the current profile for a monitor.

Declaration

CMError CMGetProfileByAVID (
   CMDisplayIDType theID,
   CMProfileRef *prof
);

Parameters

  • theAVID:

    A Display Manager ID value. You pass the ID value for the monitor for which to get the profile.

  • prof:

    A pointer to a profile reference. On return, a reference to the current profile for the monitor specified by theAVID.

Return Value

A CMError value. See Result Codes.

Overview

If the Display Manager supports ColorSync, the CMGetProfileByAVID function calls on the Display Manager to get the profile for the specified display. This is the case if the version of the Display Manager is 2.2.5 or higher (if gestaltDisplayMgrAttr has the gestaltDisplayMgrColorSyncAware bit set).

See Also

Accessing Special Profiles