[This is preliminary documentation and subject to change.]
The GetColorSpace function retrieves the handle to the input color space from a specified device context.
HCOLORSPACE WINAPI GetColorSpace(
HDC hDC
);
If the function succeeds, the return value is the current input color space handle.
If this function fails, the return value is NULL.
GetColorSpace obtains the handle to the input color space regardless of whether color management is enabled for the device context.
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