LazyMAPI

The TMAPIStores - represents a collection of MAPI Message Stores

unit: MAPIStore.pas
file path: ..\Library\Helpers
version: 2014.хх
uses
Windows, Types, SysUtils, ExtendedMAPI, EDK, IMIEMTypes, MAPITable, MAPIProperty, MAPIFolder;

 

Unit: MAPIStore.pas
Type: Class
Inherited from: TMAPITable
 
 
TMAPIStores = class(TMAPITable)
  private
    ...
    ...
  protected
    ...
    ...
  public
    constructor Create(const oMAPISession: IMAPISession); reintroduce;
    destructor Destroy; override;
    
    property Count;
    property Row[const Index: Integer]: TMAPIStoresField read GetMAPIStoresField;
    property ColumnsTags;
    property BatchLoad;
    property RawTable;
    property IsFiltered;
 
    property MAPISession;
    procedure Refresh(const KeepSortOrder: Boolean = True); override;
    function GetDefaultStore(const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
    function GetStoreFromEntryID(const EntryID: TBytes; const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
    function GetExchangePrivateStore(const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
    function GetExchangePublicStore(const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
    function AddPSTStore(const Path: AnsiString; const DisplayName: AnsiString = ''; const Password: AnsiString = '';
      const Encrypt: TPSTEncryption = psteNoEncrypt; const DialogHandle: HWND = 0; const AllowDialog: Boolean = True): TMAPIStore;
    function GetExchangeOtherUserStore(const SmtpEmailAddress: string; const DialogHandle: HWND = 0;
      const OpenStoreFlags: ULONG = OPENSTORE_USE_ADMIN_PRIVILEGE or OPENSTORE_TAKE_OWNERSHIP or OPENSTORE_HOME_LOGON): TMAPIStore;
    function InstanceKeyToEntryID(const InstanceKey: TBytes): TBytes; override;
  end;

Constructors

Name Description
Create(const oMAPISession: IMAPISession); reintroduce; Creates and initializes object instance from IMAPISession

Properties

Name Access Type Description
Count RO Integer Inherited from TMAPITable
Row RO TMAPIStoresField Returns a singe row with Store data
ColumnsTags RW TCardinalDynArray Inherited from TMAPITable
BatchLoad RW word Inherited from TMAPITable
WaitForOnBusy RW Cardinal Inherited from TMAPITable
RawTable RO IMAPITable Inherited from TMAPITable
IsFiltered RO Boolean Inherited from TMAPITable
MAPISession RO IMAPISession Inherited from TMAPIBase
TableType RO TTableType Inherited from TMAPIBase
TableStatus RO TTableStatus Inherited from TMAPIBase
AllowEvents RW Boolean Inherited from TMAPIBase

Methods

Name Description
Refresh Delete rows that are loaded into memory. It is possible to keep the sorting.

procedure Refresh(const KeepSortOrder: Boolean = True); override;
GetDefaultStore Returns the default store

function GetDefaultStore(const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
GetStoreFromEntryID Returns the store by its PR_ENTRYID

function GetStoreFromEntryID(const EntryID: TBytes; const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
GetExchangePrivateStore Returns the Exchange Pribate store (Exchange Mailbox)

function GetExchangePrivateStore(const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
GetExchangePublicStore Returns the Public Folders store

function GetExchangePublicStore(const DialogHandle: HWND = 0; const OnLine: Boolean = True; const AllowDialog: Boolean = True): TMAPIStore;
AddPSTStore Adds a PST store to the given profile. Returns an TMAPIStore object.

function AddPSTStore(const Path: AnsiString; const DisplayName: AnsiString = ''; const Password: AnsiString = '';
const Encrypt: TPSTEncryption = psteNoEncrypt; const DialogHandle: HWND = 0; const AllowDialog: Boolean = True): TMAPIStore;
GetExchangeOtherUserStore Returns TMAPIStore object representing the given user's mailbox.

function GetExchangeOtherUserStore(const SmtpEmailAddress: string; const DialogHandle: HWND = 0;
const OpenStoreFlags: ULONG = OPENSTORE_USE_ADMIN_PRIVILEGE or OPENSTORE_TAKE_OWNERSHIP or OPENSTORE_HOME_LOGON): TMAPIStore;
InstanceKeyToEntryID Convers PR_INSTANCE_KEY to PR_ENTRYID

Top


Copyright © 2021 IMIBO
Privacy Statement