Outlook: how to programmatically read auto archive settings

Auto archive is a purely Outlook feature (i.e. the settings are not stored in the mailbox), and the settings are not exposed in the object model.  The settings are stored in the registry, however, so it is possible to read the information from there.  Note though, that this is completely unsupported (just as we do…

6

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….

0

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…

0

MAPI Application: How to remove an existing additional Exchange mailbox from a MAPI profile in Outlook

Following my post How to add more Exchange mailboxes to a MAPI profile in Outlook 2010 (KB 171636) you can find below a code sample that allows you to remove an existing additional Exchange Mailbox from a MAPI profile. //RemoveMailbox.cpp Defines the entry point for the console application. #include "stdafx.h" //The following headers may be…

0