GetLogColorSpace

The GetLogColorSpace function retrieves the color space definition identified by a specified handle.

BOOL WINAPI GetLogColorSpace(
  HCOLORSPACE hColorSpace,  LPLOGCOLORSPACE lpBuffer,  DWORD nSize);

Parameters

  • hColorSpace
    Specifies the handle to a color space.
  • lpBuffer
    Points to a buffer to receive the LOGCOLORSPACE structure.
  • nSize
    Specifies the maximum size of the buffer.

Return Values

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE.

Remarks

Windows 95/98/Me: GetLogColorSpaceW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems.

Requirements

**  Windows NT/2000/XP/Vista:** Included in Windows 2000 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Wingdi.h.
**  Library:** Use Gdi32.lib.
**  Unicode:** Implemented as Unicode and ANSI versions on Windows 2000/XP/Vista. Also supported by Microsoft Layer for Unicode.

See Also

Basic Color Management Concepts, Functions