Important: The information in this document is obsolete and should not be used for new development.
CMGetSystemProfile
Obtains a reference to the current system profile.
pascal CMError CMGetSystemProfile (CMProfileRef *prof);
prof
- A pointer to a profile reference (page 3-63). On output, a reference to the current system profile.
- function result
- A result code of type CMError. See "Result Codes" (page 3-174) for a list of ColorSync-specific result codes.
DISCUSSION
To give the system profile as a function parameter for any of several functions includingNCMBeginMatching
,NCMDrawMatchedPicture
, andNCWNewColorWorld
, you can specify the profile reference or you can specifyNULL
.For all other functions, you must specify an explicit reference to the system profile. You can use this function to obtain a reference to the system profile.
There are other purposes for which your application might obtain a reference to the current system profile. For example, your application might need to get the name of the current system profile to display the application user.
To identify the location of the physical file, call the
CMGetProfileLocation
function (page 3-80).SEE ALSO
When your application has finished using the current system profile, it must close the reference to the profile by calling theCMCloseProfile
function (page 3-71).