Deleting a Message
The general approach to deleting a message is as follows (details are in the examples below)
- Log on to MAPI to get a session handle
- Call MAPIFindNext to get the message ID of the message
- Call MAPIDeleteMail, passing the message ID as an argument
- Log off MAPI