Carbon


CMGetScriptProfileDescription

Header: CMApplication.h Carbon status: Supported

Obtains the internal name (or description) of a profile and the script code identifying the language in which the profile name is specified from the specified profile.

CMError CMGetScriptProfileDescription (
    CMProfileRef prof, 
    Str255 name, 
    ScriptCode *code
);
Parameter descriptions
prof

A profile reference of type CMProfileRef to the profile whose profile name and script code are obtained.

name

A pointer to a name string. On return, the profile name.

code

A pointer to a script code. On return, the script code.

DISCUSSION

The element data of the text description tag (which has the signature 'desc' or constant cmSigProfileDescriptionType, defined in the CMICCProfile.h header file) specifies the profile name and script code. The name parameter returns the profile name as a Pascal string. Use this function so that your application does not need to obtain and parse the element data, which contains other information.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when ColorSync 2.0 or later is present.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)