[This is preliminary documentation and subject to change.]
The SetColorProfileElement function sets the element data for a tagged profile element.
BOOL WINAPI SetColorProfileElement(
HPROFILE hProfile,
TAGTYPE tag,
DWORD dwOffset,
PDWORD pcbSize,
PVOID pBuffer
);
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. For extended error information, call GetLastError.
If the color profile is not opened for read/write permission, this function fails.
If dwOffset exceeds the size set for the specified tagged element, this function fails.
If dwOffset + *pcbSize is greater than the size of the specified element, this function only writes as many bytes as will fit within the current size of the element.
Any existing data in the specified portion of the tagged element is overwritten when this function succeeds.
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.
Color Management Overview, ICM 2.0 Functions