[This is preliminary documentation and subject to change.]
The SetDeviceGammaRamp function sets the gamma ramp on direct color display boards having drivers that support downloadable gamma ramps in hardware.
BOOL WINAPI SetDeviceGammaRamp(
HDC hDC,
LPVOID lpRamp
);
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE.
Direct color display modes do not use color lookup tables and are usually 16, 24, or 32 bit. Not all direct color video boards support loadable gamma ramps. SetDeviceGammaRamp succeeds only for devices with drivers that support downloadable gamma ramps in hardware.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in icm.h.
Import Library: Use gdi32.lib.
Color Management Overview, ICM 2.0 Functions