GetCountColorProfileElements

The GetCountColorProfileElements function retrieves the number of tagged elements in a given color profile.

BOOL WINAPI GetCountColorProfileElements(
  HPROFILE hProfile,  PDWORD pnCount);

Parameters

  • hProfile
    Specifies a handle to the profile in question.
  • pnCount
    Pointer to a variable in which to place the number of tagged elements in the profile.

Return Values

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE. For extended error information, call GetLastError.

Remarks

This function will fail if hProfile is not a valid ICC profile.

This function does not support Windows Color System (WCS) profiles CAMP, DMP, and GMMP.

Requirements

**  Windows NT/2000/XP/Vista:** Included in Windows 2000 and later.
**  Windows 95/98/Me:** Included in Windows 98 and later.
**  Header:** Declared in Icm.h.
**  Library:** Use Mscms.lib.

See Also

Basic Color Management Concepts, Functions