How to: Verify an Attachment is Blocked
|How to: Verify an Attachment is Blocked|
This code sample in C++ shows how to use the IAttachmentSecurity interface to find out whether an attachment is blocked by Outlook for viewing and indexing.
IAttachmentSecurity is derived from the IUnknown interface. You can obtain the IAttachmentSecurity interface by calling IUnknown::QueryInterface on the MAPI session object, requesting IID_IAttachmentSecurity. IsAttachmentBlocked returns TRUE in pfBlocked if the attachment is considered unsafe by Outlook and is blocked for viewing and indexing in Outlook.