[This is preliminary documentation and subject to change.]
The CreateColorSpace function creates a logical color space.
HCOLORSPACE WINAPI CreateColorSpace(
LPLOGCOLORSPACE lpLogColorSpace
);
If this function succeeds, the return value is a handle that identifies a color space.
If this function fails, the return value is NULL.
When the color space is no longer needed, use DeleteColorSpace to delete it.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Color Management Overview, ICM 2.0 Functions, DeleteColorSpace