[This is preliminary documentation and subject to change.]
The AssociateColorProfileWithDevice function associates a specified color profile with a specified device.
BOOL WINAPI AssociateColorProfileWithDevice(
PCTSTR pMachineName, // reserved, must be NULL
PCTSTR pProfileName, // file name containing device profile
PCTSTR pDeviceName // name of device
);
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. For extended error information, call GetLastError.
The AssociateColorProfileWithDevice function will fail if the profile has not been installed on the computer using the InstallColorProfile function.
Note that under Windows (Windows 95 or later), the PostScript device driver for printers assumes a CMYK color model. Therefore, all PostScript printers must use a CMYK color profile. Windows NT does not have this limitation.
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.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Color Management Overview, ICM 2.0 Functions