Platform SDK: Exchange Server |
Replaces or enhances the behavior of Microsoft Exchange when adding attachments to a message from a file.
See IExchExtAttachedFileEvents : IUnknown.
HRESULT OnReadPattFromSzFile( LPATTACH lpAtt, LPTSTR lpszFile, ULONG ulFlags );
Microsoft Exchange calls the IExchExtAttachedFileEvents::OnReadPattFromSzFile method when it is about to read an attached file’s data. This can occur on initial attachment and when the contents of the attachment are being updated from a temporary file. If an error occurs, OnReadPattFromSzFile should display an error message and return an error. Microsoft Exchange will not continue to attach the file, nor will it display an additional error message, but will stop the user action that requested the attachment.