Important: The information in this document is obsolete and should not be used for new development.
CMSearchGetIndProfileFileSpec
Obtains the file specification for the profile at a specific index into a search result.
pascal CMError CMSearchGetIndProfileFileSpec ( CMProfileSearchRef search, unsigned long index, FSSpec *profileFile);
search- A reference to the profile search result containing the profile whose file specification you want to obtain. For a description of the
CMProfileSearchRefprivate data type, see "Profile Search Result Reference" (page 3-63).index- The index of the profile whose file specification you want to obtain. This is a one-based index into a set of profiles in the search result list. This number must be within the range returned as the
countparameter of theCMNewProfileSearchfunction or theCMUpdateProfileSearchfunction if the search result was updated.profileFile- A pointer to a file specification. On output, this parameter points to a file specification for the profile at the location specified by
index. For a description of theFSSpecdata type, see Inside Macintosh: Files.- function result
- A result code of type CMError. See "Result Codes" (page 3-174) for a list of ColorSync-specific result codes.
DISCUSSION
Before your application can call the CMSearchGetIndProfileFileSpec function, it must call theCMNewProfileSearchfunction (page 3-133) to perform a profile search and produce a search result list. The search result list is a private data structure maintained by ColorSync.The
CMSearchGetIndProfileFileSpecfunction obtains the Macintosh file system file specification for a profile at a specific index in the search result list.