Visual Basic: MAPI Controls

MAPI Control Constants

See Also

MAPISession Action Constants

Constant Value Description
mapSignOn 1 Log user into account
mapSignOff 2 End messaging session

MAPIMESSAGES DELETE CONSTANTS

Constant Value Description
mapMessageDelete 0 Delete current message
mapRecipientDelete 1 Delete the currently indexed recipient
mapAttachmentDelete 2 Delete the currently indexed attachment

MAPI Controls' Error Constants

Constant Value Description
mapSuccessSuccess 32000 Action returned successfully
mapUserAbort 32001 User canceled process
mapFailure 32002 Unspecified failure
mapLoginFail 32003 Login failure
mapDiskFull 32004 Disk full
mapInsufficientMem 32005 Insufficient memory
mapAccessDenied 32006 Access denied
mapGeneralFailure 32007 General failure
mapTooManySessions 32008 Too many sessions
mapTooManyFiles 32009 Too many files
mapTooManyRecipients 32010 Too many recipients
mapAttachmentNotFound 32011 Attachment not found
mapAttachmentOpenFailure 32012 Attachment open failure
mapAttachmentWriteFailure 32013 Attachment write failure
mapUnknownRecipient 32014 Unknown recipient
mapBadRecipType 32015 Invalid recipient type
mapNoMessages 32016 No message
mapInvalidMessage 32017 Invalid message
mapTextTooLarge 32018 Text too large
mapInvalidSession 32019 Invalid session
mapTypeNotSupported 32020 Type not supported
mapAmbiguousRecipient 32021 Ambiguous recipient
mapMessageInUse 32022 Message in use
mapNetworkFailure 32023 Network failure
mapInvalidEditFields 32024 Invalid editfields
mapInvalidRecips 32025 Invalid Recipients
mapNotSupported 32026 Current action not supported
mapSessionExist 32050 Session ID already exists
mapInvalidBuffer 32051 Read-only in read buffer
mapInvalidReadBufferAction 32052 Valid in compose buffer only
mapNoSession 32053 No valid session ID
mapInvalidRecipient 32054 Originator information not available
mapInvalidComposeBufferAction 32055 Action not valid for Compose Buffer
mapControlFailure 32056 No messages in list
mapNoRecipients 32057 No recipients
mapNoAttachment 32058 No attachments

MAPIMessages Reciptype Constants

Constant Value Description
mapOrigList 0 Message originator
mapToList 1 Recipient is a primary recipient
mapCcList 2 Recipient is a copy recipient
mapBccList 3 Recipient is a blind copy recipient

MAPIMessages Attachtype Constants

Constant Value Description
mapData 0 Attachment is a data file
mapEOLE 1 Attachment is an embedded OLE object
mapSOLE 2 Attachment is a static OLE object