[This is preliminary documentation and subject to change.]
The EnumColorProfiles function enumerates all the profiles satisfying the given enumeration criteria.
BOOL WINAPI EnumColorProfiles(
PCTSTR pMachineName,
PENUMTYPE pEnumRecord,
PBYTE pBuffer,
PDWORD pdwSize,
PDWORD pnProfiles
);
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. For extended error information, call GetLastError.
The EnumColorProfiles function can be used to find the default profile for a device by specifying the device's name and profile class in the pEnumRecord parameter.
If the dwFields member of the structure of type ENUMTYPE that is pointed to by the pEnumRecord parameter is set to ET_DEVICENAME, this function will enumerate all of the color profiles associated with all types of devices attached to the user's computer. If the dwFields member of the structure pointed to by the pEnumRecord parameter is set to ET_DEVICENAME | ET_DEVICECLASS and a device class is specified in the dwDeviceClass member of the structure, this function will only enumerate the profiles associated with the specified device class. If the dwFields member is set only to ET_DEVICECLASS, the EnumColorProfiles function will enumerate all profiles that can be associated with that type of device.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in icm.h.
Import Library: Use mscms.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Color Management Overview, ICM 2.0 Functions, ENUMTYPE