How to decrypt and un-sign a message programmatically using the OOM

Overview This blog post demonstrates how to decrypt and un-sign a message programmatically using the Outlook Object Model.   Encrypt email messages When you need to protect the privacy of an email message, encrypt it. Encrypting an email message in Outlook means it’s converted from readable in plain text into scrambled cipher text. Only the…

MAPI Utility to add Ldap Address Books to existing Outlook profiles

Current version:   I’ve had quite a few requests recently for a tool that can configure Ldap (Internet) Address Books in existing Outlook profiles. Since I don’t know of any tool to do this except for the good ole PRF import, I’ve decided to write some code for posterity. Unlike the PRF import, this…


Programmatically add Links to Outlook ContactItems in Outlook 2013

With the Links interface now deprecated in the Outlook 2013 Interop, a lot of people still want to be able to link contacts. If you wish to do so and are willing to go the extra mile, you should be able to link contacts by setting/modifying these four properties using Extended MAPI: 1.{00062008-0000-0000-C000-000000000046}/853A101E Named…


MAPI Application: Enable or disable Cached Mode in the default Outlook profile or specific profiles

I wrote this MAPI application for a customer the other day. The application uses the Outlook 2010 MAPI headers and some of the header files shipped with MFCMAPI. They are all included in the attached archive. You can run the application to enable or disable cached mode by using the –E, respectively the –D switches….


MAPI Application: How to programmatically create a blank MAPI profile

Note: You need to use the Outlook MAPI header files with this code.   1: // MAPICreateBlankProfile.cpp : Defines the entry point for the console application. 2: // 3:  4: #include "stdafx.h" 5: #include <iostream> 6: #include <InitGuid.h> 7: #define USES_IID_IMAPIProp 8: #include <wchar.h> 9: #include <winerror.h> 10: #include <Mapix.h> 11: #include <mapiutil.h> 12: #include…