From 7031588c7668fdee0561f0fa55c84ce1cc0d41a6 Mon Sep 17 00:00:00 2001 From: Owen Rudge Date: Mon, 23 Apr 2012 14:05:49 +0100 Subject: [PATCH] mapi32: Add stub implementation of MAPISendMailW. --- dlls/mapi32/mapi32.spec | 1 + dlls/mapi32/sendmail.c | 28 ++++++++++++++++++++++++++++ dlls/mapi32/util.c | 1 + dlls/mapi32/util.h | 1 + 4 files changed, 31 insertions(+) diff --git a/dlls/mapi32/mapi32.spec b/dlls/mapi32/mapi32.spec index ae85b4a2e22..c84cfd48314 100644 --- a/dlls/mapi32/mapi32.spec +++ b/dlls/mapi32/mapi32.spec @@ -188,3 +188,4 @@ 253 stub FixMAPI@0 254 stdcall FGetComponentPath(str str ptr long long) 255 stdcall FGetComponentPath@20(str str ptr long long) FGetComponentPath +256 stdcall MAPISendMailW(ptr ptr ptr long long) diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c index 89daf0fedd7..e313b532d3e 100644 --- a/dlls/mapi32/sendmail.c +++ b/dlls/mapi32/sendmail.c @@ -408,6 +408,34 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam, return MAPI_E_NOT_SUPPORTED; } +/************************************************************************** + * MAPISendMailW (MAPI32.256) + * + * Send a mail. + * + * PARAMS + * session [I] Handle to a MAPI session. + * uiparam [I] Parent window handle. + * message [I] Pointer to a MAPIMessageW structure. + * flags [I] Flags. + * reserved [I] Reserved, pass 0. + * + * RETURNS + * Success: SUCCESS_SUCCESS + * Failure: MAPI_E_FAILURE + * + */ +ULONG WINAPI MAPISendMailW(LHANDLE session, ULONG_PTR uiparam, + lpMapiMessageW message, FLAGS flags, ULONG reserved) +{ + /* Check to see if we have a Simple MAPI provider loaded */ + if (mapiFunctions.MAPISendMailW) + return mapiFunctions.MAPISendMailW(session, uiparam, message, flags, reserved); + + WARN("STUB\n"); + return MAPI_E_NOT_SUPPORTED; +} + ULONG WINAPI MAPISendDocuments(ULONG_PTR uiparam, LPSTR delim, LPSTR paths, LPSTR filenames, ULONG reserved) { diff --git a/dlls/mapi32/util.c b/dlls/mapi32/util.c index 90cfa6ecd67..abc4db63d0d 100644 --- a/dlls/mapi32/util.c +++ b/dlls/mapi32/util.c @@ -1075,6 +1075,7 @@ void load_mapi_providers(void) mapiFunctions.MAPISaveMail = (void*) GetProcAddress(mapi_provider, "MAPISaveMail"); mapiFunctions.MAPISendDocuments = (void*) GetProcAddress(mapi_provider, "MAPISendDocuments"); mapiFunctions.MAPISendMail = (void*) GetProcAddress(mapi_provider, "MAPISendMail"); + mapiFunctions.MAPISendMailW = (void*) GetProcAddress(mapi_provider, "MAPISendMailW"); } /* Extended MAPI functions */ diff --git a/dlls/mapi32/util.h b/dlls/mapi32/util.h index 6fbf81e3aee..45828559fe1 100644 --- a/dlls/mapi32/util.h +++ b/dlls/mapi32/util.h @@ -41,6 +41,7 @@ typedef struct MAPI_FUNCTIONS { LPMAPIRESOLVENAME MAPIResolveName; LPMAPISAVEMAIL MAPISaveMail; LPMAPISENDMAIL MAPISendMail; + LPMAPISENDMAILW MAPISendMailW; LPMAPISENDDOCUMENTS MAPISendDocuments; LPMAPIUNINITIALIZE MAPIUninitialize; -- 2.11.4.GIT