XCLN: MAPIFindNext Fails to Retrieve Message Identifiers (159287)
The information in this article applies to:
- Microsoft Exchange Client 4.0
- Microsoft Exchange Windows NT client 4.0
This article was previously published under Q159287 SYMPTOMS
Using the simple MAPI function MAPIFindNext in MAPI version 1.0 may fail to
retrieve the next (or first) message identifier of a specified type of
incoming message. The following is the resulting return code of the
MAPIFindNext call:
MAPI_E_NO_MESSAGES
CAUSE
When you use MAPI version 1.0, choosing the value "IPM." for parameter
lpszMessageType in the MAPIFindNext function call does not retrieve the
next message identifier of the specified type (IPM) of incoming message.
This value has been used successfully in previous versions of simple MAPI
to enumerate all messages of a given message type.
WORKAROUND
Instead of using "IPM." as value to enumerate messages of an IPM message
type, specify "NULL" (without the quotation marks) in the lpszMessageType
parameter of the MAPIFindNext function call.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft Exchange
clients, version 4.0, listed at the beginning of this article. This problem
was corrected in Microsoft Exchange Server 4.0 U.S. Service Pack 4. For
information on obtaining the service pack, query on the following word in
the Microsoft Knowledge Base (without the spaces):
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbbug kbfix kbusage KB159287 |
---|
|