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.
Parameter name | Parameter type | Description |
lpszServerName | Input | This parameter specifies a string that contains the distinguished name of the server. |
lpguidMdb | Input | This parameter specifies a GUID that contains the value of the objectGUID attribute of the information store. |
lppTable | Output | This parameter specifies a MAPI IMAPITable interface that contains the information about all the mailboxes on the server that is specified in lpszServerName. |
ulFlags | Input | This represents a defined value that specifies whether the server name is in Unicode format. A value of MAPI_UNICODE indicates that the server name is in Unicode format. A value of 0 (zero) indicates that the server name is in ASCII format. |
uOffset | Input | This parameter indicates the offset from which to start the table. Use this parameter for stores that contain more than 64K of mailboxes. |
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.
Parameter name | Parameter type | Description |
lpszServerName | Input | This parameter specifies a string that contains the distinguished name of the server. |
lpguidMdb | Input | This parameter specifies a GUID that contains the value of the objectGUID attribute of the information store. |
lppTable | Output | This parameter specifies a MAPI IMAPITable interface that contains the information about all the public folders on the server that is specified in lpszServerName. |
ulFlags | Input | This represents a defined value that specifies whether the server name is in Unicode format. A value of MAPI_UNICODE indicates that the server name is in Unicode format. A value of 0 (zero) indicates that the server name is in ASCII format. |
uOffset | Input | This parameter indicates the offset from which to start the table. Use this parameter for stores that contain more than 64K of public folders. |
Hotfix information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Exchange Server 2003 service pack that contains this hotfix.
To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
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.
|
Emsmdb32.dll | 6.5.7651.10 | 981,504 | 15-Mar-2006 | 03:21 | x86 |
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.
/*------------------------------------------------------------------------
*
* "IExchangeManageStore5" Interface Declaration
*
* Used for store management functions.
*
*-----------------------------------------------------------------------*/
#define EXCHANGE_IEXCHANGEMANAGESTORE5_METHODS(IPURE) \
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; \
#undef INTERFACE
#define INTERFACE IExchangeManageStore5
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)
};
#undef IMPL
#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);