[21311] | 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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 "winerror.h"
|
---|
| 29 | #include "wingdi.h"
|
---|
| 30 | #include "winuser.h"
|
---|
| 31 | #include "icm.h"
|
---|
| 32 |
|
---|
| 33 | #include "mscms_priv.h"
|
---|
| 34 |
|
---|
| 35 | WINE_DEFAULT_DEBUG_CHANNEL(mscms);
|
---|
| 36 |
|
---|
| 37 | BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT format, DWORD width,
|
---|
| 38 | DWORD height, DWORD stride, PBYTE result, PBMCALLBACKFN callback,
|
---|
| 39 | LPARAM data )
|
---|
| 40 | {
|
---|
| 41 | FIXME( "( %p, %p, 0x%08x, 0x%08x, 0x%08x, 0x%08x, %p, %p, 0x%08lx ) stub\n",
|
---|
| 42 | transform, srcbits, format, width, height, stride, result, callback, data );
|
---|
| 43 |
|
---|
| 44 | return FALSE;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | BOOL WINAPI CheckColors( HTRANSFORM transform, PCOLOR colors, DWORD number, COLORTYPE type,
|
---|
| 48 | PBYTE result )
|
---|
| 49 | {
|
---|
| 50 | FIXME( "( %p, %p, 0x%08x, 0x%08x, %p ) stub\n", transform, colors, number, type, result );
|
---|
| 51 |
|
---|
| 52 | return FALSE;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | BOOL WINAPI ConvertColorNameToIndex( HPROFILE profile, PCOLOR_NAME name, PDWORD index, DWORD count )
|
---|
| 56 | {
|
---|
| 57 | FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, name, index, count );
|
---|
| 58 |
|
---|
| 59 | return FALSE;
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME name, DWORD count )
|
---|
| 63 | {
|
---|
| 64 | FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, index, name, count );
|
---|
| 65 |
|
---|
| 66 | return FALSE;
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | BOOL WINAPI CreateDeviceLinkProfile( PHPROFILE profiles, DWORD nprofiles, PDWORD intents,
|
---|
| 70 | DWORD nintents, DWORD flags, PBYTE *data, DWORD index )
|
---|
| 71 | {
|
---|
| 72 | FIXME( "( %p, 0x%08x, %p, 0x%08x, 0x%08x, %p, 0x%08x ) stub\n",
|
---|
| 73 | profiles, nprofiles, intents, nintents, flags, data, index );
|
---|
| 74 |
|
---|
| 75 | return FALSE;
|
---|
| 76 | }
|
---|
| 77 |
|
---|
| 78 | BOOL WINAPI CreateProfileFromLogColorSpaceA( LPLOGCOLORSPACEA space, PBYTE *buffer )
|
---|
| 79 | {
|
---|
| 80 | FIXME( "( %p, %p ) stub\n", space, buffer );
|
---|
| 81 |
|
---|
| 82 | return FALSE;
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 | BOOL WINAPI CreateProfileFromLogColorSpaceW( LPLOGCOLORSPACEW space, PBYTE *buffer )
|
---|
| 86 | {
|
---|
| 87 | FIXME( "( %p, %p ) stub\n", space, buffer );
|
---|
| 88 |
|
---|
| 89 | return FALSE;
|
---|
| 90 | }
|
---|
| 91 |
|
---|
| 92 | DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE clientinfo,
|
---|
| 93 | DWORD level, LPWSTR sourcedir, LPDWORD sourcedirsize,
|
---|
| 94 | LPWSTR targetdir, LPDWORD targetdirsize, DWORD flags )
|
---|
| 95 | {
|
---|
| 96 | FIXME( "( %s, %s, %p, 0x%08x, %p, %p, %p, %p, 0x%08x ) stub\n",
|
---|
| 97 | debugstr_w(printer), debugstr_w(directory), clientinfo, level, sourcedir,
|
---|
| 98 | sourcedirsize, targetdir, targetdirsize, flags );
|
---|
| 99 | return ERROR_SUCCESS;
|
---|
| 100 | }
|
---|
| 101 |
|
---|
| 102 | DWORD WINAPI GetCMMInfo( HTRANSFORM transform, DWORD info )
|
---|
| 103 | {
|
---|
| 104 | FIXME( "( %p, 0x%08x ) stub\n", transform, info );
|
---|
| 105 |
|
---|
| 106 | return 0;
|
---|
| 107 | }
|
---|
| 108 |
|
---|
| 109 | BOOL WINAPI GetNamedProfileInfo( HPROFILE profile, PNAMED_PROFILE_INFO info )
|
---|
| 110 | {
|
---|
| 111 | FIXME( "( %p, %p ) stub\n", profile, info );
|
---|
| 112 |
|
---|
| 113 | return FALSE;
|
---|
| 114 | }
|
---|
| 115 |
|
---|
| 116 | BOOL WINAPI GetPS2ColorRenderingDictionary( HPROFILE profile, DWORD intent, PBYTE buffer,
|
---|
| 117 | PDWORD size, PBOOL binary )
|
---|
| 118 | {
|
---|
| 119 | FIXME( "( %p, 0x%08x, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
|
---|
| 120 |
|
---|
| 121 | return FALSE;
|
---|
| 122 | }
|
---|
| 123 |
|
---|
| 124 | BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE buffer, PDWORD size )
|
---|
| 125 | {
|
---|
| 126 | FIXME( "( %p, 0x%08x, %p, %p ) stub\n", profile, intent, buffer, size );
|
---|
| 127 |
|
---|
| 128 | return FALSE;
|
---|
| 129 | }
|
---|
| 130 |
|
---|
| 131 | BOOL WINAPI GetPS2ColorSpaceArray( HPROFILE profile, DWORD intent, DWORD type, PBYTE buffer,
|
---|
| 132 | PDWORD size, PBOOL binary )
|
---|
| 133 | {
|
---|
| 134 | FIXME( "( %p, 0x%08x, 0x%08x, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
|
---|
| 135 |
|
---|
| 136 | return FALSE;
|
---|
| 137 | }
|
---|
| 138 |
|
---|
| 139 | BOOL WINAPI RegisterCMMA( PCSTR machine, DWORD id, PCSTR dll )
|
---|
| 140 | {
|
---|
| 141 | FIXME( "( %p, 0x%08x, %p ) stub\n", machine, id, dll );
|
---|
| 142 |
|
---|
| 143 | return TRUE;
|
---|
| 144 | }
|
---|
| 145 |
|
---|
| 146 | BOOL WINAPI RegisterCMMW( PCWSTR machine, DWORD id, PCWSTR dll )
|
---|
| 147 | {
|
---|
| 148 | FIXME( "( %p, 0x%08x, %p ) stub\n", machine, id, dll );
|
---|
| 149 |
|
---|
| 150 | return TRUE;
|
---|
| 151 | }
|
---|
| 152 |
|
---|
| 153 | BOOL WINAPI SelectCMM( DWORD id )
|
---|
| 154 | {
|
---|
| 155 | FIXME( "(%x) stub\n", id );
|
---|
| 156 |
|
---|
| 157 | return TRUE;
|
---|
| 158 | }
|
---|
| 159 |
|
---|
| 160 | BOOL WINAPI SetColorProfileElementReference( HPROFILE profile, TAGTYPE type, TAGTYPE ref )
|
---|
| 161 | {
|
---|
| 162 | FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, ref );
|
---|
| 163 |
|
---|
| 164 | return TRUE;
|
---|
| 165 | }
|
---|
| 166 |
|
---|
| 167 | BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD size )
|
---|
| 168 | {
|
---|
| 169 | FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, size );
|
---|
| 170 |
|
---|
| 171 | return FALSE;
|
---|
| 172 | }
|
---|
| 173 |
|
---|
| 174 | BOOL WINAPI SetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile )
|
---|
| 175 | {
|
---|
| 176 | FIXME( "( 0x%08x, %p ) stub\n", id, profile );
|
---|
| 177 | return TRUE;
|
---|
| 178 | }
|
---|
| 179 |
|
---|
| 180 | BOOL WINAPI SetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile )
|
---|
| 181 | {
|
---|
| 182 | FIXME( "( 0x%08x, %p ) stub\n", id, profile );
|
---|
| 183 | return TRUE;
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 | BOOL WINAPI SpoolerCopyFileEvent( LPWSTR printer, LPWSTR key, DWORD event )
|
---|
| 187 | {
|
---|
| 188 | FIXME( "( %s, %s, 0x%08x ) stub\n", debugstr_w(printer), debugstr_w(key), event );
|
---|
| 189 | return TRUE;
|
---|
| 190 | }
|
---|
| 191 |
|
---|
| 192 | BOOL WINAPI UnregisterCMMA( PCSTR machine, DWORD id )
|
---|
| 193 | {
|
---|
| 194 | FIXME( "( %p, 0x%08x ) stub\n", machine, id );
|
---|
| 195 |
|
---|
| 196 | return TRUE;
|
---|
| 197 | }
|
---|
| 198 |
|
---|
| 199 | BOOL WINAPI UnregisterCMMW( PCWSTR machine, DWORD id )
|
---|
| 200 | {
|
---|
| 201 | FIXME( "( %p, 0x%08x ) stub\n", machine, id );
|
---|
| 202 |
|
---|
| 203 | return TRUE;
|
---|
| 204 | }
|
---|