Peter,
Perhaps we should continue this conversation offline - my email address is irelam@telus.net The Mapi.dialog flag is only to access the proprietary Microsoft MSExchange and the Outlook client interface, for things such as the Mail folders and address books. To use this would require the writing of a whole email client. The best you could do is to write a POP3/IMAP4 client to fetch email from a server. Address books are in all cases proprietary/copyrite protected so accessing them programatically is next to impossible. MsExchange is a database application based on MS Sql, and needs database programming techniques.
The non-Microsoft MAPI dlls, including mine, are only intended to be used by file sending functions such as Send_To in Windows Explorer
Perhaps you could indicate to me what you are trying to achieve, in an offline conversation, and I may be able to offer some suggestions.
Cheers
Martin