GetColorSpace

[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 
);
 

Parameters

hDC
Specifies a device context that is to have its input color space handle retrieved.

Return Values

If the function succeeds, the return value is the current input color space handle.

If this function fails, the return value is NULL.

Remarks

GetColorSpace obtains the handle to the input color space regardless of whether color management is enabled for the device context.

QuickInfo

  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.

See Also

Color Management Overview, ICM 2.0 Functions