Author: cwittich
Date: Fri Mar 5 19:40:20 2010
New Revision: 45881
URL:
http://svn.reactos.org/svn/reactos?rev=45881&view=rev
Log:
[MAPI32]
sync mapi32 to wine 1.1.39
Added:
trunk/reactos/dll/win32/mapi32/De.rc (with props)
trunk/reactos/dll/win32/mapi32/En.rc (with props)
trunk/reactos/dll/win32/mapi32/Es.rc (with props)
trunk/reactos/dll/win32/mapi32/Fr.rc (with props)
trunk/reactos/dll/win32/mapi32/Lt.rc (with props)
trunk/reactos/dll/win32/mapi32/Ru.rc (with props)
trunk/reactos/dll/win32/mapi32/res.h (with props)
Modified:
trunk/reactos/dll/win32/mapi32/mapi32.rbuild
trunk/reactos/dll/win32/mapi32/mapi32.spec
trunk/reactos/dll/win32/mapi32/mapi32_main.c
trunk/reactos/dll/win32/mapi32/prop.c
trunk/reactos/dll/win32/mapi32/sendmail.c
trunk/reactos/dll/win32/mapi32/util.c
trunk/reactos/dll/win32/mapi32/util.h
trunk/reactos/dll/win32/mapi32/version.rc
trunk/reactos/include/psdk/mapi.h
Added: trunk/reactos/dll/win32/mapi32/De.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/De.rc?rev…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/De.rc (added)
+++ trunk/reactos/dll/win32/mapi32/De.rc [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1,0 +1,30 @@
+/*
+* MAPI32 German resources
+*
+* Copyright 2009 André Hentschel
+*
+* 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_GERMAN, SUBLANG_NEUTRAL
+
+STRINGTABLE
+{
+ IDS_NO_MAPI_CLIENT, "Das senden der E-Mails scheiterte, da Sie keinen MAPI E-Mail
Programm installiert haben."
+ IDS_SEND_MAIL, "E-Mail senden"
+}
Propchange: trunk/reactos/dll/win32/mapi32/De.rc
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/mapi32/En.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/En.rc?rev…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/En.rc (added)
+++ trunk/reactos/dll/win32/mapi32/En.rc [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1,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"
+}
Propchange: trunk/reactos/dll/win32/mapi32/En.rc
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/mapi32/Es.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/Es.rc?rev…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/Es.rc (added)
+++ trunk/reactos/dll/win32/mapi32/Es.rc [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1,0 +1,33 @@
+/*
+* MAPI32 Spanish resources
+*
+* Copyright 2010 José Manuel Ferrer Ortiz
+*
+* 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"
+
+/* UTF-8 */
+#pragma code_page(65001)
+
+LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
+
+STRINGTABLE
+{
+ IDS_NO_MAPI_CLIENT, "El envÃo de correo ha fallado debido a que no tiene
instalado un cliente de correo MAPI."
+ IDS_SEND_MAIL, "Enviar correo"
+}
Propchange: trunk/reactos/dll/win32/mapi32/Es.rc
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/mapi32/Fr.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/Fr.rc?rev…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/Fr.rc (added)
+++ trunk/reactos/dll/win32/mapi32/Fr.rc [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1,0 +1,33 @@
+/*
+* MAPI32 French resources
+*
+* Copyright 2009 Frédéric Delanoy
+*
+* 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"
+
+/* UTF-8 */
+#pragma code_page(65001)
+
+LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
+
+STRINGTABLE
+{
+ IDS_NO_MAPI_CLIENT, "L'envoi de courriel a échoué car aucun client mail
MAPI n'est installé."
+ IDS_SEND_MAIL, "Envoyer un courriel"
+}
Propchange: trunk/reactos/dll/win32/mapi32/Fr.rc
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/mapi32/Lt.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/Lt.rc?rev…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/Lt.rc (added)
+++ trunk/reactos/dll/win32/mapi32/Lt.rc [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1,0 +1,33 @@
+/*
+* MAPI32 Lithuanian resources
+*
+ * Copyright 2009 Aurimas Fišeras <aurimas(a)gmail.com>
+*
+* 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"
+
+/* UTF-8 */
+#pragma code_page(65001)
+
+LANGUAGE LANG_LITHUANIAN, SUBLANG_NEUTRAL
+
+STRINGTABLE
+{
+ IDS_NO_MAPI_CLIENT, "Nepavyko išsiųsti laiškų, nes neturite įdiegto MAPI
pašto kliento."
+ IDS_SEND_MAIL, "Laiškų siuntimas"
+}
Propchange: trunk/reactos/dll/win32/mapi32/Lt.rc
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/dll/win32/mapi32/Ru.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/Ru.rc?rev…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/Ru.rc (added)
+++ trunk/reactos/dll/win32/mapi32/Ru.rc [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1,0 +1,33 @@
+/*
+* MAPI32 Russian resources
+*
+* Copyright 2009 Vladimir Pankratov
+*
+* 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"
+
+/* UTF-8 */
+#pragma code_page(65001)
+
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+
+STRINGTABLE
+{
+ IDS_NO_MAPI_CLIENT, "Ðевозможно оÑпÑавиÑÑ Ð¿Ð¾ÑÑÑ: не
ÑÑÑановлен поÑÑовÑй ÐºÐ»Ð¸ÐµÐ½Ñ MAPI."
+ IDS_SEND_MAIL, "ÐÑпÑавка поÑÑÑ"
+}
Propchange: trunk/reactos/dll/win32/mapi32/Ru.rc
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/mapi32/mapi32.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/mapi32.rb…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/mapi32.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/mapi32.rbuild [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -15,6 +15,7 @@
<library>wine</library>
<library>shlwapi</library>
<library>shell32</library>
+ <library>user32</library>
<library>advapi32</library>
<library>uuid</library>
<library>ntdll</library>
Modified: trunk/reactos/dll/win32/mapi32/mapi32.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/mapi32.sp…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/mapi32.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/mapi32.spec [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -145,17 +145,17 @@
205 stub FDecodeID@12
206 stub CchOfEncoding@4
207 stdcall CbOfEncoded@4(ptr) CbOfEncoded
-208 stdcall MAPISendDocuments(ptr ptr ptr ptr long)
-209 stdcall MAPILogon(long ptr ptr long long ptr)
-210 stdcall MAPILogoff(long long long long)
-211 stdcall MAPISendMail(long long ptr long long)
-212 stdcall MAPISaveMail(ptr ptr ptr long long ptr)
-213 stdcall MAPIReadMail(ptr ptr ptr long long ptr)
-214 stdcall MAPIFindNext(ptr ptr ptr ptr long long ptr)
-215 stdcall MAPIDeleteMail(ptr ptr ptr long long)
-217 stdcall MAPIAddress(ptr ptr ptr long ptr long long ptr long ptr ptr)
+208 stdcall MAPISendDocuments(ptr str str str long)
+209 stdcall MAPILogon(ptr str str long long ptr)
+210 stdcall MAPILogoff(ptr ptr long long)
+211 stdcall MAPISendMail(ptr ptr ptr long long)
+212 stdcall MAPISaveMail(ptr ptr ptr long long str)
+213 stdcall MAPIReadMail(ptr ptr str long long ptr)
+214 stdcall MAPIFindNext(ptr ptr str str long long ptr)
+215 stdcall MAPIDeleteMail(ptr ptr str long long)
+217 stdcall MAPIAddress(ptr ptr str long str long ptr long long ptr ptr)
218 stdcall MAPIDetails(ptr ptr ptr long long)
-219 stdcall MAPIResolveName(ptr ptr ptr long long ptr)
+219 stdcall MAPIResolveName(ptr ptr str long long ptr)
220 stub BMAPISendMail
221 stub BMAPISaveMail
222 stub BMAPIReadMail
Modified: trunk/reactos/dll/win32/mapi32/mapi32_main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/mapi32_ma…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/mapi32_main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/mapi32_main.c [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -34,6 +34,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(mapi);
LONG MAPI_ObjectCount = 0;
+HINSTANCE hInstMAPI32;
/***********************************************************************
* DllMain (MAPI32.init)
@@ -45,6 +46,7 @@
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
+ hInstMAPI32 = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
load_mapi_providers();
break;
Modified: trunk/reactos/dll/win32/mapi32/prop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/prop.c?re…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/prop.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/prop.c [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1835,7 +1835,7 @@
else
{
/* Add new value */
- if (!(item = IMAPIPROP_AddValue(This, &lpProps[i])))
+ if (!IMAPIPROP_AddValue(This, &lpProps[i]))
hRet = MAPI_E_NOT_ENOUGH_MEMORY;
}
}
Added: trunk/reactos/dll/win32/mapi32/res.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/res.h?rev…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/res.h (added)
+++ trunk/reactos/dll/win32/mapi32/res.h [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1,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
Propchange: trunk/reactos/dll/win32/mapi32/res.h
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/dll/win32/mapi32/sendmail.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/sendmail.…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/sendmail.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/sendmail.c [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -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 @@
* 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%08x 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 @@
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;
-
- 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;
-
- 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;
+ /* 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));
+
+ MessageBoxW((HWND) uiparam, error_msg, msg_title, MB_ICONEXCLAMATION);
+
+ return MAPI_E_NOT_SUPPORTED;
}
ULONG WINAPI MAPISendDocuments(ULONG_PTR uiparam, LPSTR delim, LPSTR paths,
Modified: trunk/reactos/dll/win32/mapi32/util.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/util.c?re…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/util.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/util.c [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -1037,7 +1037,7 @@
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;
Modified: trunk/reactos/dll/win32/mapi32/util.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/util.h?re…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/util.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/util.h [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -61,5 +61,6 @@
} MAPI_FUNCTIONS;
extern MAPI_FUNCTIONS mapiFunctions;
+extern HINSTANCE hInstMAPI32;
#endif
Modified: trunk/reactos/dll/win32/mapi32/version.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mapi32/version.r…
==============================================================================
--- trunk/reactos/dll/win32/mapi32/version.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mapi32/version.rc [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -24,3 +24,10 @@
#define WINE_PRODUCTVERSION_STR "1.0.0.0"
#include "wine/wine_common_ver.rc"
+
+#include "De.rc"
+#include "En.rc"
+#include "Es.rc"
+#include "Fr.rc"
+#include "Lt.rc"
+#include "Ru.rc"
Modified: trunk/reactos/include/psdk/mapi.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/mapi.h?rev=45…
==============================================================================
--- trunk/reactos/include/psdk/mapi.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/mapi.h [iso-8859-1] Fri Mar 5 19:40:20 2010
@@ -27,7 +27,7 @@
#ifndef __LHANDLE
#define __LHANDLE
-typedef ULONG LHANDLE, *LPLHANDLE;
+typedef ULONG_PTR LHANDLE, *LPLHANDLE;
#endif
#define lhSessionNull ((LHANDLE)0)