Carbon


CMProfileIterateData

Header: CMApplication.h

struct CMProfileIterateData {
    UInt32 dataVersion; 
    CM2Header header; 
    ScriptCode code; 
    Str255 name; 
    CMProfileLocation location; 
    UniCharCount uniCodeNameCount; 
    UniChar *uniCodeName; 
    UInt8 *asciiName; 
    CMMakeAndModel *makeAndModel; 
    Byte TPLDEV_TYPE_WPS_SPEED; 
    Byte deviceData[253]; 
    SInt16 partitionCmds; 
    SInt16 unused1; 
    SInt16 unused2; 
    SInt16 unused3; 
    SInt16 unused4; 
    SInt16 unused5; 
    SInt16 unused6; 
    SInt16 unused7; 
    SInt16 unused8; 
    SInt16 tRef; 
    TELFeatureFlags featureFlags; 
    SInt16 handsetSpeakerVol; 
    SInt16 handsetMicVol; 
    SInt16 speakerphoneVol; 
    SInt16 speakerphoneMicVol; 
    SInt16 ringerVol; 
    SInt16 otherVol; 
    SInt16 ringerTypes; 
    UInt32 version; 
    char lowerLayerName[36];
};

Field descriptions

dataVersion

A value identifying the version of the structure. Currently set to cmProfileIterateDataVersion1.

header

A ColorSync version 2.x profile header structure of type CM2Header, containing information such as the profile size, type, version, and so on.

code

A script code identifying the script system used for the profile description. The ScriptCode data type is defined in the MacTypes.h header file.

name

The profile name, stored as a Pascal-type string (with length byte first) of up to 255 characters.

location

A structure specifying the profile location. With ColorSync 2.5, the location is always file-based, but that may not be true for future versions. Your code should always verify that the location structure contains a file specification before attempting to use it.

uniCodeNameCount
uniCodeName
asciiName
makeAndModel

The ColorSync Manager defines the CMProfileIterateData structure to provide your CMProfileIterateProcPtr (page 314) callback routine with a description of a profile during an iteration through the available profiles that takes place when you call CMIterateColorSyncFolder.


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