[This is preliminary documentation and subject to change.]
The CMCheckColors function determines whether given colors lie within the output gamut of a specified transform.
BOOL WINAPI CMCheckColors(
HCMTRANSFORM hcmTransform, // transform handle
LPCOLOR lpaInputColors, // array of COLORs
DWORD nColors, // COLOR array size
COLORTYPE ctInput, // input color type
LPBYTE lpaResult // buffer for results
);
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. 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.
Every CMM is required to export this function.
If the input color type is not compatible with the color transform CMCheckColors fails.
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