winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
December 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1233 discussions
Start a n
N
ew thread
Hans Leidekker : msi: Fix download of installer packages. Return errors from msi_download_file and copy_package_to_temp.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: ff2aa7e3a69bb77a0e86922db5e84ebe6ffa99d3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ff2aa7e3a69bb77a0e86922db…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Thu Dec 17 12:28:49 2009 +0100 msi: Fix download of installer packages. Return errors from msi_download_file and copy_package_to_temp. --- dlls/msi/msipriv.h | 2 +- dlls/msi/package.c | 48 +++++++++++++++++++++++++++++++++--------------- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 206227e..ac247ac 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -757,7 +757,7 @@ extern MSICONDITION MSI_EvaluateConditionW( MSIPACKAGE *, LPCWSTR ); extern UINT MSI_GetComponentStateW( MSIPACKAGE *, LPCWSTR, INSTALLSTATE *, INSTALLSTATE * ); extern UINT MSI_GetFeatureStateW( MSIPACKAGE *, LPCWSTR, INSTALLSTATE *, INSTALLSTATE * ); extern UINT WINAPI MSI_SetFeatureStateW(MSIPACKAGE*, LPCWSTR, INSTALLSTATE ); -extern LPCWSTR msi_download_file( LPCWSTR szUrl, LPWSTR filename ); +extern UINT msi_download_file( LPCWSTR szUrl, LPWSTR filename ); extern UINT msi_package_add_info(MSIPACKAGE *, DWORD, DWORD, LPCWSTR, LPWSTR); extern UINT msi_package_add_media_disk(MSIPACKAGE *, DWORD, DWORD, DWORD, LPWSTR, LPWSTR); extern UINT msi_clone_properties(MSIPACKAGE *); diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 574289f..fa84e9d 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -833,7 +833,7 @@ MSIPACKAGE *MSI_CreatePackage( MSIDATABASE *db, LPCWSTR base_url ) * we should read all the tables to memory, then open the * database to read binary streams on demand. */ -static LPCWSTR copy_package_to_temp( LPCWSTR szPackage, LPWSTR filename ) +static UINT copy_package_to_temp( LPCWSTR szPackage, LPWSTR filename ) { WCHAR path[MAX_PATH]; @@ -842,16 +842,16 @@ static LPCWSTR copy_package_to_temp( LPCWSTR szPackage, LPWSTR filename ) if( !CopyFileW( szPackage, filename, FALSE ) ) { + UINT error = GetLastError(); + ERR("failed to copy package %s to %s (%u)\n", debugstr_w(szPackage), debugstr_w(filename), error); DeleteFileW( filename ); - ERR("failed to copy package %s\n", debugstr_w(szPackage) ); - return szPackage; + return error; } - TRACE("Opening relocated package %s\n", debugstr_w( filename )); - return filename; + return ERROR_SUCCESS; } -LPCWSTR msi_download_file( LPCWSTR szUrl, LPWSTR filename ) +UINT msi_download_file( LPCWSTR szUrl, LPWSTR filename ) { LPINTERNET_CACHE_ENTRY_INFOW cache_entry; DWORD size = 0; @@ -867,20 +867,24 @@ LPCWSTR msi_download_file( LPCWSTR szUrl, LPWSTR filename ) cache_entry = HeapAlloc( GetProcessHeap(), 0, size ); if ( !GetUrlCacheEntryInfoW( szUrl, cache_entry, &size ) ) { + UINT error = GetLastError(); HeapFree( GetProcessHeap(), 0, cache_entry ); - return szUrl; + return error; } lstrcpyW( filename, cache_entry->lpszLocalFileName ); HeapFree( GetProcessHeap(), 0, cache_entry ); - return filename; + return ERROR_SUCCESS; } hr = URLDownloadToCacheFileW( NULL, szUrl, filename, MAX_PATH, 0, NULL ); if ( FAILED(hr) ) - return szUrl; + { + WARN("failed to download %s to cache file\n", debugstr_w(szUrl)); + return ERROR_FUNCTION_FAILED; + } - return filename; + return ERROR_SUCCESS; } static UINT msi_get_local_package_name( LPWSTR path ) @@ -925,7 +929,7 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage) MSIHANDLE handle; LPWSTR ptr, base_url = NULL; UINT r; - WCHAR temppath[MAX_PATH], localfile[MAX_PATH]; + WCHAR temppath[MAX_PATH], localfile[MAX_PATH], cachefile[MAX_PATH]; LPCWSTR file = szPackage; TRACE("%s %p\n", debugstr_w(szPackage), pPackage); @@ -952,9 +956,15 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage) { if ( UrlIsW( szPackage, URLIS_URL ) ) { - file = msi_download_file( szPackage, temppath ); - if ( file != szPackage ) - file = copy_package_to_temp( file, temppath ); + r = msi_download_file( szPackage, cachefile ); + if ( r != ERROR_SUCCESS ) + return r; + + r = copy_package_to_temp( cachefile, temppath ); + if ( r != ERROR_SUCCESS ) + return r; + + file = temppath; base_url = strdupW( szPackage ); if ( !base_url ) @@ -964,7 +974,13 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage) if (ptr) *(ptr + 1) = '\0'; } else - file = copy_package_to_temp( szPackage, temppath ); + { + r = copy_package_to_temp( szPackage, temppath ); + if ( r != ERROR_SUCCESS ) + return r; + + file = temppath; + } r = msi_get_local_package_name( localfile ); if (r != ERROR_SUCCESS) @@ -979,6 +995,8 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage) return GetLastError(); } + TRACE("Opening relocated package %s\n", debugstr_w( file )); + /* transforms that add binary streams require that we open the database * read/write, which is safe because we always create a copy that is thrown * away when we're done.
1
0
0
0
Alexandre Julliard : mapi32: Fix a heap buffer overflow.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 4e7389e44bcdba1bc0666313bf65128c0b18012a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4e7389e44bcdba1bc0666313b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 14:12:30 2009 +0100 mapi32: Fix a heap buffer overflow. --- dlls/mapi32/util.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/mapi32/util.c b/dlls/mapi32/util.c index 71a5e1a..90cfa6e 100644 --- a/dlls/mapi32/util.c +++ b/dlls/mapi32/util.c @@ -1037,7 +1037,7 @@ void load_mapi_providers(void) TRACE("appName: %s\n", debugstr_w(appName)); appKey = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR) * (lstrlenW(regkey_mail) + - lstrlenW(regkey_backslash) + lstrlenW(appName))); + lstrlenW(regkey_backslash) + lstrlenW(appName) + 1)); if (!appKey) goto cleanUp;
1
0
0
0
Paul Vriens : gdiplus/tests: Fix a test failure on XP/W2K3.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 60ca760eddf560908eeeff157a226de69c8bef9d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=60ca760eddf560908eeeff157…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Dec 17 11:08:13 2009 +0100 gdiplus/tests: Fix a test failure on XP/W2K3. --- dlls/gdiplus/tests/image.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 486a679..ebdd3f9 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -529,6 +529,7 @@ static void test_GdipCreateBitmapFromHBITMAP(void) LogPal = GdipAlloc(sizeof(LOGPALETTE)); ok(LogPal != NULL, "unable to allocate LOGPALETTE\n"); LogPal->palVersion = 0x300; + LogPal->palNumEntries = 1; hpal = CreatePalette(LogPal); ok(hpal != NULL, "CreatePalette failed\n"); GdipFree(LogPal);
1
0
0
0
Paul Vriens : kernel32/tests: Add some tests for GetLongPathNameW.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 17eb00409c915c5906b6780a951fb2e21fbab16b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=17eb00409c915c5906b6780a9…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Dec 17 10:44:38 2009 +0100 kernel32/tests: Add some tests for GetLongPathNameW. --- dlls/kernel32/tests/path.c | 82 +++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 78 insertions(+), 4 deletions(-) diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c index 104a48c..1c899c8 100644 --- a/dlls/kernel32/tests/path.c +++ b/dlls/kernel32/tests/path.c @@ -1065,12 +1065,20 @@ static void test_GetLongPathNameA(void) static void test_GetLongPathNameW(void) { - DWORD length; + DWORD length, expanded; + BOOL ret; + HANDLE file; WCHAR empty[MAX_PATH]; + WCHAR tempdir[MAX_PATH], name[200]; + WCHAR dirpath[4 + MAX_PATH + 200]; /* To ease removal */ + WCHAR shortpath[4 + MAX_PATH + 200 + 1 + 200]; + static const WCHAR prefix[] = { '\\','\\','?','\\', 0}; + static const WCHAR backslash[] = { '\\', 0}; + static const WCHAR letterX[] = { 'X', 0}; + + if (!pGetLongPathNameW) + return; - /* Not present in all windows versions */ - if(pGetLongPathNameW) - { SetLastError(0xdeadbeef); length = pGetLongPathNameW(NULL,NULL,0); if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) @@ -1086,7 +1094,73 @@ static void test_GetLongPathNameW(void) length = pGetLongPathNameW(empty,NULL,0); ok(0==length,"GetLongPathNameW returned %d but expected 0\n",length); ok(GetLastError()==ERROR_PATH_NOT_FOUND,"GetLastError returned %d but expected ERROR_PATH_NOT_FOUND\n",GetLastError()); + + /* Create a long path name. The path needs to exist for these tests to + * succeed so we need the "\\?\" prefix when creating directories and + * files. + */ + name[0] = 0; + while (lstrlenW(name) < (sizeof(name)/sizeof(WCHAR) - 1)) + lstrcatW(name, letterX); + + GetTempPathW(MAX_PATH, tempdir); + + lstrcpyW(shortpath, prefix); + lstrcatW(shortpath, tempdir); + lstrcatW(shortpath, name); + lstrcpyW(dirpath, shortpath); + ret = CreateDirectoryW(shortpath, NULL); + ok(ret, "Could not create the temporary directory : %d\n", GetLastError()); + lstrcatW(shortpath, backslash); + lstrcatW(shortpath, name); + + /* Path does not exist yet and we know it overruns MAX_PATH */ + + /* No prefix */ + SetLastError(0xdeadbeef); + length = pGetLongPathNameW(shortpath + 4, NULL, 0); + ok(length == 0, "Expected 0, got %d\n", length); + todo_wine + ok(GetLastError() == ERROR_PATH_NOT_FOUND, + "Expected ERROR_PATH_NOT_FOUND, got %d\n", GetLastError()); + /* With prefix */ + SetLastError(0xdeadbeef); + length = pGetLongPathNameW(shortpath, NULL, 0); + todo_wine + { + ok(length == 0, "Expected 0, got %d\n", length); + ok(GetLastError() == ERROR_FILE_NOT_FOUND, + "Expected ERROR_PATH_NOT_FOUND, got %d\n", GetLastError()); + } + + file = CreateFileW(shortpath, GENERIC_READ|GENERIC_WRITE, 0, NULL, + CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + ok(file != INVALID_HANDLE_VALUE, + "Could not create the temporary file : %d.\n", GetLastError()); + CloseHandle(file); + + /* Path exists */ + + /* No prefix */ + SetLastError(0xdeadbeef); + length = pGetLongPathNameW(shortpath + 4, NULL, 0); + todo_wine + { + ok(length == 0, "Expected 0, got %d\n", length); + ok(GetLastError() == ERROR_PATH_NOT_FOUND, "Expected ERROR_PATH_NOT_FOUND, got %d\n", GetLastError()); } + /* With prefix */ + expanded = 4 + (pGetLongPathNameW(tempdir, NULL, 0) - 1) + lstrlenW(name) + 1 + lstrlenW(name) + 1; + SetLastError(0xdeadbeef); + length = pGetLongPathNameW(shortpath, NULL, 0); + ok(length == expanded, "Expected %d, got %d\n", expanded, length); + + /* NULL buffer with length crashes on Windows */ + if (0) + length = pGetLongPathNameW(shortpath, NULL, 20); + + ok(DeleteFileW(shortpath), "Could not delete temporary file\n"); + ok(RemoveDirectoryW(dirpath), "Could not delete temporary directory\n"); } static void test_GetShortPathNameW(void)
1
0
0
0
Paul Vriens : kernel32: Fix a crash with GetLongPathNameW and UNC path names.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: d58bd680b195da55687cedaf0ab8b8781fb95bcd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d58bd680b195da55687cedaf0…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Thu Dec 17 10:44:05 2009 +0100 kernel32: Fix a crash with GetLongPathNameW and UNC path names. --- dlls/kernel32/path.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c index e9463bb..7618dc9 100644 --- a/dlls/kernel32/path.c +++ b/dlls/kernel32/path.c @@ -313,9 +313,15 @@ DWORD WINAPI GetLongPathNameW( LPCWSTR shortpath, LPWSTR longpath, DWORD longlen if (shortpath[0] == '\\' && shortpath[1] == '\\') { - ERR("UNC pathname %s\n", debugstr_w(shortpath)); - lstrcpynW( longpath, shortpath, longlen ); - return strlenW(longpath); + FIXME("UNC pathname %s\n", debugstr_w(shortpath)); + + tmplen = strlenW(shortpath); + if (tmplen < longlen) + { + if (longpath != shortpath) strcpyW( longpath, shortpath ); + return tmplen; + } + return tmplen + 1; } unixabsolute = (shortpath[0] == '/');
1
0
0
0
Owen Rudge : mapi32: Remove fallback procedure in MAPISendMail and replace with error message.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: b4b7724a790af8fdab693ef5d422a1b84d7941a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b4b7724a790af8fdab693ef5d…
Author: Owen Rudge <orudge(a)codeweavers.com> Date: Wed Dec 16 10:44:38 2009 -0600 mapi32: Remove fallback procedure in MAPISendMail and replace with error message. --- dlls/mapi32/En.rc | 30 +++++++++ dlls/mapi32/Makefile.in | 6 +- dlls/mapi32/mapi32_main.c | 2 + dlls/mapi32/res.h | 26 ++++++++ dlls/mapi32/sendmail.c | 150 +++------------------------------------------ dlls/mapi32/util.h | 1 + 6 files changed, 71 insertions(+), 144 deletions(-) diff --git a/dlls/mapi32/En.rc b/dlls/mapi32/En.rc new file mode 100644 index 0000000..9a6bf77 --- /dev/null +++ b/dlls/mapi32/En.rc @@ -0,0 +1,30 @@ +/* +* MAPI32 English resources +* +* Copyright 2009 Owen Rudge for CodeWeavers +* +* 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 +* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA +* +*/ + +#include "res.h" + +LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT + +STRINGTABLE +{ + IDS_NO_MAPI_CLIENT, "Mail sending failed as you do not have a MAPI mail client installed." + IDS_SEND_MAIL, "Send Mail" +} diff --git a/dlls/mapi32/Makefile.in b/dlls/mapi32/Makefile.in index e38cfcf..e06b926 100644 --- a/dlls/mapi32/Makefile.in +++ b/dlls/mapi32/Makefile.in @@ -4,7 +4,7 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = mapi32.dll IMPORTLIB = mapi32 -IMPORTS = uuid shlwapi shell32 advapi32 kernel32 +IMPORTS = uuid shlwapi shell32 user32 advapi32 kernel32 C_SRCS = \ imalloc.c \ @@ -13,7 +13,9 @@ C_SRCS = \ sendmail.c \ util.c -RC_SRCS = version.rc +RC_SRCS = \ + En.rc \ + version.rc @MAKE_DLL_RULES@ diff --git a/dlls/mapi32/mapi32_main.c b/dlls/mapi32/mapi32_main.c index 906c22e..6c35563 100644 --- a/dlls/mapi32/mapi32_main.c +++ b/dlls/mapi32/mapi32_main.c @@ -34,6 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mapi); LONG MAPI_ObjectCount = 0; +HINSTANCE hInstMAPI32; /*********************************************************************** * DllMain (MAPI32.init) @@ -45,6 +46,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) switch (fdwReason) { case DLL_PROCESS_ATTACH: + hInstMAPI32 = hinstDLL; DisableThreadLibraryCalls(hinstDLL); load_mapi_providers(); break; diff --git a/dlls/mapi32/res.h b/dlls/mapi32/res.h new file mode 100644 index 0000000..658f8f6 --- /dev/null +++ b/dlls/mapi32/res.h @@ -0,0 +1,26 @@ +/* +* MAPI32 resources +* +* Copyright 2009 Owen Rudge for CodeWeavers +* +* 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 +* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA +* +*/ + +#include <windef.h> + +/* Strings */ +#define IDS_NO_MAPI_CLIENT 1 +#define IDS_SEND_MAIL 2 diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c index 6f1d554..e115649 100644 --- a/dlls/mapi32/sendmail.c +++ b/dlls/mapi32/sendmail.c @@ -30,6 +30,7 @@ #include "windef.h" #include "winbase.h" #include "winerror.h" +#include "winuser.h" #include "objbase.h" #include "objidl.h" #include "mapi.h" @@ -41,6 +42,7 @@ #include "shlwapi.h" #include "wine/debug.h" #include "util.h" +#include "res.h" WINE_DEFAULT_DEBUG_CHANNEL(mapi); @@ -383,27 +385,11 @@ cleanup: ; * Success: SUCCESS_SUCCESS * Failure: MAPI_E_FAILURE * - * NOTES - * The fallback procedure is a temporary hack. */ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam, lpMapiMessage message, FLAGS flags, ULONG reserved ) { - ULONG ret = MAPI_E_FAILURE; - unsigned int i, to_count = 0, cc_count = 0, bcc_count = 0; - unsigned int to_size = 0, cc_size = 0, bcc_size = 0, subj_size, body_size; - - char *to = NULL, *cc = NULL, *bcc = NULL; - const char *address, *subject, *body; - static const char format[] = - "mailto:\"%s\"?subject=\"%s\"&cc=\"%s\"&bcc=\"%s\"&body=\"%s\""; - char *mailto = NULL, *escape = NULL; - char empty_string[] = ""; - HRESULT res; - DWORD size; - - TRACE( "(0x%08lx 0x%08lx %p 0x%08x 0x%08x)\n", session, uiparam, - message, flags, reserved ); + WCHAR msg_title[READ_BUF_SIZE], error_msg[READ_BUF_SIZE]; /* Check to see if we have a Simple MAPI provider loaded */ if (mapiFunctions.MAPISendMail) @@ -413,133 +399,13 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam, if (MAPIInitialize(NULL) == S_OK) return sendmail_extended_mapi(session, uiparam, message, flags, reserved); - /* Fall back on our own implementation */ - if (!message) return MAPI_E_FAILURE; + /* Display an error message since we apparently have no mail clients */ + LoadStringW(hInstMAPI32, IDS_NO_MAPI_CLIENT, error_msg, sizeof(error_msg) / sizeof(WCHAR)); + LoadStringW(hInstMAPI32, IDS_SEND_MAIL, msg_title, sizeof(msg_title) / sizeof(WCHAR)); - for (i = 0; i < message->nRecipCount; i++) - { - if (!message->lpRecips) - { - WARN("No recipients found\n"); - return MAPI_E_FAILURE; - } + MessageBoxW((HWND) uiparam, error_msg, msg_title, MB_ICONEXCLAMATION); - address = message->lpRecips[i].lpszAddress; - if (address) - { - switch (message->lpRecips[i].ulRecipClass) - { - case MAPI_ORIG: - TRACE( "From: %s\n", debugstr_a(address) ); - break; - case MAPI_TO: - TRACE( "To: %s\n", debugstr_a(address) ); - to_size += lstrlenA( address ) + 1; - break; - case MAPI_CC: - TRACE( "Cc: %s\n", debugstr_a(address) ); - cc_size += lstrlenA( address ) + 1; - break; - case MAPI_BCC: - TRACE( "Bcc: %s\n", debugstr_a(address) ); - bcc_size += lstrlenA( address ) + 1; - break; - default: - TRACE( "Unknown recipient class: %d\n", - message->lpRecips[i].ulRecipClass ); - } - } - else - FIXME("Name resolution and entry identifiers not supported\n"); - } - if (message->nFileCount) FIXME("Ignoring attachments\n"); - - subject = message->lpszSubject ? message->lpszSubject : ""; - body = message->lpszNoteText ? message->lpszNoteText : ""; - - TRACE( "Subject: %s\n", debugstr_a(subject) ); - TRACE( "Body: %s\n", debugstr_a(body) ); - - subj_size = lstrlenA( subject ); - body_size = lstrlenA( body ); - - ret = MAPI_E_INSUFFICIENT_MEMORY; - if (to_size) - { - to = HeapAlloc( GetProcessHeap(), 0, to_size ); - if (!to) goto exit; - to[0] = 0; - } - if (cc_size) - { - cc = HeapAlloc( GetProcessHeap(), 0, cc_size ); - if (!cc) goto exit; - cc[0] = 0; - } - if (bcc_size) - { - bcc = HeapAlloc( GetProcessHeap(), 0, bcc_size ); - if (!bcc) goto exit; - bcc[0] = 0; - } - - if (message->lpOriginator) - TRACE( "From: %s\n", debugstr_a(message->lpOriginator->lpszAddress) ); - - for (i = 0; i < message->nRecipCount; i++) - { - address = message->lpRecips[i].lpszAddress; - if (address) - { - switch (message->lpRecips[i].ulRecipClass) - { - case MAPI_TO: - if (to_count) lstrcatA( to, "," ); - lstrcatA( to, address ); - to_count++; - break; - case MAPI_CC: - if (cc_count) lstrcatA( cc, "," ); - lstrcatA( cc, address ); - cc_count++; - break; - case MAPI_BCC: - if (bcc_count) lstrcatA( bcc, "," ); - lstrcatA( bcc, address ); - bcc_count++; - break; - } - } - } - ret = MAPI_E_FAILURE; - size = sizeof(format) + to_size + cc_size + bcc_size + subj_size + body_size; - - mailto = HeapAlloc( GetProcessHeap(), 0, size ); - if (!mailto) goto exit; - - sprintf( mailto, format, to ? to : "", subject, cc ? cc : "", bcc ? bcc : "", body ); - - size = 1; - res = UrlEscapeA( mailto, empty_string, &size, URL_ESCAPE_SPACES_ONLY ); - if (res != E_POINTER) goto exit; - - escape = HeapAlloc( GetProcessHeap(), 0, size ); - if (!escape) goto exit; - - res = UrlEscapeA( mailto, escape, &size, URL_ESCAPE_SPACES_ONLY ); - if (res != S_OK) goto exit; - - if ((UINT_PTR)ShellExecuteA( NULL, "open", escape, NULL, NULL, 0 ) > 32) - ret = SUCCESS_SUCCESS; - -exit: - HeapFree( GetProcessHeap(), 0, to ); - HeapFree( GetProcessHeap(), 0, cc ); - HeapFree( GetProcessHeap(), 0, bcc ); - HeapFree( GetProcessHeap(), 0, mailto ); - HeapFree( GetProcessHeap(), 0, escape ); - - return ret; + return MAPI_E_NOT_SUPPORTED; } ULONG WINAPI MAPISendDocuments(ULONG_PTR uiparam, LPSTR delim, LPSTR paths, diff --git a/dlls/mapi32/util.h b/dlls/mapi32/util.h index fd813ca..df03d6e 100644 --- a/dlls/mapi32/util.h +++ b/dlls/mapi32/util.h @@ -61,5 +61,6 @@ typedef struct MAPI_FUNCTIONS { } MAPI_FUNCTIONS; extern MAPI_FUNCTIONS mapiFunctions; +extern HINSTANCE hInstMAPI32; #endif
1
0
0
0
Owen Rudge : wine.inf: Add winemapi.dll to the mail clients section.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 75f52140b734da13ff5000f470214dff4f5a8c5a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=75f52140b734da13ff5000f47…
Author: Owen Rudge <orudge(a)codeweavers.com> Date: Wed Dec 16 10:44:35 2009 -0600 wine.inf: Add winemapi.dll to the mail clients section. --- tools/wine.inf.in | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tools/wine.inf.in b/tools/wine.inf.in index 623ea0a..59af25a 100644 --- a/tools/wine.inf.in +++ b/tools/wine.inf.in @@ -528,6 +528,9 @@ HKLM,%MciExtStr%,"wvx",,"MPEGVideo" [Misc] HKLM,Software\Borland\Database Engine\Settings\SYSTEM\INIT,SHAREDMEMLOCATION,,9000 +HKLM,Software\Clients\Mail,,2,"Native Mail Client" +HKLM,Software\Clients\Mail\Native Mail Client,,2,"Native Mail Client" +HKLM,Software\Clients\Mail\Native Mail Client,"DLLPath",2,"%11%\winemapi.dll" HKLM,Software\Microsoft\Advanced INF Setup,,,"" HKLM,Software\Microsoft\Rpc\SecurityService,1,2,"secur32.dll" HKLM,Software\Microsoft\Rpc\SecurityService,10,2,"secur32.dll"
1
0
0
0
Owen Rudge : winemapi: Implement MAPISendMail.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: b5c572119ce63af3fbb4d88e0df071e4ffb99e16 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b5c572119ce63af3fbb4d88e0…
Author: Owen Rudge <orudge(a)codeweavers.com> Date: Wed Dec 16 10:44:33 2009 -0600 winemapi: Implement MAPISendMail. --- dlls/winemapi/sendmail.c | 183 +++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 180 insertions(+), 3 deletions(-) diff --git a/dlls/winemapi/sendmail.c b/dlls/winemapi/sendmail.c index 3acc2fc..44c1d00 100644 --- a/dlls/winemapi/sendmail.c +++ b/dlls/winemapi/sendmail.c @@ -41,7 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(winemapi); /************************************************************************** * MAPISendMail * - * Send a mail. + * Send a message using a native mail client. * * PARAMS * session [I] Handle to a MAPI session. @@ -58,10 +58,187 @@ WINE_DEFAULT_DEBUG_CHANNEL(winemapi); ULONG WINAPI MAPISendMail(LHANDLE session, ULONG_PTR uiparam, lpMapiMessage message, FLAGS flags, ULONG reserved) { - FIXME("(0x%08x 0x%08lx %p 0x%08x 0x%08x): stub\n", session, uiparam, + ULONG ret = MAPI_E_FAILURE; + unsigned int i, to_count = 0, cc_count = 0, bcc_count = 0; + unsigned int to_size = 0, cc_size = 0, bcc_size = 0, subj_size, body_size; + + char *to = NULL, *cc = NULL, *bcc = NULL; + const char *address, *subject, *body; + static const char format[] = + "mailto:\"%s\"?subject=\"%s\"&cc=\"%s\"&bcc=\"%s\"&body=\"%s\""; + char *mailto = NULL, *escape = NULL; + char empty_string[] = ""; + HRESULT res; + DWORD size; + + TRACE("(0x%08lx 0x%08lx %p 0x%08x 0x%08x)\n", session, uiparam, message, flags, reserved); - return MAPI_E_NOT_SUPPORTED; + if (!message) + return MAPI_E_FAILURE; + + for (i = 0; i < message->nRecipCount; i++) + { + if (!message->lpRecips) + { + WARN("No recipients found\n"); + return MAPI_E_FAILURE; + } + + address = message->lpRecips[i].lpszAddress; + + if (address) + { + switch (message->lpRecips[i].ulRecipClass) + { + case MAPI_ORIG: + TRACE("From: %s\n", debugstr_a(address)); + break; + + case MAPI_TO: + TRACE("To: %s\n", debugstr_a(address)); + to_size += lstrlenA(address) + 1; + break; + + case MAPI_CC: + TRACE("Cc: %s\n", debugstr_a(address)); + cc_size += lstrlenA(address) + 1; + break; + + case MAPI_BCC: + TRACE("Bcc: %s\n", debugstr_a(address)); + bcc_size += lstrlenA(address) + 1; + break; + + default: + TRACE("Unknown recipient class: %d\n", + message->lpRecips[i].ulRecipClass); + } + } + else + FIXME("Name resolution and entry identifiers not supported\n"); + } + + if (message->nFileCount) + FIXME("Ignoring attachments\n"); + + subject = message->lpszSubject ? message->lpszSubject : ""; + body = message->lpszNoteText ? message->lpszNoteText : ""; + + TRACE("Subject: %s\n", debugstr_a(subject)); + TRACE("Body: %s\n", debugstr_a(body)); + + subj_size = lstrlenA(subject); + body_size = lstrlenA(body); + + ret = MAPI_E_INSUFFICIENT_MEMORY; + + if (to_size) + { + to = HeapAlloc(GetProcessHeap(), 0, to_size); + + if (!to) + goto exit; + + to[0] = 0; + } + + if (cc_size) + { + cc = HeapAlloc(GetProcessHeap(), 0, cc_size); + + if (!cc) + goto exit; + + cc[0] = 0; + } + + if (bcc_size) + { + bcc = HeapAlloc(GetProcessHeap(), 0, bcc_size); + + if (!bcc) + goto exit; + + bcc[0] = 0; + } + + if (message->lpOriginator) + TRACE("From: %s\n", debugstr_a(message->lpOriginator->lpszAddress)); + + for (i = 0; i < message->nRecipCount; i++) + { + address = message->lpRecips[i].lpszAddress; + + if (address) + { + switch (message->lpRecips[i].ulRecipClass) + { + case MAPI_TO: + if (to_count) + lstrcatA(to, ","); + + lstrcatA(to, address); + to_count++; + break; + + case MAPI_CC: + if (cc_count) + lstrcatA(cc, ","); + + lstrcatA(cc, address); + cc_count++; + break; + + case MAPI_BCC: + if (bcc_count) + lstrcatA(bcc, ","); + + lstrcatA(bcc, address); + bcc_count++; + break; + } + } + } + ret = MAPI_E_FAILURE; + size = sizeof(format) + to_size + cc_size + bcc_size + subj_size + body_size; + + mailto = HeapAlloc(GetProcessHeap(), 0, size); + + if (!mailto) + goto exit; + + sprintf(mailto, format, to ? to : "", subject, cc ? cc : "", bcc ? bcc : "", body); + + size = 1; + res = UrlEscapeA(mailto, empty_string, &size, URL_ESCAPE_SPACES_ONLY); + + if (res != E_POINTER) + goto exit; + + escape = HeapAlloc(GetProcessHeap(), 0, size); + + if (!escape) + goto exit; + + res = UrlEscapeA(mailto, escape, &size, URL_ESCAPE_SPACES_ONLY); + + if (res != S_OK) + goto exit; + + TRACE("Executing winebrowser.exe with parameters '%s'\n", debugstr_a(escape)); + + if ((UINT_PTR) ShellExecuteA(NULL, "open", "winebrowser.exe", escape, NULL, 0) > 32) + ret = SUCCESS_SUCCESS; + +exit: + HeapFree(GetProcessHeap(), 0, to); + HeapFree(GetProcessHeap(), 0, cc); + HeapFree(GetProcessHeap(), 0, bcc); + HeapFree(GetProcessHeap(), 0, mailto); + HeapFree(GetProcessHeap(), 0, escape); + + return ret; } ULONG WINAPI MAPISendDocuments(ULONG_PTR uiparam, LPSTR delim, LPSTR paths,
1
0
0
0
Owen Rudge : winemapi: Add Simple MAPI functions.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 44784356cc63630abbc063b48127ba1b99a87c1d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=44784356cc63630abbc063b48…
Author: Owen Rudge <orudge(a)codeweavers.com> Date: Wed Dec 16 11:22:34 2009 -0600 winemapi: Add Simple MAPI functions. --- dlls/winemapi/Makefile.in | 3 +- dlls/winemapi/main.c | 72 +++++++++++++++++++++++++++++++++++++++++++ dlls/winemapi/sendmail.c | 71 ++++++++++++++++++++++++++++++++++++++++++ dlls/winemapi/winemapi.spec | 22 ++++++------ 4 files changed, 156 insertions(+), 12 deletions(-) diff --git a/dlls/winemapi/Makefile.in b/dlls/winemapi/Makefile.in index 6a4ec21..7cde1ff 100644 --- a/dlls/winemapi/Makefile.in +++ b/dlls/winemapi/Makefile.in @@ -6,7 +6,8 @@ MODULE = winemapi.dll IMPORTS = shlwapi shell32 kernel32 C_SRCS = \ - main.c + main.c \ + sendmail.c @MAKE_DLL_RULES@ diff --git a/dlls/winemapi/main.c b/dlls/winemapi/main.c index e4d4e55..5b6faef 100644 --- a/dlls/winemapi/main.c +++ b/dlls/winemapi/main.c @@ -24,6 +24,7 @@ #include "winbase.h" #include "winerror.h" #include "objbase.h" +#include "mapidefs.h" #include "mapi.h" #include "wine/debug.h" @@ -37,3 +38,74 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) TRACE("(%p,%d,%p)\n", hinstDLL, fdwReason, fImpLoad); return TRUE; } + +ULONG WINAPI MAPIAddress(LHANDLE session, ULONG_PTR uiparam, LPSTR caption, + ULONG editfields, LPSTR labels, ULONG nRecips, lpMapiRecipDesc lpRecips, + FLAGS flags, ULONG reserved, LPULONG newRecips, lpMapiRecipDesc * lppNewRecips) +{ + FIXME("(stub)"); + return MAPI_E_NOT_SUPPORTED; +} + +ULONG WINAPI MAPIDeleteMail(LHANDLE session, ULONG_PTR uiparam, LPSTR msg_id, + FLAGS flags, ULONG reserved) +{ + FIXME("(stub)"); + return MAPI_E_NOT_SUPPORTED; +} + +ULONG WINAPI MAPIDetails(LHANDLE session, ULONG_PTR uiparam, lpMapiRecipDesc recip, + FLAGS flags, ULONG reserved) +{ + FIXME("(stub)"); + return MAPI_E_NOT_SUPPORTED; +} + +ULONG WINAPI MAPIFindNext(LHANDLE session, ULONG_PTR uiparam, LPSTR msg_type, + LPSTR seed_msg_id, FLAGS flags, ULONG reserved, LPSTR msg_id) +{ + FIXME("(stub)"); + return MAPI_E_NOT_SUPPORTED; +} + +ULONG WINAPI MAPILogon(ULONG_PTR uiparam, LPSTR profile, LPSTR password, + FLAGS flags, ULONG reserved, LPLHANDLE session) +{ + TRACE("(0x%08lx %s %p 0x%08x 0x%08x %p)\n", uiparam, + debugstr_a(profile), password, flags, reserved, session); + + if (session) + *session = 1; + + return SUCCESS_SUCCESS; +} + +ULONG WINAPI MAPILogoff(LHANDLE session, ULONG_PTR uiparam, FLAGS flags, + ULONG reserved) +{ + TRACE("(0x%08lx 0x%08lx 0x%08x 0x%08x)\n", session, + uiparam, flags, reserved); + + return SUCCESS_SUCCESS; +} + +ULONG WINAPI MAPIReadMail(LHANDLE session, ULONG_PTR uiparam, LPSTR msg_id, + FLAGS flags, ULONG reserved, lpMapiMessage msg) +{ + FIXME("(stub)"); + return MAPI_E_NOT_SUPPORTED; +} + +ULONG WINAPI MAPIResolveName(LHANDLE session, ULONG_PTR uiparam, LPSTR name, + FLAGS flags, ULONG reserved, lpMapiRecipDesc *recip) +{ + FIXME("(stub)"); + return MAPI_E_NOT_SUPPORTED; +} + +ULONG WINAPI MAPISaveMail(LHANDLE session, ULONG_PTR uiparam, lpMapiMessage msg, + FLAGS flags, ULONG reserved, LPSTR msg_id) +{ + FIXME("(stub)"); + return MAPI_E_NOT_SUPPORTED; +} diff --git a/dlls/winemapi/sendmail.c b/dlls/winemapi/sendmail.c new file mode 100644 index 0000000..3acc2fc --- /dev/null +++ b/dlls/winemapi/sendmail.c @@ -0,0 +1,71 @@ +/* + * MAPISendMail implementation + * + * Copyright 2005 Hans Leidekker + * Copyright 2009 Owen Rudge for CodeWeavers + * + * 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 + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" +#include "wine/port.h" + +#include <stdio.h> +#include <stdarg.h> + +#define COBJMACROS + +#include "windef.h" +#include "winbase.h" +#include "winerror.h" +#include "mapi.h" +#include "winreg.h" +#include "shellapi.h" +#include "shlwapi.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(winemapi); + +/************************************************************************** + * MAPISendMail + * + * Send a mail. + * + * PARAMS + * session [I] Handle to a MAPI session. + * uiparam [I] Parent window handle. + * message [I] Pointer to a MAPIMessage structure. + * flags [I] Flags. + * reserved [I] Reserved, pass 0. + * + * RETURNS + * Success: SUCCESS_SUCCESS + * Failure: MAPI_E_FAILURE + * + */ +ULONG WINAPI MAPISendMail(LHANDLE session, ULONG_PTR uiparam, + lpMapiMessage message, FLAGS flags, ULONG reserved) +{ + FIXME("(0x%08x 0x%08lx %p 0x%08x 0x%08x): stub\n", session, uiparam, + message, flags, reserved); + + return MAPI_E_NOT_SUPPORTED; +} + +ULONG WINAPI MAPISendDocuments(ULONG_PTR uiparam, LPSTR delim, LPSTR paths, + LPSTR filenames, ULONG reserved) +{ + return MAPI_E_NOT_SUPPORTED; +} diff --git a/dlls/winemapi/winemapi.spec b/dlls/winemapi/winemapi.spec index 7091f72..83de280 100644 --- a/dlls/winemapi/winemapi.spec +++ b/dlls/winemapi/winemapi.spec @@ -1,11 +1,11 @@ -@ stub MAPIAddress -@ stub MAPIDeleteMail -@ stub MAPIDetails -@ stub MAPIFindNext -@ stub MAPILogon -@ stub MAPILogoff -@ stub MAPIReadMail -@ stub MAPIResolveName -@ stub MAPISaveMail -@ stub MAPISendDocuments -@ stub MAPISendMail +@ stdcall MAPIAddress(ptr ptr str long str long ptr long long ptr ptr) +@ stdcall MAPIDeleteMail(ptr ptr str long long) +@ stdcall MAPIDetails(ptr ptr ptr long long) +@ stdcall MAPIFindNext(ptr ptr str str long long ptr) +@ stdcall MAPILogon(ptr str str long long ptr) +@ stdcall MAPILogoff(ptr ptr long long) +@ stdcall MAPIReadMail(ptr ptr str long long ptr) +@ stdcall MAPIResolveName(ptr ptr str long long ptr) +@ stdcall MAPISaveMail(ptr ptr ptr long long str) +@ stdcall MAPISendDocuments(ptr str str str long) +@ stdcall MAPISendMail(ptr ptr ptr long long)
1
0
0
0
Owen Rudge : winemapi: Add skeleton for new Wine MAPI provider.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 38cb7be428be4a0247c16288eee531f615b873d4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=38cb7be428be4a0247c16288e…
Author: Owen Rudge <orudge(a)codeweavers.com> Date: Wed Dec 16 10:44:28 2009 -0600 winemapi: Add skeleton for new Wine MAPI provider. --- configure | 9 +++++++++ configure.ac | 1 + dlls/winemapi/Makefile.in | 13 +++++++++++++ dlls/winemapi/main.c | 39 +++++++++++++++++++++++++++++++++++++++ dlls/winemapi/winemapi.spec | 11 +++++++++++ 5 files changed, 73 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 555bc0b..9147bc2 100755 --- a/configure +++ b/configure @@ -17169,6 +17169,14 @@ dlls/winejoystick.drv/Makefile: dlls/winejoystick.drv/Makefile.in dlls/Makedll.r ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile" ALL_MAKEFILES="$ALL_MAKEFILES \\ + dlls/winemapi/Makefile" +test "x$enable_winemapi" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ + winemapi" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/winemapi/Makefile: dlls/winemapi/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/winemapi/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \\ dlls/winemp3.acm/Makefile" test "x$enable_winemp3_acm" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ winemp3.acm" @@ -19276,6 +19284,7 @@ do "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;; "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;; "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;; + "dlls/winemapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemapi/Makefile" ;; "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;; "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;; "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;; diff --git a/configure.ac b/configure.ac index e966142..0264a07 100644 --- a/configure.ac +++ b/configure.ac @@ -2531,6 +2531,7 @@ WINE_CONFIG_MAKEFILE([dlls/winedos/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DL WINE_CONFIG_MAKEFILE([dlls/wineesd.drv/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/winejack.drv/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/winejoystick.drv/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) +WINE_CONFIG_MAKEFILE([dlls/winemapi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/winemp3.acm/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/winenas.drv/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/wineoss.drv/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/winemapi/Makefile.in b/dlls/winemapi/Makefile.in new file mode 100644 index 0000000..6a4ec21 --- /dev/null +++ b/dlls/winemapi/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = winemapi.dll +IMPORTS = shlwapi shell32 kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/winemapi/main.c b/dlls/winemapi/main.c new file mode 100644 index 0000000..e4d4e55 --- /dev/null +++ b/dlls/winemapi/main.c @@ -0,0 +1,39 @@ +/* + * Wine MAPI provider + * + * Copyright 2009 Owen Rudge for CodeWeavers + * + * 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 + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "winerror.h" +#include "objbase.h" +#include "mapi.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(winemapi); + +/*********************************************************************** + * DllMain (MAPI32.init) + */ +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) +{ + TRACE("(%p,%d,%p)\n", hinstDLL, fdwReason, fImpLoad); + return TRUE; +} diff --git a/dlls/winemapi/winemapi.spec b/dlls/winemapi/winemapi.spec new file mode 100644 index 0000000..7091f72 --- /dev/null +++ b/dlls/winemapi/winemapi.spec @@ -0,0 +1,11 @@ +@ stub MAPIAddress +@ stub MAPIDeleteMail +@ stub MAPIDetails +@ stub MAPIFindNext +@ stub MAPILogon +@ stub MAPILogoff +@ stub MAPIReadMail +@ stub MAPIResolveName +@ stub MAPISaveMail +@ stub MAPISendDocuments +@ stub MAPISendMail
1
0
0
0
← Newer
1
...
40
41
42
43
44
45
46
...
124
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Results per page:
10
25
50
100
200