Commit 7031588c authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

mapi32: Add stub implementation of MAPISendMailW.

parent e82e3e7f
......@@ -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)
......@@ -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)
{
......
......@@ -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 */
......
......@@ -41,6 +41,7 @@ typedef struct MAPI_FUNCTIONS {
LPMAPIRESOLVENAME MAPIResolveName;
LPMAPISAVEMAIL MAPISaveMail;
LPMAPISENDMAIL MAPISendMail;
LPMAPISENDMAILW MAPISendMailW;
LPMAPISENDDOCUMENTS MAPISendDocuments;
LPMAPIUNINITIALIZE MAPIUninitialize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment