HANDLE ClrHandle;
CONVERSION_PARAMS params;
BYTE RGBColor[3];
BYTE ColorSpace[4];
memset(¶ms, 0, sizeof(CONVERSION_PARAMS));
params.uStructSize = sizeof(CONVERSION_PARAMS);
params.nMethod = USE_CUSTOM_ICC;
params.nActiveMethod = USE_CUSTOM_ICC;
params.pWpoint = (LPWHITEPOINT)malloc(sizeof(WHITEPOINT));
params.pWpoint->nWhitePoint = CIELAB_D50;
params.pMemInputProfile = NULL;
params.pMemOutputProfile = NULL;
lstrcpy(params.sInputProfile, TEXT("C:\\MyCMYKProfile.ICM"));
lstrcpy(params.sOutputProfile, TEXT("C:\\MyRGBProfile.ICM"));
L_ClrInit(&ClrHandle, CCS_CMYK, CCS_RGB, ¶ms);
ColorSpace[0] = 100;
ColorSpace[1] = 100;
ColorSpace[2] = 100;
ColorSpace[3] = 100;
L_ClrConvert(ClrHandle, ColorSpace, RGBColor, 1, 1, 0, 0);
L_ClrFree(ClrHandle);