2 * MAPISendMail implementation
4 * Copyright 2005 Hans Leidekker
5 * Copyright 2009 Owen Rudge for CodeWeavers
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #define WIN32_NO_STATUS
24 #define COM_NO_WINDOWS_H
27 //#include "wine/port.h"
36 //#include "winerror.h"
38 //#include "objbase.h"
43 //#include "mapidefs.h"
45 //#include "shellapi.h"
46 //#include "shlwapi.h"
47 #include <wine/debug.h>
48 #include <wine/unicode.h>
52 WINE_DEFAULT_DEBUG_CHANNEL(mapi
);
54 #define READ_BUF_SIZE 4096
56 #define STORE_UNICODE_OK 0x00040000
58 static LPSTR
convert_from_unicode(LPCWSTR wstr
)
66 len
= WideCharToMultiByte(CP_ACP
, 0, wstr
, -1, NULL
, 0, NULL
, NULL
);
67 str
= HeapAlloc(GetProcessHeap(), 0, len
);
68 WideCharToMultiByte(CP_ACP
, 0, wstr
, -1, str
, len
, NULL
, NULL
);
73 static LPWSTR
convert_to_unicode(LPSTR str
)
81 len
= MultiByteToWideChar(CP_ACP
, 0, str
, -1, NULL
, 0);
82 wstr
= HeapAlloc(GetProcessHeap(), 0, len
* sizeof(WCHAR
));
83 MultiByteToWideChar(CP_ACP
, 0, str
, -1, wstr
, len
);
89 Internal function to send a message via Extended MAPI. Wrapper around the Simple
90 MAPI function MAPISendMail.
92 static ULONG
sendmail_extended_mapi(LHANDLE mapi_session
, ULONG_PTR uiparam
, lpMapiMessageW message
,
95 ULONG tags
[] = {1, 0};
96 char *subjectA
= NULL
, *bodyA
= NULL
;
97 ULONG retval
= MAPI_E_FAILURE
;
98 IMAPISession
*session
= NULL
;
99 BOOL unicode_aware
= FALSE
;
100 IMAPITable
* msg_table
;
101 LPSRowSet rows
= NULL
;
102 IMsgStore
* msg_store
;
103 IMAPIFolder
* folder
= NULL
, *draft_folder
= NULL
;
112 TRACE("Using Extended MAPI wrapper for MAPISendMail\n");
114 /* Attempt to log on via Extended MAPI */
116 ret
= MAPILogonEx(0, NULL
, NULL
, MAPI_EXTENDED
| MAPI_USE_DEFAULT
| MAPI_NEW_SESSION
, &session
);
117 TRACE("MAPILogonEx: %x\n", ret
);
121 retval
= MAPI_E_LOGIN_FAILURE
;
125 /* Open the default message store */
127 if (IMAPISession_GetMsgStoresTable(session
, 0, &msg_table
) == S_OK
)
129 /* We want the default store */
130 SizedSPropTagArray(2, columns
) = {2, {PR_ENTRYID
, PR_DEFAULT_STORE
}};
132 /* Set the columns we want */
133 if (IMAPITable_SetColumns(msg_table
, (LPSPropTagArray
) &columns
, 0) == S_OK
)
137 if (IMAPITable_QueryRows(msg_table
, 1, 0, &rows
) != S_OK
)
139 MAPIFreeBuffer(rows
);
142 else if (rows
->cRows
!= 1)
149 /* If it's not the default store, try the next row */
150 if (!rows
->aRow
[0].lpProps
[1].Value
.b
)
161 IMAPITable_Release(msg_table
);
164 /* Did we manage to get the right store? */
168 /* Open the message store */
169 IMAPISession_OpenMsgStore(session
, 0, rows
->aRow
[0].lpProps
[0].Value
.bin
.cb
,
170 (ENTRYID
*) rows
->aRow
[0].lpProps
[0].Value
.bin
.lpb
, NULL
,
171 MDB_NO_DIALOG
| MAPI_BEST_ACCESS
, &msg_store
);
173 /* We don't need this any more */
176 /* Check if the message store supports Unicode */
177 tags
[1] = PR_STORE_SUPPORT_MASK
;
178 ret
= IMsgStore_GetProps(msg_store
, (LPSPropTagArray
) tags
, 0, &values
, &props
);
180 if ((ret
== S_OK
) && (props
[0].Value
.l
& STORE_UNICODE_OK
))
181 unicode_aware
= TRUE
;
184 /* Don't convert to ANSI */
185 if (flags
& MAPI_FORCE_UNICODE
)
187 WARN("No Unicode-capable mail client, and MAPI_FORCE_UNICODE is specified. MAPISendMail failed.\n");
188 retval
= MAPI_E_UNICODE_NOT_SUPPORTED
;
189 IMsgStore_Release(msg_store
);
194 /* First open the inbox, from which the drafts folder can be opened */
195 if (IMsgStore_GetReceiveFolder(msg_store
, NULL
, 0, &entry_len
, &entry_id
, NULL
) == S_OK
)
197 IMsgStore_OpenEntry(msg_store
, entry_len
, entry_id
, NULL
, 0, &obj_type
, (LPUNKNOWN
*) &folder
);
198 MAPIFreeBuffer(entry_id
);
201 tags
[1] = PR_IPM_DRAFTS_ENTRYID
;
203 /* Open the drafts folder, or failing that, try asking the message store for the outbox */
204 if ((folder
== NULL
) || ((ret
= IMAPIFolder_GetProps(folder
, (LPSPropTagArray
) tags
, 0, &values
, &props
)) != S_OK
))
206 TRACE("Unable to open Drafts folder; opening Outbox instead\n");
207 tags
[1] = PR_IPM_OUTBOX_ENTRYID
;
208 ret
= IMsgStore_GetProps(msg_store
, (LPSPropTagArray
) tags
, 0, &values
, &props
);
214 IMsgStore_OpenEntry(msg_store
, props
[0].Value
.bin
.cb
, (LPENTRYID
) props
[0].Value
.bin
.lpb
,
215 NULL
, MAPI_MODIFY
, &obj_type
, (LPUNKNOWN
*) &draft_folder
);
217 /* Create a new message */
218 if (IMAPIFolder_CreateMessage(draft_folder
, NULL
, 0, &msg
) == S_OK
)
223 /* Define message properties */
224 p
.ulPropTag
= PR_MESSAGE_FLAGS
;
225 p
.Value
.l
= MSGFLAG_FROMME
| MSGFLAG_UNSENT
;
227 IMessage_SetProps(msg
, 1, &p
, NULL
);
229 p
.ulPropTag
= PR_SENTMAIL_ENTRYID
;
230 p
.Value
.bin
.cb
= props
[0].Value
.bin
.cb
;
231 p
.Value
.bin
.lpb
= props
[0].Value
.bin
.lpb
;
232 IMessage_SetProps(msg
, 1,&p
, NULL
);
234 /* Set message subject */
235 if (message
->lpszSubject
)
239 p
.ulPropTag
= PR_SUBJECT_W
;
240 p
.Value
.lpszW
= message
->lpszSubject
;
244 subjectA
= convert_from_unicode(message
->lpszSubject
);
246 p
.ulPropTag
= PR_SUBJECT_A
;
247 p
.Value
.lpszA
= subjectA
;
250 IMessage_SetProps(msg
, 1, &p
, NULL
);
253 /* Set message body */
254 if (message
->lpszNoteText
)
256 LPSTREAM stream
= NULL
;
258 if (IMessage_OpenProperty(msg
, unicode_aware
? PR_BODY_W
: PR_BODY_A
, &IID_IStream
, 0,
259 MAPI_MODIFY
| MAPI_CREATE
, (LPUNKNOWN
*) &stream
) == S_OK
)
262 IStream_Write(stream
, message
->lpszNoteText
, (lstrlenW(message
->lpszNoteText
)+1) * sizeof(WCHAR
), NULL
);
265 bodyA
= convert_from_unicode(message
->lpszNoteText
);
266 IStream_Write(stream
, bodyA
, strlen(bodyA
)+1, NULL
);
269 IStream_Release(stream
);
273 /* Add message attachments */
274 if (message
->nFileCount
> 0)
276 ULONG num_attach
= 0;
279 for (i
= 0; i
< message
->nFileCount
; i
++)
281 IAttach
* attachment
= NULL
;
282 char *filenameA
= NULL
;
287 if (!message
->lpFiles
[i
].lpszPathName
)
290 /* Open the attachment for reading */
291 file
= CreateFileW(message
->lpFiles
[i
].lpszPathName
, GENERIC_READ
, FILE_SHARE_READ
,
292 NULL
, OPEN_EXISTING
, FILE_ATTRIBUTE_NORMAL
, NULL
);
294 if (file
== INVALID_HANDLE_VALUE
)
297 /* Check if a display filename has been given; if not, get one ourselves from path name */
298 filename
= message
->lpFiles
[i
].lpszFileName
;
304 filename
= message
->lpFiles
[i
].lpszPathName
;
306 for (j
= lstrlenW(message
->lpFiles
[i
].lpszPathName
)-1; j
>= 0; j
--)
308 if (message
->lpFiles
[i
].lpszPathName
[i
] == '\\' ||
309 message
->lpFiles
[i
].lpszPathName
[i
] == '/')
311 filename
= &message
->lpFiles
[i
].lpszPathName
[i
+1];
317 TRACE("Attachment %u path: '%s'; filename: '%s'\n", i
, debugstr_w(message
->lpFiles
[i
].lpszPathName
),
318 debugstr_w(filename
));
320 /* Create the attachment */
321 if (IMessage_CreateAttach(msg
, NULL
, 0, &num_attach
, &attachment
) != S_OK
)
323 TRACE("Unable to create attachment\n");
328 /* Set the attachment properties */
329 ZeroMemory(prop
, sizeof(prop
));
331 prop
[0].ulPropTag
= PR_ATTACH_METHOD
;
332 prop
[0].Value
.ul
= ATTACH_BY_VALUE
;
336 prop
[1].ulPropTag
= PR_ATTACH_LONG_FILENAME_W
;
337 prop
[1].Value
.lpszW
= (LPWSTR
) filename
;
338 prop
[2].ulPropTag
= PR_ATTACH_FILENAME_W
;
339 prop
[2].Value
.lpszW
= (LPWSTR
) filename
;
343 filenameA
= convert_from_unicode(filename
);
345 prop
[1].ulPropTag
= PR_ATTACH_LONG_FILENAME_A
;
346 prop
[1].Value
.lpszA
= (LPSTR
) filenameA
;
347 prop
[2].ulPropTag
= PR_ATTACH_FILENAME_A
;
348 prop
[2].Value
.lpszA
= (LPSTR
) filenameA
;
352 prop
[3].ulPropTag
= PR_RENDERING_POSITION
;
353 prop
[3].Value
.l
= -1;
355 if (IAttach_SetProps(attachment
, 4, prop
, NULL
) == S_OK
)
357 LPSTREAM stream
= NULL
;
359 if (IAttach_OpenProperty(attachment
, PR_ATTACH_DATA_BIN
, &IID_IStream
, 0,
360 MAPI_MODIFY
| MAPI_CREATE
, (LPUNKNOWN
*) &stream
) == S_OK
)
362 BYTE data
[READ_BUF_SIZE
];
363 DWORD size
= 0, read
, written
;
365 while (ReadFile(file
, data
, READ_BUF_SIZE
, &read
, NULL
) && (read
!= 0))
367 IStream_Write(stream
, data
, read
, &written
);
371 TRACE("%d bytes written of attachment\n", size
);
373 IStream_Commit(stream
, STGC_DEFAULT
);
374 IStream_Release(stream
);
376 prop
[0].ulPropTag
= PR_ATTACH_SIZE
;
377 prop
[0].Value
.ul
= size
;
378 IAttach_SetProps(attachment
, 1, prop
, NULL
);
380 IAttach_SaveChanges(attachment
, KEEP_OPEN_READONLY
);
386 IAttach_Release(attachment
);
388 HeapFree(GetProcessHeap(), 0, filenameA
);
392 IMessage_SaveChanges(msg
, KEEP_OPEN_READWRITE
);
394 /* Prepare the message form */
396 if (IMAPISession_PrepareForm(session
, NULL
, msg
, &token
) == S_OK
)
398 ULONG access
= 0, status
= 0, message_flags
= 0, pc
= 0;
399 ULONG pT
[2] = {1, PR_MSG_STATUS
};
401 /* Retrieve message status, flags, access rights and class */
403 if (IMessage_GetProps(msg
, (LPSPropTagArray
) pT
, 0, &pc
, &props
) == S_OK
)
405 status
= props
->Value
.ul
;
406 MAPIFreeBuffer(props
);
409 pT
[1] = PR_MESSAGE_FLAGS
;
411 if (IMessage_GetProps(msg
, (LPSPropTagArray
) pT
, 0, &pc
, &props
) == S_OK
)
413 message_flags
= props
->Value
.ul
;
414 MAPIFreeBuffer(props
);
419 if (IMessage_GetProps(msg
, (LPSPropTagArray
) pT
, 0, &pc
, &props
) == S_OK
)
421 access
= props
->Value
.ul
;
422 MAPIFreeBuffer(props
);
425 pT
[1] = PR_MESSAGE_CLASS_A
;
427 if (IMessage_GetProps(msg
, (LPSPropTagArray
) pT
, 0, &pc
, &props
) == S_OK
)
429 /* Show the message form (edit window) */
431 ret
= IMAPISession_ShowForm(session
, 0, msg_store
, draft_folder
, NULL
,
432 token
, NULL
, 0, status
, message_flags
, access
,
438 retval
= SUCCESS_SUCCESS
;
441 case MAPI_E_USER_CANCEL
:
442 retval
= MAPI_E_USER_ABORT
;
446 TRACE("ShowForm failure: %x\n", ret
);
452 IMessage_Release(msg
);
455 /* Free up the resources we've used */
456 IMAPIFolder_Release(draft_folder
);
457 if (folder
) IMAPIFolder_Release(folder
);
458 IMsgStore_Release(msg_store
);
460 HeapFree(GetProcessHeap(), 0, subjectA
);
461 HeapFree(GetProcessHeap(), 0, bodyA
);
464 IMAPISession_Logoff(session
, 0, 0, 0);
465 IMAPISession_Release(session
);
472 /**************************************************************************
473 * MAPISendMail (MAPI32.211)
478 * session [I] Handle to a MAPI session.
479 * uiparam [I] Parent window handle.
480 * message [I] Pointer to a MAPIMessage structure.
482 * reserved [I] Reserved, pass 0.
485 * Success: SUCCESS_SUCCESS
486 * Failure: MAPI_E_FAILURE
489 ULONG WINAPI
MAPISendMail( LHANDLE session
, ULONG_PTR uiparam
,
490 lpMapiMessage message
, FLAGS flags
, ULONG reserved
)
492 WCHAR msg_title
[READ_BUF_SIZE
], error_msg
[READ_BUF_SIZE
];
494 /* Check to see if we have a Simple MAPI provider loaded */
495 if (mapiFunctions
.MAPISendMail
)
496 return mapiFunctions
.MAPISendMail(session
, uiparam
, message
, flags
, reserved
);
498 /* Check if we have an Extended MAPI provider - if so, use our wrapper */
499 if (MAPIInitialize(NULL
) == S_OK
)
501 MapiMessageW messageW
;
504 ZeroMemory(&messageW
, sizeof(MapiMessageW
));
506 /* Convert the entries we need to Unicode */
507 messageW
.lpszSubject
= convert_to_unicode(message
->lpszSubject
);
508 messageW
.lpszNoteText
= convert_to_unicode(message
->lpszNoteText
);
509 messageW
.nFileCount
= message
->nFileCount
;
511 if (message
->nFileCount
&& message
->lpFiles
)
513 lpMapiFileDescW filesW
;
516 filesW
= HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(MapiFileDescW
) * message
->nFileCount
);
518 for (i
= 0; i
< message
->nFileCount
; i
++)
520 filesW
[i
].lpszPathName
= convert_to_unicode(message
->lpFiles
[i
].lpszPathName
);
521 filesW
[i
].lpszFileName
= convert_to_unicode(message
->lpFiles
[i
].lpszFileName
);
524 messageW
.lpFiles
= filesW
;
527 ret
= sendmail_extended_mapi(session
, uiparam
, &messageW
, flags
);
529 /* Now free everything we allocated */
530 if (message
->nFileCount
&& message
->lpFiles
)
534 for (i
= 0; i
< message
->nFileCount
; i
++)
536 HeapFree(GetProcessHeap(), 0, messageW
.lpFiles
[i
].lpszPathName
);
537 HeapFree(GetProcessHeap(), 0, messageW
.lpFiles
[i
].lpszFileName
);
540 HeapFree(GetProcessHeap(), 0, messageW
.lpFiles
);
543 HeapFree(GetProcessHeap(), 0, messageW
.lpszSubject
);
544 HeapFree(GetProcessHeap(), 0, messageW
.lpszNoteText
);
549 /* Display an error message since we apparently have no mail clients */
550 LoadStringW(hInstMAPI32
, IDS_NO_MAPI_CLIENT
, error_msg
, sizeof(error_msg
) / sizeof(WCHAR
));
551 LoadStringW(hInstMAPI32
, IDS_SEND_MAIL
, msg_title
, sizeof(msg_title
) / sizeof(WCHAR
));
553 MessageBoxW((HWND
) uiparam
, error_msg
, msg_title
, MB_ICONEXCLAMATION
);
555 return MAPI_E_NOT_SUPPORTED
;
558 static lpMapiRecipDesc
convert_recipient_from_unicode(lpMapiRecipDescW recipW
, lpMapiRecipDesc dest
)
568 ret
= HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(MapiRecipDesc
));
570 ret
->ulRecipClass
= recipW
->ulRecipClass
;
571 ret
->lpszName
= convert_from_unicode(recipW
->lpszName
);
572 ret
->lpszAddress
= convert_from_unicode(recipW
->lpszAddress
);
573 ret
->ulEIDSize
= recipW
->ulEIDSize
;
574 ret
->lpEntryID
= recipW
->lpEntryID
;
579 /**************************************************************************
580 * MAPISendMailW (MAPI32.256)
585 * session [I] Handle to a MAPI session.
586 * uiparam [I] Parent window handle.
587 * message [I] Pointer to a MAPIMessageW structure.
589 * reserved [I] Reserved, pass 0.
592 * Success: SUCCESS_SUCCESS
593 * Failure: MAPI_E_FAILURE
596 ULONG WINAPI
MAPISendMailW(LHANDLE session
, ULONG_PTR uiparam
,
597 lpMapiMessageW message
, FLAGS flags
, ULONG reserved
)
599 WCHAR msg_title
[READ_BUF_SIZE
], error_msg
[READ_BUF_SIZE
];
601 /* Check to see if we have a Simple MAPI provider loaded */
602 if (mapiFunctions
.MAPISendMailW
)
603 return mapiFunctions
.MAPISendMailW(session
, uiparam
, message
, flags
, reserved
);
605 /* Check if we have an Extended MAPI provider - if so, use our wrapper */
606 if (MAPIInitialize(NULL
) == S_OK
)
607 return sendmail_extended_mapi(session
, uiparam
, message
, flags
);
609 if (mapiFunctions
.MAPISendMail
)
611 MapiMessage messageA
;
614 if (flags
& MAPI_FORCE_UNICODE
)
615 return MAPI_E_UNICODE_NOT_SUPPORTED
;
617 /* Convert to ANSI and send to MAPISendMail */
618 ZeroMemory(&messageA
, sizeof(MapiMessage
));
620 messageA
.lpszSubject
= convert_from_unicode(message
->lpszSubject
);
621 messageA
.lpszNoteText
= convert_from_unicode(message
->lpszNoteText
);
622 messageA
.lpszMessageType
= convert_from_unicode(message
->lpszMessageType
);
623 messageA
.lpszDateReceived
= convert_from_unicode(message
->lpszDateReceived
);
624 messageA
.lpszConversationID
= convert_from_unicode(message
->lpszConversationID
);
625 messageA
.flFlags
= message
->flFlags
;
626 messageA
.lpOriginator
= convert_recipient_from_unicode(message
->lpOriginator
, NULL
);
627 messageA
.nRecipCount
= message
->nRecipCount
;
628 messageA
.nFileCount
= message
->nFileCount
;
630 if (message
->nRecipCount
&& message
->lpRecips
)
632 lpMapiRecipDesc recipsA
;
635 recipsA
= HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(MapiRecipDesc
) * message
->nRecipCount
);
637 for (i
= 0; i
< message
->nRecipCount
; i
++)
639 convert_recipient_from_unicode(&message
->lpRecips
[i
], &recipsA
[i
]);
642 messageA
.lpRecips
= recipsA
;
645 if (message
->nFileCount
&& message
->lpFiles
)
647 lpMapiFileDesc filesA
;
650 filesA
= HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY
, sizeof(MapiFileDesc
) * message
->nFileCount
);
652 for (i
= 0; i
< message
->nFileCount
; i
++)
654 filesA
[i
].flFlags
= message
->lpFiles
[i
].flFlags
;
655 filesA
[i
].nPosition
= message
->lpFiles
[i
].nPosition
;
656 filesA
[i
].lpszPathName
= convert_from_unicode(message
->lpFiles
[i
].lpszPathName
);
657 filesA
[i
].lpszFileName
= convert_from_unicode(message
->lpFiles
[i
].lpszFileName
);
658 filesA
[i
].lpFileType
= message
->lpFiles
[i
].lpFileType
;
661 messageA
.lpFiles
= filesA
;
664 ret
= mapiFunctions
.MAPISendMail(session
, uiparam
, &messageA
, flags
, reserved
);
666 /* Now free everything we allocated */
667 if (message
->lpOriginator
)
669 HeapFree(GetProcessHeap(), 0, messageA
.lpOriginator
->lpszName
);
670 HeapFree(GetProcessHeap(), 0, messageA
.lpOriginator
->lpszAddress
);
671 HeapFree(GetProcessHeap(), 0, messageA
.lpOriginator
);
674 if (message
->nRecipCount
&& message
->lpRecips
)
678 for (i
= 0; i
< message
->nRecipCount
; i
++)
680 HeapFree(GetProcessHeap(), 0, messageA
.lpRecips
[i
].lpszName
);
681 HeapFree(GetProcessHeap(), 0, messageA
.lpRecips
[i
].lpszAddress
);
684 HeapFree(GetProcessHeap(), 0, messageA
.lpRecips
);
687 if (message
->nFileCount
&& message
->lpFiles
)
691 for (i
= 0; i
< message
->nFileCount
; i
++)
693 HeapFree(GetProcessHeap(), 0, messageA
.lpFiles
[i
].lpszPathName
);
694 HeapFree(GetProcessHeap(), 0, messageA
.lpFiles
[i
].lpszFileName
);
697 HeapFree(GetProcessHeap(), 0, messageA
.lpFiles
);
700 HeapFree(GetProcessHeap(), 0, messageA
.lpszSubject
);
701 HeapFree(GetProcessHeap(), 0, messageA
.lpszNoteText
);
702 HeapFree(GetProcessHeap(), 0, messageA
.lpszDateReceived
);
703 HeapFree(GetProcessHeap(), 0, messageA
.lpszConversationID
);
708 /* Display an error message since we apparently have no mail clients */
709 LoadStringW(hInstMAPI32
, IDS_NO_MAPI_CLIENT
, error_msg
, sizeof(error_msg
) / sizeof(WCHAR
));
710 LoadStringW(hInstMAPI32
, IDS_SEND_MAIL
, msg_title
, sizeof(msg_title
) / sizeof(WCHAR
));
712 MessageBoxW((HWND
) uiparam
, error_msg
, msg_title
, MB_ICONEXCLAMATION
);
714 return MAPI_E_NOT_SUPPORTED
;
717 ULONG WINAPI
MAPISendDocuments(ULONG_PTR uiparam
, LPSTR delim
, LPSTR paths
,
718 LPSTR filenames
, ULONG reserved
)
720 if (mapiFunctions
.MAPISendDocuments
)
721 return mapiFunctions
.MAPISendDocuments(uiparam
, delim
, paths
, filenames
, reserved
);
723 return MAPI_E_NOT_SUPPORTED
;