Microsoft KB Archive/908072

= A new MAPI interface is available to let you retrieve mailbox tables on a per-store basis in Exchange Server 2003 =

Article ID: 908072

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Standard Edition
 * Microsoft Exchange Server 2003 Enterprise Edition

-





INTRODUCTION
This article describes a new MAPI interface that you can use to retrieve mailbox tables on a per-store basis in Microsoft Exchange Server 2003.



MORE INFORMATION
When you use the IExchangeManageStore::GetMailboxTable method or the IExchangeManageStore3.GetMailboxTableOffset method to obtain the mailbox table from a server that is running Exchange Server 2003, the mailbox table that is returned by these methods appears to contain some duplicate rows. You experience this issue if a recovery storage group is mounted on the server on which you run these methods.

This issue occurs because GetMailboxTable and GetMailboxTableOffset do not distinguish between mailboxes from an online mailbox store and mailboxes from a recovery storage group. Therefore, the mailbox table that these methods returns contains all the mailboxes from the particular server. These two methods do not provide a means to filter the returned results to let you determine which mailbox entries are from a recovery storage group.

This hotfix introduces a new interface that is named IExchangeManageStore5. This new interface exposes new functionality to let you retrieve a mailbox table that contains only the mailboxes from a particular mailbox store.

IExchangeManageStore5 contains the following two new methods.

IExchangeManageStore5::GetMailboxTableEx
The GetMailboxTableEx method obtains information about all the mailboxes on a server in a particular store. HRESULT GetMailboxTableEx( LPSTR lpszServerName,     LPGUID lpguidMdb,      LPMAPITABLE FAR * lppTable,    ULONG ulFlags,  UINT uOffset );

Parameters
This method supports the following parameters.

IExchangeManageStore5::GetPublicFolderTableEx
The GetPublicFolderTableEx method obtains information about all the public folders on a server in a particular store. HRESULT GetPublicFolderTableEx( LPSTR lpszServerName,     LPGUID lpguidMdb,      LPMAPITABLE FAR * lppTable,    ULONG ulFlags,  UINT uOffset );

Parameters
This method supports the following parameters.

Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
You must be running Microsoft Exchange Server 2003 Service Pack 2 (SP2) to apply this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

836993 How to obtain the latest service packs for Exchange Server 2003

Restart requirement
You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

Hotfix installation information
After you apply this hotfix, you must enable the new interface. To do this, follow these steps.

Step 1: Add the declaration for IExchangeManageStore5 interface to edkmdb.h
Add the following to edkmdb.h. /* * * &quot;IExchangeManageStore5&quot; Interface Declaration * * Used for store management functions. * *---*/

MAPIMETHOD(GetMailboxTableEx)                                  \ (THIS_ LPSTR                       lpszServerName,             \                LPGUID                      lpguidMdb,                  \                LPMAPITABLE FAR *           lppTable,                   \                ULONG                       ulFlags,                    \                UINT                        uOffset) IPURE;             \ MAPIMETHOD(GetPublicFolderTableEx)                             \ (THIS_ LPSTR                       lpszServerName,             \                LPGUID                      lpguidMdb,                  \                LPMAPITABLE FAR *           lppTable,                   \                ULONG                       ulFlags,                    \                UINT                        uOffset) IPURE;             \
 * 1) define EXCHANGE_IEXCHANGEMANAGESTORE5_METHODS(IPURE)                  \

DECLARE_MAPI_INTERFACE_(IExchangeManageStore5, IUnknown) {   MAPI_IUNKNOWN_METHODS(PURE) EXCHANGE_IEXCHANGEMANAGESTORE_METHODS(PURE) EXCHANGE_IEXCHANGEMANAGESTORE2_METHODS(PURE) EXCHANGE_IEXCHANGEMANAGESTORE3_METHODS(PURE) EXCHANGE_IEXCHANGEMANAGESTORE4_METHODS(PURE) EXCHANGE_IEXCHANGEMANAGESTORE5_METHODS(PURE) };
 * 1) undef      INTERFACE
 * 2) define     INTERFACE  IExchangeManageStore5
 * 1) undef IMPL
 * 2) define IMPL

DECLARE_MAPI_INTERFACE_PTR(IExchangeManageStore5, LPEXCHANGEMANAGESTORE5);

Step 2: Add the definition of IID_IExchangeManageStore5 to edkguid.h
Add the following to edkguid.h. DEFINE_GUID(IID_IExchangeManageStore5,0x7907dd18, 0xf141, 0x4676, 0xb1, 0x02, 0x37, 0xc9, 0xd9, 0x36, 0x34, 0x30);



MORE INFORMATION
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

817903 New naming schema for Exchange Server software update packages

Additional query words: XADM

Keywords: kbhotfixserver kbqfe kbfix kbbug kbpubtypekc KB908072

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.