Print something useful in trace and fixme.
[wine] / dlls / mscms / stub.c
1 /*
2  * MSCMS - Color Management System for Wine
3  *
4  * Copyright 2004, 2005 Hans Leidekker
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "config.h"
22 #include "wine/debug.h"
23
24 #include <stdarg.h>
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "icm.h"
31
32 WINE_DEFAULT_DEBUG_CHANNEL(mscms);
33
34 BOOL WINAPI AssociateColorProfileWithDeviceA( PCSTR machine, PCSTR profile, PCSTR device )
35 {
36     FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
37
38     return TRUE;
39 }
40
41 BOOL WINAPI AssociateColorProfileWithDeviceW( PCWSTR machine, PCWSTR profile, PCWSTR device )
42 {
43     FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
44
45     return TRUE;
46 }
47
48 BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT format, DWORD width,
49                              DWORD height, DWORD stride, PBYTE result, PBMCALLBACKFN callback,
50                              LPARAM data )
51 {
52     FIXME( "( %p, %p, 0x%08x, 0x%08lx, 0x%08lx, 0x%08lx, %p, %p, 0x%08lx ) stub\n",
53            transform, srcbits, format, width, height, stride, result, callback, data );
54
55     return FALSE;
56 }
57
58 BOOL WINAPI CheckColors( HTRANSFORM transform, PCOLOR colors, DWORD number, COLORTYPE type,
59                          PBYTE result )
60 {
61     FIXME( "( %p, %p, 0x%08lx, 0x%08x, %p ) stub\n", transform, colors, number, type, result );
62
63     return FALSE;
64 }
65
66 BOOL WINAPI ConvertColorNameToIndex( HPROFILE profile, PCOLOR_NAME name, PDWORD index, DWORD count )
67 {
68     FIXME( "( %p, %p, %p, 0x%08lx ) stub\n", profile, name, index, count );
69
70     return FALSE;
71 }
72
73 BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME name, DWORD count )
74 {
75     FIXME( "( %p, %p, %p, 0x%08lx ) stub\n", profile, index, name, count );
76
77     return FALSE;
78 }
79
80 BOOL WINAPI CreateDeviceLinkProfile( PHPROFILE profiles, DWORD nprofiles, PDWORD intents,
81                                      DWORD nintents, DWORD flags, PBYTE *data, DWORD index )
82 {
83     FIXME( "( %p, 0x%08lx, %p, 0x%08lx, 0x%08lx, %p, 0x%08lx ) stub\n",
84            profiles, nprofiles, intents, nintents, flags, data, index );
85
86     return FALSE;
87 }
88
89 BOOL WINAPI CreateProfileFromLogColorSpaceA( LPLOGCOLORSPACEA space, PBYTE *buffer )
90 {
91     FIXME( "( %p, %p ) stub\n", space, buffer );
92
93     return FALSE;
94 }
95
96 BOOL WINAPI CreateProfileFromLogColorSpaceW( LPLOGCOLORSPACEW space, PBYTE *buffer )
97 {
98     FIXME( "( %p, %p ) stub\n", space, buffer );
99
100     return FALSE;
101 }
102
103 BOOL WINAPI DisassociateColorProfileFromDeviceA( PCSTR machine, PCSTR profile, PCSTR device )
104 {
105     FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
106
107     return TRUE;
108 }
109
110 BOOL WINAPI DisassociateColorProfileFromDeviceW( PCWSTR machine, PCWSTR profile, PCWSTR device )
111 {
112     FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
113
114     return TRUE;
115 }
116
117 BOOL WINAPI EnumColorProfilesA( PCSTR machine, PENUMTYPEA record, PBYTE buffer, PDWORD size,
118                                 PDWORD number )
119 {
120     FIXME( "( %p, %p, %p, %p, %p ) stub\n", machine, record, buffer, size, number );
121
122     return FALSE;
123 }
124
125 BOOL WINAPI EnumColorProfilesW( PCWSTR machine, PENUMTYPEW record, PBYTE buffer, PDWORD size,
126                                 PDWORD number )
127 {
128     FIXME( "( %p, %p, %p, %p, %p ) stub\n", machine, record, buffer, size, number );
129
130     return FALSE;
131 }
132
133 DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE clientinfo,
134                                     DWORD level, LPWSTR sourcedir, LPDWORD sourcedirsize,
135                                     LPWSTR targetdir, LPDWORD targetdirsize, DWORD flags )
136 {
137     FIXME( "( %s, %s, %p, 0x%08lx, %p, %p, %p, %p, 0x%08lx ) stub\n",
138            debugstr_w(printer), debugstr_w(directory), clientinfo, level, sourcedir,
139            sourcedirsize, targetdir, targetdirsize, flags );
140     return ERROR_SUCCESS;
141 }
142
143 DWORD WINAPI GetCMMInfo( HTRANSFORM transform, DWORD info )
144 {
145     FIXME( "( %p, 0x%08lx ) stub\n", transform, info );
146
147     return 0;
148 }
149
150 BOOL WINAPI GetNamedProfileInfo( HPROFILE profile, PNAMED_PROFILE_INFO info )
151 {
152     FIXME( "( %p, %p ) stub\n", profile, info );
153
154     return FALSE;
155 }
156
157 BOOL WINAPI GetPS2ColorRenderingDictionary( HPROFILE profile, DWORD intent, PBYTE buffer,
158                                             PDWORD size, PBOOL binary )
159 {
160     FIXME( "( %p, 0x%08lx, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
161
162     return FALSE;
163 }
164
165 BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE buffer, PDWORD size )
166 {
167     FIXME( "( %p, 0x%08lx, %p, %p ) stub\n", profile, intent, buffer, size );
168
169     return FALSE;
170 }
171
172 BOOL WINAPI GetPS2ColorSpaceArray( HPROFILE profile, DWORD intent, DWORD type, PBYTE buffer,
173                                    PDWORD size, PBOOL binary )
174 {
175     FIXME( "( %p, 0x%08lx, 0x%08lx, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
176
177     return FALSE;
178 }
179
180 BOOL WINAPI RegisterCMMA( PCSTR machine, DWORD id, PCSTR dll )
181 {
182     FIXME( "( %p, 0x%08lx, %p ) stub\n", machine, id, dll );
183
184     return TRUE;
185 }
186
187 BOOL WINAPI RegisterCMMW( PCWSTR machine, DWORD id, PCWSTR dll )
188 {
189     FIXME( "( %p, 0x%08lx, %p ) stub\n", machine, id, dll );
190
191     return TRUE;
192 }
193
194 BOOL WINAPI SelectCMM( DWORD id )
195 {
196     FIXME( "( 0x%08lx ) stub\n", id );
197
198     return TRUE;
199 }
200
201 BOOL WINAPI SetColorProfileElementReference( HPROFILE profile, TAGTYPE type, TAGTYPE ref )
202 {
203     FIXME( "( %p, 0x%08lx, 0x%08lx ) stub\n", profile, type, ref );
204
205     return TRUE;
206 }
207
208 BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD size )
209 {
210     FIXME( "( %p, 0x%08lx, 0x%08lx ) stub\n", profile, type, size );
211
212     return FALSE;
213 }
214
215 BOOL WINAPI SetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile )
216 {
217     FIXME( "( 0x%08lx, %p ) stub\n", id, profile );
218     return TRUE;
219 }
220
221 BOOL WINAPI SetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile )
222 {
223     FIXME( "( 0x%08lx, %p ) stub\n", id, profile );
224     return TRUE;
225 }
226
227 BOOL WINAPI SpoolerCopyFileEvent( LPWSTR printer, LPWSTR key, DWORD event )
228 {
229     FIXME( "( %s, %s, 0x%08lx ) stub\n", debugstr_w(printer), debugstr_w(key), event );
230     return TRUE;
231 }
232
233 BOOL WINAPI TranslateColors( HTRANSFORM transform, PCOLOR inputcolors, DWORD number,
234                              COLORTYPE input, PCOLOR outputcolors, COLORTYPE output )
235 {
236     FIXME( "( %p, %p, 0x%08lx, 0x%08x, %p, 0x%08x ) stub\n", transform, inputcolors,
237            number, input, outputcolors, output );
238
239     return FALSE;
240 }
241
242 BOOL WINAPI UnregisterCMMA( PCSTR machine, DWORD id )
243 {
244     FIXME( "( %p, 0x%08lx ) stub\n", machine, id );
245
246     return TRUE;
247 }
248
249 BOOL WINAPI UnregisterCMMW( PCWSTR machine, DWORD id )
250 {
251     FIXME( "( %p, 0x%08lx ) stub\n", machine, id );
252
253     return TRUE;
254 }