![]() |
Profile Access Procedure Operation Codes |
Header: CMApplication.h |
enum { cmOpenReadAccess = 1, cmOpenWriteAccess = 2, cmReadAccess = 3, cmWriteAccess = 4, cmCloseAccess = 5, cmCreateNewAccess = 6, cmAbortWriteAccess = 7, cmBeginAccess = 8, cmEndAccess = 9 };
Open the profile for writing. The total size of the profile is specified in the size parameter.
Read the number of bytes specified by the size parameter.
Write the number of bytes specified by the size parameter.
Close the profile for reading or writing.
Create a new data stream for the profile.
Cancel the current write attempt.
Begin the process of procedural access. This is always the first operation constant passed to the access procedure. If the call is successful, the cmEndAccess operation is guaranteed to be the last call to the procedure.
End the process of procedural access. This is always the last operation constant passed to the access procedure (unless the cmBeginAccess call failed).
When your application calls the CMOpenProfile, CMNewProfile, CMCopyProfile, or CMNewLinkProfile functions, it can supply the ColorSync Manager with a profile location structure of type CMProfileAccessProcPtr
.
When the ColorSync Manager calls your profile access procedure, it passes one of these constants in the command parameter to specify an operation. Your procedure must be able to respond to each of these constants.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)