Share via


Constants for the Attachment Security API

Constants for the Attachment Security API

This topic contains constant definitions and interface identifiers for the Attachment Security API.

Interface Identifiers

Use the DEFINE_GUID macro defined in the Microsoft Windows Software Development Kit (SDK) header file guiddef.h to associate the globally unique identifier (GUID) symbolic name with its value.

// {b2533636-c3f3-416f-bf04-aefe41abaae2}

DEFINE_GUID(IID_IAttachmentSecurity, 0xb2533636, 0xc3f3, 0x416f, 0xbf, 0x04, 0xae, 0xfe, 0x41, 0xab, 0xaa, 0xe2);

Use the MAPIMETHOD macro defined in the Windows SDK header file mapidefs.h to define the pure virtual function IsAttachmentBlocked.

  #define MAPI_IATTACHMENTSECURITY_METHODS(IPURE)         MAPIMETHOD(IsAttachmentBlocked)         (LPCWSTR pwszFileName, BOOL *pfBlocked) IPURE;

Use the DECLARE_MAPI_INTERFACE_ macro defined in the Windows SDK header file mapidefs.h to define the virtual method table for IAttachmentSecurity.

  DECLARE_MAPI_INTERFACE_(IAttachmentSecurity, IUnknown)
{
    BEGIN_INTERFACE
    MAPI_IUNKNOWN_METHODS(PURE)
    MAPI_IATTACHMENTSECURITY_METHODS(PURE)
};