2004-12-20 18:04:11 +01:00
|
|
|
/*
|
|
|
|
* MSCMS - Color Management System for Wine
|
|
|
|
*
|
2005-02-21 19:38:15 +01:00
|
|
|
* Copyright 2004, 2005 Hans Leidekker
|
2004-12-20 18:04:11 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-12-20 18:04:11 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "icm.h"
|
2020-11-10 12:47:53 +01:00
|
|
|
#include "wine/debug.h"
|
2004-12-20 18:04:11 +01:00
|
|
|
|
2008-02-24 15:20:15 +01:00
|
|
|
#include "mscms_priv.h"
|
|
|
|
|
2004-12-20 18:04:11 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(mscms);
|
|
|
|
|
|
|
|
BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT format, DWORD width,
|
|
|
|
DWORD height, DWORD stride, PBYTE result, PBMCALLBACKFN callback,
|
|
|
|
LPARAM data )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, %p, 0x%08x, 0x%08x, 0x%08x, 0x%08x, %p, %p, 0x%08lx ) stub\n",
|
2004-12-20 18:04:11 +01:00
|
|
|
transform, srcbits, format, width, height, stride, result, callback, data );
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI CheckColors( HTRANSFORM transform, PCOLOR colors, DWORD number, COLORTYPE type,
|
|
|
|
PBYTE result )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, %p, 0x%08x, 0x%08x, %p ) stub\n", transform, colors, number, type, result );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI ConvertColorNameToIndex( HPROFILE profile, PCOLOR_NAME name, PDWORD index, DWORD count )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, name, index, count );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME name, DWORD count )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, %p, %p, 0x%08x ) stub\n", profile, index, name, count );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI CreateDeviceLinkProfile( PHPROFILE profiles, DWORD nprofiles, PDWORD intents,
|
|
|
|
DWORD nintents, DWORD flags, PBYTE *data, DWORD index )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, 0x%08x, %p, 0x%08x, 0x%08x, %p, 0x%08x ) stub\n",
|
2004-12-20 18:04:11 +01:00
|
|
|
profiles, nprofiles, intents, nintents, flags, data, index );
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI CreateProfileFromLogColorSpaceA( LPLOGCOLORSPACEA space, PBYTE *buffer )
|
|
|
|
{
|
|
|
|
FIXME( "( %p, %p ) stub\n", space, buffer );
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI CreateProfileFromLogColorSpaceW( LPLOGCOLORSPACEW space, PBYTE *buffer )
|
|
|
|
{
|
|
|
|
FIXME( "( %p, %p ) stub\n", space, buffer );
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2005-03-09 19:42:52 +01:00
|
|
|
DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE clientinfo,
|
|
|
|
DWORD level, LPWSTR sourcedir, LPDWORD sourcedirsize,
|
|
|
|
LPWSTR targetdir, LPDWORD targetdirsize, DWORD flags )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %s, %s, %p, 0x%08x, %p, %p, %p, %p, 0x%08x ) stub\n",
|
2005-03-09 19:42:52 +01:00
|
|
|
debugstr_w(printer), debugstr_w(directory), clientinfo, level, sourcedir,
|
|
|
|
sourcedirsize, targetdir, targetdirsize, flags );
|
|
|
|
return ERROR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2004-12-20 18:04:11 +01:00
|
|
|
DWORD WINAPI GetCMMInfo( HTRANSFORM transform, DWORD info )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, 0x%08x ) stub\n", transform, info );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI GetNamedProfileInfo( HPROFILE profile, PNAMED_PROFILE_INFO info )
|
|
|
|
{
|
|
|
|
FIXME( "( %p, %p ) stub\n", profile, info );
|
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI GetPS2ColorRenderingDictionary( HPROFILE profile, DWORD intent, PBYTE buffer,
|
|
|
|
PDWORD size, PBOOL binary )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, 0x%08x, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE buffer, PDWORD size )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, 0x%08x, %p, %p ) stub\n", profile, intent, buffer, size );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI GetPS2ColorSpaceArray( HPROFILE profile, DWORD intent, DWORD type, PBYTE buffer,
|
|
|
|
PDWORD size, PBOOL binary )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, 0x%08x, 0x%08x, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI RegisterCMMA( PCSTR machine, DWORD id, PCSTR dll )
|
|
|
|
{
|
2013-07-26 13:03:15 +02:00
|
|
|
FIXME( "( %p, %s, %p ) stub\n", machine, dbgstr_tag(id), dll );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI RegisterCMMW( PCWSTR machine, DWORD id, PCWSTR dll )
|
|
|
|
{
|
2013-07-26 13:03:15 +02:00
|
|
|
FIXME( "( %p, %s, %p ) stub\n", machine, dbgstr_tag(id), dll );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI SelectCMM( DWORD id )
|
|
|
|
{
|
2013-07-26 13:03:15 +02:00
|
|
|
FIXME( "(%s) stub\n", dbgstr_tag(id) );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI SetColorProfileElementReference( HPROFILE profile, TAGTYPE type, TAGTYPE ref )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, ref );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD size )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %p, 0x%08x, 0x%08x ) stub\n", profile, type, size );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2005-03-09 19:42:52 +01:00
|
|
|
BOOL WINAPI SetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( 0x%08x, %p ) stub\n", id, profile );
|
2005-03-09 19:42:52 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI SetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( 0x%08x, %p ) stub\n", id, profile );
|
2005-03-09 19:42:52 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI SpoolerCopyFileEvent( LPWSTR printer, LPWSTR key, DWORD event )
|
|
|
|
{
|
2006-09-30 12:07:13 +02:00
|
|
|
FIXME( "( %s, %s, 0x%08x ) stub\n", debugstr_w(printer), debugstr_w(key), event );
|
2005-03-09 19:42:52 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2004-12-20 18:04:11 +01:00
|
|
|
BOOL WINAPI UnregisterCMMA( PCSTR machine, DWORD id )
|
|
|
|
{
|
2013-07-26 13:03:15 +02:00
|
|
|
FIXME( "( %p, %s ) stub\n", machine, dbgstr_tag(id) );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI UnregisterCMMW( PCWSTR machine, DWORD id )
|
|
|
|
{
|
2013-07-26 13:03:15 +02:00
|
|
|
FIXME( "( %p, %s ) stub\n", machine, dbgstr_tag(id) );
|
2004-12-20 18:04:11 +01:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|