From 639a87cb6e706f5773a0bbae3b2e8991bf9bc3d7 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 9 Mar 2005 18:42:52 +0000 Subject: [PATCH] - Implementation stubs for GenerateCopyFilePaths, SpoolerCopyFileEvent. - Call DisableThreadLibraryCalls on process attach. - Document more functions. --- dlls/mscms/mscms.spec | 4 ++-- dlls/mscms/mscms_main.c | 2 +- dlls/mscms/profile.c | 48 +++++++++++++++++++++++++++++------------ dlls/mscms/stub.c | 28 ++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 17 deletions(-) diff --git a/dlls/mscms/mscms.spec b/dlls/mscms/mscms.spec index 0c1b03aee6..3a719cbf35 100644 --- a/dlls/mscms/mscms.spec +++ b/dlls/mscms/mscms.spec @@ -16,7 +16,7 @@ @ stdcall DisassociateColorProfileFromDeviceW(ptr ptr ptr) @ stdcall EnumColorProfilesA(ptr ptr ptr ptr ptr) @ stdcall EnumColorProfilesW(ptr ptr ptr ptr ptr) -@ stub GenerateCopyFilePaths +@ stdcall GenerateCopyFilePaths(wstr wstr ptr long ptr ptr ptr ptr long) @ stdcall GetCMMInfo(ptr long) @ stdcall GetColorDirectoryA(ptr ptr long) @ stdcall GetColorDirectoryW(ptr ptr long) @@ -52,7 +52,7 @@ @ stdcall SetColorProfileHeader(ptr ptr) @ stdcall SetStandardColorSpaceProfileA(ptr long ptr) @ stdcall SetStandardColorSpaceProfileW(ptr long ptr) -@ stub SpoolerCopyFileEvent +@ stdcall SpoolerCopyFileEvent(wstr wstr long) @ stdcall TranslateBitmapBits(ptr ptr long long long long ptr long long ptr long) @ stdcall TranslateColors(ptr ptr long long ptr long) @ stdcall UninstallColorProfileA(ptr ptr long) diff --git a/dlls/mscms/mscms_main.c b/dlls/mscms/mscms_main.c index 895a8af90b..894c4547e4 100644 --- a/dlls/mscms/mscms_main.c +++ b/dlls/mscms/mscms_main.c @@ -125,12 +125,12 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) switch (reason) { case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hinst ); return MSCMS_init_lcms(); case DLL_PROCESS_DETACH: MSCMS_deinit_lcms(); break; } - return TRUE; } diff --git a/dlls/mscms/profile.c b/dlls/mscms/profile.c index 45492b12b1..080aa04a71 100644 --- a/dlls/mscms/profile.c +++ b/dlls/mscms/profile.c @@ -340,6 +340,11 @@ BOOL WINAPI GetCountColorProfileElements( HPROFILE profile, PDWORD count ) return ret; } +/****************************************************************************** + * GetStandardColorSpaceProfileA [MSCMS.@] + * + * See GetStandardColorSpaceProfileW. + */ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile, PDWORD size ) { INT len; @@ -378,6 +383,22 @@ BOOL WINAPI GetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile return ret; } +/****************************************************************************** + * GetStandardColorSpaceProfileW [MSCMS.@] + * + * Retrieve the profile filename for a given standard color space id. + * + * PARAMS + * machine [I] Name of the machine for which to get the standard color space. + * Must be NULL, which indicates the local machine. + * id [I] Id of a standard color space. + * profile [O] Buffer to recieve the profile filename. + * size [I/O] Size of the filename buffer in bytes. + * + * RETURNS + * Success: TRUE + * Failure: FALSE + */ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile, PDWORD size ) { DWORD len; @@ -595,6 +616,19 @@ BOOL WINAPI SetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset return ret; } +/****************************************************************************** + * SetColorProfileHeader [MSCMS.@] + * + * Set header data for a given profile. + * + * PARAMS + * profile [I] Handle to a color profile. + * header [I] Buffer holding the header data. + * + * RETURNS + * Success: TRUE + * Failure: FALSE + */ BOOL WINAPI SetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header ) { BOOL ret = FALSE; @@ -614,20 +648,6 @@ BOOL WINAPI SetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header ) return ret; } -BOOL WINAPI SetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile ) -{ - FIXME( "( 0x%08lx, %p ) stub\n", id, profile ); - - return TRUE; -} - -BOOL WINAPI SetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile ) -{ - FIXME( "( 0x%08lx, %p ) stub\n", id, profile ); - - return TRUE; -} - /****************************************************************************** * UninstallColorProfileA [MSCMS.@] * diff --git a/dlls/mscms/stub.c b/dlls/mscms/stub.c index 46cc9a58cf..ae2e2b3363 100644 --- a/dlls/mscms/stub.c +++ b/dlls/mscms/stub.c @@ -130,6 +130,16 @@ BOOL WINAPI EnumColorProfilesW( PCWSTR machine, PENUMTYPEW record, PBYTE buffer, return FALSE; } +DWORD WINAPI GenerateCopyFilePaths( LPCWSTR printer, LPCWSTR directory, LPBYTE clientinfo, + DWORD level, LPWSTR sourcedir, LPDWORD sourcedirsize, + LPWSTR targetdir, LPDWORD targetdirsize, DWORD flags ) +{ + FIXME( "( %s, %s, %p, 0x%08lx, %p, %p, %p, %p, 0x%08lx ) stub\n", + debugstr_w(printer), debugstr_w(directory), clientinfo, level, sourcedir, + sourcedirsize, targetdir, targetdirsize, flags ); + return ERROR_SUCCESS; +} + DWORD WINAPI GetCMMInfo( HTRANSFORM transform, DWORD info ) { FIXME( "( %p, 0x%08lx ) stub\n", transform, info ); @@ -202,6 +212,24 @@ BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD si return FALSE; } +BOOL WINAPI SetStandardColorSpaceProfileA( PCSTR machine, DWORD id, PSTR profile ) +{ + FIXME( "( 0x%08lx, %p ) stub\n", id, profile ); + return TRUE; +} + +BOOL WINAPI SetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profile ) +{ + FIXME( "( 0x%08lx, %p ) stub\n", id, profile ); + return TRUE; +} + +BOOL WINAPI SpoolerCopyFileEvent( LPWSTR printer, LPWSTR key, DWORD event ) +{ + FIXME( "( %s, %s, 0x%08lx ) stub\n", debugstr_w(printer), debugstr_w(key), event ); + return TRUE; +} + BOOL WINAPI TranslateColors( HTRANSFORM transform, PCOLOR inputcolors, DWORD number, COLORTYPE input, PCOLOR outputcolors, COLORTYPE output ) { -- 2.33.8