mapi32: Add stub of Extended MAPI wrapper for MAPISendMail.
This commit is contained in:
parent
6308f40da7
commit
c528e9e8dc
@ -38,6 +38,19 @@
|
|||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(mapi);
|
WINE_DEFAULT_DEBUG_CHANNEL(mapi);
|
||||||
|
|
||||||
|
/*
|
||||||
|
Internal function to send a message via Extended MAPI. Wrapper around the Simple
|
||||||
|
MAPI function MAPISendMail.
|
||||||
|
*/
|
||||||
|
static ULONG sendmail_extended_mapi(LHANDLE mapi_session, ULONG_PTR uiparam, lpMapiMessage message,
|
||||||
|
FLAGS flags, ULONG reserved)
|
||||||
|
{
|
||||||
|
TRACE("Using Extended MAPI wrapper for MAPISendMail\n");
|
||||||
|
|
||||||
|
MAPIUninitialize();
|
||||||
|
return MAPI_E_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* MAPISendMail (MAPI32.211)
|
* MAPISendMail (MAPI32.211)
|
||||||
*
|
*
|
||||||
@ -80,8 +93,9 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam,
|
|||||||
if (mapiFunctions.MAPISendMail)
|
if (mapiFunctions.MAPISendMail)
|
||||||
return mapiFunctions.MAPISendMail(session, uiparam, message, flags, reserved);
|
return mapiFunctions.MAPISendMail(session, uiparam, message, flags, reserved);
|
||||||
|
|
||||||
/* TODO: Check if we have an Extended MAPI provider, if so, implement
|
/* Check if we have an Extended MAPI provider - if so, use our wrapper */
|
||||||
wrapper around that. */
|
if (MAPIInitialize(NULL) == S_OK)
|
||||||
|
return sendmail_extended_mapi(session, uiparam, message, flags, reserved);
|
||||||
|
|
||||||
/* Fall back on our own implementation */
|
/* Fall back on our own implementation */
|
||||||
if (!message) return MAPI_E_FAILURE;
|
if (!message) return MAPI_E_FAILURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user