Windows2003-3790/inetcore/outlookexpress/mapitest/sample.cli
2020-09-30 16:53:55 +02:00
..
_scode.h First commit 2020-09-30 16:53:55 +02:00
_tags.h First commit 2020-09-30 16:53:55 +02:00
bitmap.c First commit 2020-09-30 16:53:55 +02:00
bitmap.h First commit 2020-09-30 16:53:55 +02:00
client.c First commit 2020-09-30 16:53:55 +02:00
client.h First commit 2020-09-30 16:53:55 +02:00
client.ico First commit 2020-09-30 16:53:55 +02:00
client.rc First commit 2020-09-30 16:53:55 +02:00
client2.ico First commit 2020-09-30 16:53:55 +02:00
envelope.bmp First commit 2020-09-30 16:53:55 +02:00
makefile First commit 2020-09-30 16:53:55 +02:00
mapidbg.c First commit 2020-09-30 16:53:55 +02:00
pdkver.h First commit 2020-09-30 16:53:55 +02:00
pvalloc.c First commit 2020-09-30 16:53:55 +02:00
pvalloc.h First commit 2020-09-30 16:53:55 +02:00
readme.txt First commit 2020-09-30 16:53:55 +02:00
smapi.h First commit 2020-09-30 16:53:55 +02:00
sources First commit 2020-09-30 16:53:55 +02:00

Sample Simple MAPI Client


The Simple.Cli sample application illustrates using Simple MAPI functions.

The sample is a very simple mail client. Using it is intuitive and
straightforward.

To run this application, you have to have MAPI run-time binaries installed on
your system. For installation instructions, see the readme.wri in the
mstools\mapi\ directory.

When writing simple MAPI applications, the addresses of all of the simple
MAPI functions has to be obtained explicitly (using GetProcAddress), as
opposed to linking to the import library for MAPI.DLL.

If sending/receiving mail is not the primary function of your application, you
can test presence of simple MAPI in a system without incurring high cost of
trying to load a DLL. You can test the value of the MAPI variable. It is 1 if
simple MAPI is installed. The variable is located in the [mail] section of
win.ini on 16-bit Windows and Windows NT version 3.51 and earlier and under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem in the
registry on Windows 95 and Windows NT 4.0 and later.

Known Problems
--------------

When you Reply All to a message that you sent to yourself, your name will
appear twice in the To well. This is caused by the fact that Simple MAPI
does not expose either search key or a way to compare entry IDs, so there is
no safe way to remove duplicates from the recipient list.