Article ID: 291794 - View products that this article applies to.
This article was previously published under Q291794
The Microsoft Foundation Classes MAPI (MFCMAPI) sample demonstrates a wide variety of Extended MAPI coding techniques.
MFCMAPI began as a learning project to see what was possible with MAPI, and over time, the learning project has developed into a sample MAPI client that is on a par with the Mdbvu32.exe utility.
The MFCMAPI user interface can display all the folders and the subfolders that are in any message store. It can also display any address book that is loaded in a profile.
A Microsoft Visual C++ Microsoft Foundation Classes (MFC) project, MFCMAPI is designed as a series of MFC dialog boxes that implement a directory hierarchy in the left pane and a property list in the right pane. Every dialog box has a number of menu items that you can use to act upon the active items. This includes an empty test function that you can use to host test code. For details on the dialog boxes and their corresponding classes, see the Readme.txt file that is included with the project.
To download the latest version of MFCMAPI, visit the following Web site:
http://www.codeplex.com/MFCMAPIMFCMAPI has been renamed Microsoft Exchange Server Messaging API (MAPI) Editor, and is now available for download as a tool for Microsoft Exchange Server. For more information about Exchange Server tools, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/exchange/bb288488.aspxTo download MAPI Editor, visit the following Microsoft Web site:
Generic MAPI functionsMost of the following functions are contained in the MAPIFunctions.cpp file:
IMAPIAdviseSink implementationThe IMAPIAdviseSink sample contains two implementations of the IMAPIAdviseSink interface; one for simple new mail notification, and one for more complex table notification.
Note The directory hierarchy views in MFCMAPI do not take advantage of notifications. There is a Refresh View menu command on the Actions menu for most dialog boxes that use the directory hierarchy view.
MAPI Form Viewer implementationThe MAPI Form Viewer sample contains a class that implements the IMAPIMessageSite, IMAPIViewContext, and IMAPIViewAdviseSink interfaces. Together, these make for a MAPI Form Viewer implementation. The code that uses the Form Viewer is in the OpenMessageNonModal function that is contained in the MAPIFunctions.cpp file.
For more information about another implementation of a MAPI Form Viewer, click the following article number to view the article in the Microsoft Knowledge Base:
230770Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
(http://support.microsoft.com/kb/230770/ )FrmVwr.exe extended MAPI Form Viewer
Article ID: 291794 - Last Review: January 6, 2009 - Revision: 8.2
Contact us for more help