mapi32: Add stub implementation of MAPISendMailW.

This commit is contained in:
Owen Rudge 2012-04-23 14:05:49 +01:00 committed by Alexandre Julliard
parent e82e3e7fb6
commit 7031588c76
4 changed files with 31 additions and 0 deletions

View File

@ -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)

View File

@ -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)
{

View File

@ -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 */

View File

@ -41,6 +41,7 @@ typedef struct MAPI_FUNCTIONS {
LPMAPIRESOLVENAME MAPIResolveName;
LPMAPISAVEMAIL MAPISaveMail;
LPMAPISENDMAIL MAPISendMail;
LPMAPISENDMAILW MAPISendMailW;
LPMAPISENDDOCUMENTS MAPISendDocuments;
LPMAPIUNINITIALIZE MAPIUninitialize;