Contents

CMSetProfileHeader

Sets the header for the specified profile.

Declaration

CMError CMSetProfileHeader (
   CMProfileRef prof,
   const CMAppleProfileHeader *header
);

Parameters

  • prof:

    A profile reference of type Cmprofileref to the profile whose header is set.

  • header:

    A pointer to the new header to set for the profile.

Return Value

A CMError value. See Result Codes.

Overview

You can use the CMSetProfileHeader function to set a header for a version 1.0 or a version 2.x profile. Before you call this function, you must set the values for the header, depending on the version of the profile. For a version 2.x profile, you use a data structure of type CM2Header. For a version 1.0 profile, you use a data structure of type CMHeader. You pass the header you supply in the CMAppleProfileHeader union, described in CMAppleProfileHeader.

See Also

Accessing Profiles