Platform SDK: Exchange Server |
The HrMAPIWriteAttachmentToFile function saves a message attachment to a file.
Header file: | EDKMAPI.H |
Library: | EDKMAPI.LIB |
HRESULT HrMAPIWriteAttachmentToFile( LPMESSAGE pMessage, ULONG iAttach, HANDLE hFile );
See Return Values.
For more information on this function, see the HrMAPIWriteAttachmentToFile function in EDKMAPI.C under the EDKMAPI code sample in Code Samples folder.
For information on the IMessage interface, see the MAPI Programmer's Reference.
HrMAPISetStreamSize, HrMAPIWriteFileToStream, HrMAPIWriteMemoryToStream, HrMAPIWriteStreamToFile, HrMAPIWriteStreamToMemory