The XLATEOBJ_iXlate function translates a color index of the source palette to the closest index in the destination palette.
ULONG
XLATEOBJ_iXlate(
IN XLATEOBJ *pxlo,
IN ULONG iColor
);
The return value is an index into the destination palette if the function is successful. If the function fails, -1 is returned.
Declared in winddi.h. Include winddi.h.