Replaces or enhances the behavior of Microsoft Exchange when writing attachments from a message to a file.
See IExchExtAttachedFileEvents : IUnknown.
HRESULT OnWritePattToSzFile(
LPATTACH lpAtt,
LPTSTR lpszFile,
ULONG ulFlags
);
Microsoft Exchange calls the IExchExtAttachedFileEvents::OnWritePattToSzFile method when it is about to write an attachment to a file, such as when the user chooses the Save or Open button. If an error occurs, OnWritePattToSzFile should display an error message and return an error. Microsoft Exchange will not continue to try and write out the file, nor will it display an error message, but will stop the user action that requested the file be written.