mscms: Collect some data during profile enumeration.

This commit is contained in:
Saulius Krasuckas 2006-01-16 20:42:24 +01:00 committed by Alexandre Julliard
parent 9ba1876c40
commit 191f21c7d4
1 changed files with 6 additions and 2 deletions

View File

@ -442,9 +442,11 @@ static void test_GetCountColorProfileElements(void)
typedef struct colorspace_description_struct { typedef struct colorspace_description_struct {
DWORD dwID; DWORD dwID;
char *szName; char *szName;
BOOL registered;
char filename[MAX_PATH];
} colorspace_descr; } colorspace_descr;
#define describe_colorspace(id) {id, #id} #define describe_colorspace(id) {id, #id, FALSE, ""}
colorspace_descr known_colorspaces[] = { colorspace_descr known_colorspaces[] = {
describe_colorspace(SPACE_XYZ), describe_colorspace(SPACE_XYZ),
@ -478,12 +480,14 @@ static void enum_registered_color_profiles(void)
present = 0; present = 0;
trace("\n"); trace("\n");
trace("Searching for registered standard colorspace profiles:\n"); trace("Querying registered standard colorspace profiles via GetStandardColorSpaceProfileA():\n");
for (i=0; i<count; i++) for (i=0; i<count; i++)
{ {
ret = pGetStandardColorSpaceProfileA(NULL, known_colorspaces[i].dwID, profile, &size); ret = pGetStandardColorSpaceProfileA(NULL, known_colorspaces[i].dwID, profile, &size);
if (ret) if (ret)
{ {
lstrcpynA(known_colorspaces[i].filename, profile, MAX_PATH);
known_colorspaces[i].registered = TRUE;
present++; present++;
trace(" found %s, pointing to '%s' (%d chars)\n", known_colorspaces[i].szName, profile, strlen(profile)); trace(" found %s, pointing to '%s' (%d chars)\n", known_colorspaces[i].szName, profile, strlen(profile));
} }