GetColorSpace function (wingdi.h)

The GetColorSpace function retrieves the handle to the input color space from a specified device context.

Syntax

HCOLORSPACE GetColorSpace(
  HDC hdc
);

Parameters

hdc

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

Return value

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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h
Library Gdi32.lib
DLL Gdi32.dll

See also