[This is preliminary documentation and subject to change.]
The CreateDeviceLinkProfile function creates a device link profile from a set of color profiles, using the specified intents.
BOOL WINAPI CreateDeviceLinkProfile(
PHPROFILE pahProfiles,
DWORD nProfiles,
PDWORD padwIntent,
DWORD nIntents,
DWORD dwFlags,
PBYTE *pProfileData,
DWORD indexPreferredCMM
);
Set the high-order WORD to ENABLE_GAMUT_CHECKING if the transform will be used for gamut checking.
The low-order WORD can have one of the following constant values: PROOF_MODE, NORMAL_MODE, BEST_MODE. Moving from PROOF_MODE to BEST_MODE, output quality generally improves and transform speed declines.
If this function succeeds, the return value is a nonzero value.
If this function fails, the return value is zero. For extended error information, call GetLastError.
The first and the last profiles in the array must be device profiles. The other profiles can be color space or abstract profiles.
Each profile's output color space must be the next profile's input color space.
The calling application must free the buffer allocated by this function and pointed to by the pProfileData parameter. The GlobalFree function should be used to free the buffer.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in icm.h.
Import Library: Use mscms.lib.
Color Management Overview, ICM 2.0 Functions, GlobalFree