[This is preliminary documentation and subject to change.]
The CMCreateDeviceLinkProfile function creates a device link profile in the format specified by the International Color Consortium in its ICC Profile Format Specification.
BOOL WINAPI CMCreateDeviceLinkProfile(
LPHPROFILE lpahProfiles, // array of profiles
DWORD nProfiles, // profile array size
LPBYTE *lpProfileData // pointer to pointer to buffer
);
If the function succeeds, the return value is a nonzero value.
If this function fails, the return value is zero. If the function is not successful, the CMM should call SetLastError to set the last error to a valid error value defined in Winerror.h.
Only the Windows default CMM is required to export this function; it is optional for all other CMMs.
If a CMM does not support CMCreateDeviceLinkProfile, Windows uses the default CMM to create a device link profile.
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 lpProfileData parameter. Use the GlobalFree function to free the buffer.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Color Management Overview, ICM 2.0 Functions, GlobalFree