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

Article translations Article translations
Article ID: 908072 - View products that this article applies to.
Expand all | Collapse all

On This Page

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.
Collapse this tableExpand this table
Parameter nameParameter typeDescription
lpszServerNameInputThis parameter specifies a string that contains the distinguished name of the server.
lpguidMdbInputThis parameter specifies a GUID that contains the value of the objectGUID attribute of the information store.
lppTableOutputThis parameter specifies a MAPI IMAPITable interface that contains the information about all the mailboxes on the server that is specified in lpszServerName.
ulFlagsInputThis 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.
uOffsetInputThis 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.
Collapse this tableExpand this table
Parameter nameParameter typeDescription
lpszServerNameInputThis parameter specifies a string that contains the distinguished name of the server.
lpguidMdbInputThis parameter specifies a GUID that contains the value of the objectGUID attribute of the information store.
lppTableOutputThis parameter specifies a MAPI IMAPITable interface that contains the information about all the public folders on the server that is specified in lpszServerName.
ulFlagsInputThis 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.
uOffsetInputThis 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 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 software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

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.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Emsmdb32.dll6.5.7651.10981,50415-Mar-200603:21x86

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);

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

Properties

Article ID: 908072 - Last Review: September 3, 2013 - Revision: 4.0
Applies to
  • Microsoft Exchange Server 2003 Standard Edition
  • Microsoft Exchange Server 2003 Enterprise Edition
Keywords: 
kbautohotfix kbhotfixserver kbqfe kbfix kbbug KB908072

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com