Microsoft KB Archive/234539

= BUG: IExchExtAttachedFileEvents::OnReadPattFromSzFile Not Work =

Article ID: 234539

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Exchange Development Kit 5.5
 * Microsoft Exchange Server 2003 Software Development Kit
 * Microsoft Outlook 2000 Standard Edition
 * Microsoft Outlook 97 Standard Edition
 * Microsoft Outlook 98 Standard Edition

-



This article was previously published under Q234539



SYMPTOMS
Returning S_OK or S_FALSE from IExchExtAttachedFileEvents::OnReadPattFromSzFile in a client extension has the same effect. In either case, Microsoft Outlook will continue to call extensions and complete the work itself.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
Returning S_OK from OnReadPattToSzFile should signal Microsoft Outlook that the extension has handled the task of attaching the file on its own.

Steps To Reproduce

 * 1) Write an extension that returns S_OK to OnReadPattToSzFile, where the extension does nothing to attach the attachment.
 * 2) Register the extension and launch the client.
 * 3) Compose a new message.
 * 4) Select Insert from the File menu and and select a file.

Results:
The file gets attached to the message.

Expected Results:
The file does not get attached to the message.

