RDOExchangeManageStore object

 

RDOExchangeManageStore object wraps the functionality of the IExchangeManageStore, IExchangeManageStore3 and IExchangeManageStore4 Extended MAPI objects. .

 

Returned by:

RDOExchangeMailboxStore.ExchangeManageStore

RDOExchangePublicFoldersStore.ExchangeManageStore

 

The example below retrieves the list of mailboxes hosted on the same Exchanger server as the default store in the current profile.

skPrimaryExchangeMailbox = 3
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Store = Session.Stores.DefaultStore
if (Store.StoreKind = skPrimaryExchangeMailbox) Then
    set XMS = Store.ExchangeManageStore
    set Table = XMS.GetMailboxTable("") 'use the current store's server DN
    set Recordset = Table.ExecSQL("SELECT ""http://schemas.microsoft.com/mapi/proptag/0x3001001E"" AS PR_DISPLAY_NAME, " & _
                                                       " ""http://schemas.microsoft.com/mapi/proptag/0x3003001E"" AS PR_EMAIL_ADDRESS from Table"
)
    while not Recordset.EOF
        Debug.Print(Recordset.Fields("PR_DISPLAY_NAME").Value & " - " & Recordset.Fields("PR_EMAIL_ADDRESS").Value)
        Recordset.MoveNext
    wend
End If

 


Derived from: IDispatch


Methods


CreateStoreEntryID(MsgStoreDN, MailboxDN, ulFlags)

 

Combines the store DN with the mailbox DN to construct a store entry id that can be used to call RDOSession.GetStoreFromID.

Corresponds to the IExchangeManageStore::CreateStoreEntryID MAPI method.

 

MsgStoreDN - Store DN. Must end with "/cn=Microsoft Private MDB"

MailboxDN - mailbox DN (just the EX type address)

ulFlags - a combination of rdoCreateStoreEntryIDFlags enums (see below):

 

OPENSTORE_USE_ADMIN_PRIVILEGE (0x00000001)
OPENSTORE_PUBLIC (0x00000002)
OPENSTORE_HOME_LOGON (0x00000004)
OPENSTORE_TAKE_OWNERSHIP (0x00000008)
OPENSTORE_OVERRIDE_HOME_MDB (0x00000010)
OPENSTORE_TRANSPORT (0x00000020)
OPENSTORE_REMOTE_TRANSPORT (0x00000040)
OPENSTORE_INTERNET_ANONYMOUS (0x00000080)
OPENSTORE_ALTERNATE_SERVER (0x00000100)
OPENSTORE_IGNORE_HOME_MDB (0x00000200)
OPENSTORE_NO_MAIL (0x00000400)
OPENSTORE_OVERRIDE_LAST_MODIFIER (0x00000800)
OPENSTORE_CALLBACK_LOGON (0x00001000)
OPENSTORE_LOCAL (0x00002000)
OPENSTORE_FAIL_IF_NO_MAILBOX (0x00004000)
OPENSTORE_CACHE_EXCHANGE (0x00008000)
OPENSTORE_CLI_WITH_NAMEDPROP_FIX (0x00010000)
OPENSTORE_ENABLE_LAZY_LOGGING (0x00020000)
OPENSTORE_CLI_WITH_REPLID_GUID_MAPPING_FIX (0x00040000)
OPENSTORE_NO_LOCALIZATION (0x00080000)
OPENSTORE_RESTORE_DATABASE (0x00100000)
OPENSTORE_XFOREST_MOVE (0x00200000)

 

 

EntryIDFromSourceKey(FolderSourceKey, MessageSourceKey)

 

Returns an entry id of a message or a folder given the value of the PR_SOURCE_KEY property of the message (MessageSourceKey parameter) and its parent folder (FolderSourceKey parameter).

Both parameters must be hex strings.

When creating a folder entry id, MessageSourceKey parameter must be "".

Corresponds to the IExchangeManageStore::EntryIDFromSourceKey MAPI method.

 

FolderSourceKey - string. The hex representation of the folder entry id.

MessageSourceKey - string. The hex representation of the message entry id. Can be "" if the method is being called to create the entry id of a folder.

 

 

GetMailboxTable(ServerName, Offset)

 

Returns MAPITable object representing the mailboxes hosted by the specified Exchange server.

Corresponds to the IExchangeManageStore::GetMailboxTable and IExchangeManageStore3::GetMailboxTableOffset MAPI methods.

 

ServerName - optional, string. If an empty string is passed, the list of mailboxes is retrieved from the current store.

Offset - optional, integer. The returned table has a limit of 65535 rows (MAPI limit). For servers with a large number of mailboxes, specify the offset from which the mailboxes will be returned.

 

see example above

GetPublicFolderTable(ServerName, Offset)

 

Returns MAPITable object representing the public folders hosted by the specified Exchange server.

Corresponds to the IExchangeManageStore::GetPublicFolderTable and IExchangeManageStore4::GetPublicFolderTableOffset MAPI methods.

 

ServerName - optional, string. If an empty string is passed, the list of public folders is retrieved from the current store.

Offset - optional, integer. The returned table has a limit of 65535 rows (MAPI limit). For servers with a large number of public folders, specify the offset from which the public folders will be returned.