PC MAPI: MAPIFindNext Not Recognizing MAPISaveMail Message IDs

Last reviewed: November 1, 1995
Article ID: Q107755
The information in this article applies to:

  - Microsoft Mail for Windows, versions 3.0, 3.0b, and 3.2

SUMMARY

The Messaging Application Program Interface (MAPI) MAPIFindNext function may not find a MAPISaveMail ID when the last 24 characters of that message ID contain nonzero values.

MORE INFORMATION

MAPISaveMail saves a message ID with the first 16 characters containing possible nonzero values. The remaining 24 characters always contain zero values. When MAPIFindNext is used to search through messages, it will not find a MAPISaveMail message ID if the last 24 characters of that message ID contain nonzero values. The characters beyond 16 characters contain information MAPI uses to speed up MAPIFindNext calls.

In order to access a message saved with MAPISaveMail, use MAPIReadMail. The first 16 bytes is the only information necessary for MAPIReadMail to open the message.


Additional reference words: 3.00 3.00b 3.20
KBCategory: kbprg kbtlc
KBSubCategory: MailPCMAPI


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 1, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.