PC MAPI: How to Determine if Simple MAPI Is Available

Last reviewed: December 12, 1995
Article ID: Q141061
The information in this article applies to:
  • Microsoft Mail for PC Networks, versions 3.0, 3.2, and 3.5

SUMMARY

Before you start a Simple Messaging Application Programming Interface (MAPI) session with a MAPI application, you may need to determine if Simple MAPI is available on the system.

One way to see if Simple MAPI is available is to check the [Mail] section in the WIN.INI file for the MAPI entry. This entry will have a value of 1 if Simple MAPI is installed; 0 if it is not installed. For example, the entry will be the following if Simple MAPI is available:

   [Mail]
   MAPI=1

MORE INFORMATION

With the release of MAPI version 1.0, you should also check the MAPIX entry for the availability of Extended MAPI, CMC entry for Common Mail Calls, and OLEMessaging for OLE Messaging.

For example, the following entries are for Extended MAPI:

   [Mail]

   MAPI=1
   MAPIX=1
   CMC=1
   OLEMessaging=1

NOTE: Microsoft Windows 95 and Microsoft Windows NT use the WIN.INI file for backward compatibility.


Additional reference words: 3.00 3.20 3.50 1.00 visual c mapi0 mapi1
kbhowto
KBCategory: kbtool
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: December 12, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.