2 * Copyright 2004 (C) Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 typedef HANDLE HPROFILE;
27 typedef HPROFILE *PHPROFILE;
28 typedef HANDLE HTRANSFORM;
30 typedef DWORD TAGTYPE, *PTAGTYPE, *LPTAGTYPE;
36 BM_RGBTRIPLETS = 0x02,
37 BM_BGRTRIPLETS = 0x04,
47 BM_XYZTRIPLETS = 0x201,
71 } BMFORMAT, *PBMFORMAT, *LPBMFORMAT;
73 typedef BOOL (CALLBACK *PBMCALLBACKFN)(ULONG,ULONG,LPARAM);
74 typedef PBMCALLBACKFN LPPBMCALLBACKFN;
76 typedef struct tagPROFILEHEADER
82 DWORD phDataColorSpace;
83 DWORD phConnectionSpace;
91 DWORD phRenderingIntent;
95 } PROFILEHEADER, *PPROFILEHEADER, *LPPROFILEHEADER;
97 typedef struct tagPROFILE
102 } PROFILE, *PPROFILE, *LPPROFILE;
105 struct _tagCOLORMATCHSETUPA;
106 struct _tagCOLORMATCHSETUPW;
108 typedef BOOL (WINAPI *PCMSCALLBACKA)(struct _tagCOLORMATCHSETUPA*,LPARAM);
109 typedef BOOL (WINAPI *PCMSCALLBACKW)(struct _tagCOLORMATCHSETUPW*,LPARAM);
111 typedef struct _tagCOLORMATCHSETUPA
120 DWORD dwRenderIntent;
121 DWORD dwProofingIntent;
122 PSTR pMonitorProfile;
123 DWORD ccMonitorProfile;
124 PSTR pPrinterProfile;
125 DWORD ccPrinterProfile;
127 DWORD ccTargetProfile;
130 PCMSCALLBACKA lpfnApplyCallback;
131 LPARAM lParamApplyCallback;
132 } COLORMATCHSETUPA, *PCOLORMATCHSETUPA, *LPCOLORMATCHSETUPA;
134 typedef struct _tagCOLORMATCHSETUPW
143 DWORD dwRenderIntent;
144 DWORD dwProofingIntent;
145 PWSTR pMonitorProfile;
146 DWORD ccMonitorProfile;
147 PWSTR pPrinterProfile;
148 DWORD ccPrinterProfile;
149 PWSTR pTargetProfile;
150 DWORD ccTargetProfile;
153 PCMSCALLBACKW lpfnApplyCallback;
154 LPARAM lParamApplyCallback;
155 } COLORMATCHSETUPW, *PCOLORMATCHSETUPW, *LPCOLORMATCHSETUPW;
157 BOOL WINAPI CloseColorProfile(HPROFILE);
158 BOOL WINAPI GetColorDirectoryA(PCSTR,PSTR,PDWORD);
159 BOOL WINAPI GetColorDirectoryW(PCWSTR,PWSTR,PDWORD);
160 #define GetColorDirectory WINELIB_NAME_AW(GetColorDirectory)
161 BOOL WINAPI GetColorProfileElement(HPROFILE,TAGTYPE,DWORD,PDWORD,PVOID,PBOOL);
162 BOOL WINAPI GetColorProfileElementTag(HPROFILE,DWORD,PTAGTYPE);
163 BOOL WINAPI GetCountColorProfileElements(HPROFILE,PDWORD);
164 BOOL WINAPI GetStandardColorSpaceProfileA(PCSTR,DWORD,PSTR,PDWORD);
165 BOOL WINAPI GetStandardColorSpaceProfileW(PCWSTR,DWORD,PWSTR,PDWORD);
166 #define GetStandardColorSpaceProfile WINELIB_NAME_AW(GetStandardColorSpaceProfile)
167 BOOL WINAPI InstallColorProfileA(PCSTR,PCSTR);
168 BOOL WINAPI InstallColorProfileW(PCWSTR,PCWSTR);
169 #define InstallColorProfile WINELIB_NAME_AW(InstallColorProfile)
170 BOOL WINAPI IsColorProfileTagPresent(HPROFILE,TAGTYPE,PBOOL);
171 BOOL WINAPI IsColorProfileValid(HPROFILE,PBOOL);
172 HPROFILE WINAPI OpenColorProfileA(PPROFILE,DWORD,DWORD,DWORD);
173 HPROFILE WINAPI OpenColorProfileW(PPROFILE,DWORD,DWORD,DWORD);
174 #define OpenColorProfile WINELIB_NAME_AW(OpenColorProfile)
175 BOOL WINAPI SetupColorMatchingA(PCOLORMATCHSETUPA);
176 BOOL WINAPI SetupColorMatchingW(PCOLORMATCHSETUPW);
177 #define SetupColorMatching WINELIB_NAME_AW(SetupColorMatching)
178 BOOL WINAPI UninstallColorProfileA(PCSTR,PCSTR,BOOL);
179 BOOL WINAPI UninstallColorProfileW(PCWSTR,PCWSTR,BOOL);
180 #define UninstallColorProfile WINELIB_NAME_AW(UninstallColorProfile)
182 #define PROFILE_FILENAME 1
183 #define PROFILE_MEMBUFFER 2
185 #define PROFILE_READ 1
186 #define PROFILE_READWRITE 2
192 #endif /* __WINE_ICM_H */