LazyMAPI

TMAPIStore object provides access to message store information and to messages and folders.
Delphi wrapper object for MAPI IMsgStore interface object

Unit: MAPIFolders.pas
Type: Class
Inherited from: TMAPIFldHolder, TMAPIProperty

Constructors

Name Description
constructor Create(EntryID: TBytes; const MAPISession: TMAPISession); Constructs an instance of the TMAPIStore class and initializes its values.
destructor Destroy Destroys the TMAPIStore class.

Properties inherited from TMAPIProperty

Name Access Type Description MAPI Reference
Active RW Boolean Open/Close the MAPI object.  
ID RO TBytes The ID property returns the unique identifier of the MAPI object. PR_ENTRYID
MAPIObjType RO TMAPIObjType The MAPIObjType property indicates the type of MAPI object. PR_OBJECT_TYPE
MAPIObject RO IMAPIProp Returns native MAPI IMAPIProp interfaced object.  
Properties RO TMAPIPropFields Returns one or all of the fields associated with a MAPI Property object. Each field typically corresponds to a MAPI property.  

Properties inherited from TMAPIFldHolder

Name Access Type Description
Folders RO TMAPIFolders  Returns a single children folder. 

Properties

Name Access Type Description MAPI Reference
DisplayName RW WideString Contains the display name for a given MAPI object. PR_DISPLAY_NAME
Comment RW WideString Contains a comment about the purpose or content of an object (MAPI Store). PR_COMMENT
StoreSupportMask RO ULONG Contains a bitmask of flags that client applications query to determine the characteristics of a message store. PR_STORE_SUPPORT_MASK
Signature RO TBytes Contains the mapping signature for named properties of a particular MAPI object. PR_MAPPING_SIGNATURE
ProviderUID RO TBytes Contains a provider-defined MAPIUID structure that indicates the type of the message store. PR_MDB_PROVIDER
IsDefault RO Boolean Contains TRUE if a message store is the default message store in the message store table. PR_DEFAULT_STORE
IsPublic RO Boolean Contains TRUE if folders in this store are public (multi-user), not private (possibly multi-instance but not multi-user). Computed from StoreSupportMask. PR_STORE_SUPPORT_MASK
IsExchange RO Boolean Contains TRUE if this store is Exchange User Primary Store or Exchange Public Store or Exchange User Shared Store. Computed from ProviderUID. PR_MDB_PROVIDER
IsExchangePrimary RO Boolean Contains TRUE if this store is  Exchange User Primary Store. Computed from ProviderUID. PR_MDB_PROVIDER
IsExchangeShared RO Boolean Contains TRUE if this store is  Exchange User Shared Store. Computed from ProviderUID. PR_MDB_PROVIDER
IsExchangePublic RO Boolean Contains TRUE if this store is Exchange Public Store. Computed from ProviderUID. PR_MDB_PROVIDER
IsSupportsUnicode RO Boolean Indicates that STORE_UNICODE_OK exists in StoreSupportMask. Indicates that the message store supports Unicode storage. PR_STORE_SUPPORT_MASK
NoCache RW Boolean If Microsoft Office Outlook is in Cached Exchange Mode and a store has been opened in cached mode, instructs to open an item or a folder on the remote (Microsoft Exchange Server) store.  
RootFolder RO TMAPIFolder Every message store has at least a root folder. The root folder appears at the top of the hierarchy and contains messages and other folders. There is only one root folder for each message store.  
TreeFolder RO TMAPIFolder Interpersonal message (IPM) folder subtree in the message store's folder tree. Knows also as "Top of Personal Folders" for user store and "Top of Public Folders" for public (multi-user) store. PR_IPM_SUBTREE_ENTRYID,
PR_IPM_PUBLIC_FOLDERS_ENTRYID
Inbox RO TMAPIFolder Returns a TMAPIFolder object representing the current users Inbox folder.  
Outbox RO TMAPIFolder Returns a TMAPIFolder object representing the current users Outbox folder.  
Trashbox RO TMAPIFolder Returns a TMAPIFolder object representing the current users Deleted Items folder.  
SentItems RO TMAPIFolder Returns a TMAPIFolder object representing the current users Sent Items folder.  
         

Methods

Name Description
GetFolderType Determines Folder type (TMAPIFldType) as Inbox, Calendar, Tasks, etc, by Folder ID.
   

Top


constructor Create(EntryID: TBytes; const MAPISession: TMAPISession);

description

Constructs an instance of the TMAPIStore class and initializes its values.

parameters

EntryID - Unique identifier ID (PR_ENTRYID) of store.
MAPISession - The active MAPI session.

Top


destructor Destroy;

description

Destroys the TMAPIStore class.

Top


function GetFolderType(const oEntryID: TBytes): TMAPIFldType;

description

Determines Folder type.

parameters

oEntryID- Unique identifier ID (PR_ENTRYID) of folder.

Top


Copyright © 2013 IMIBO
Privacy Statement