GetCountColorProfileElements function (icm.h)

Retrieves the number of tagged elements in a given color profile.


BOOL GetCountColorProfileElements(
  HPROFILE hProfile,
  PDWORD   pnElementCount



Specifies a handle to the profile in question.


Pointer to a variable in which to place the number of tagged elements in the profile.

Return value

If this function succeeds, the return value is TRUE.

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


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.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header icm.h
Library Mscms.lib
DLL Mscms.dll

See also