Access 64 bit Outlook 2010 from 32 bit C++ application

Not open for further replies.



I have a 32 bit application running on a 64 bit Windows 7 machine. On this machine 64 bit Outlook 2010 is installed. My application need to detect Outlook installation and enumerate the Outlook profiles. It then creates a MAPI session and reads/modifies some items such as Calendar etc.

The application used to work fine on 32 bit machines with 32 bit Outlook. However, with 64 bit it is not able to get the profiles as it searches in " HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles" registry keys and profile related keys are in HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles. Please let me know how to access profile related registry keys in a 32 bit app for 64 bit Outlook 2010. Is there any other way apart from registry to enumerate profiles?

Secondly, will MAPI session and other things work from a 32 bit app for 64 bit Outlook? What other issues I can potentially face in my case and what are the best practices around this.


Dave V


First, if you are just reading registry keys and you are a 32 bit application you can disable registry redirection which willl allow you to enumerate the 64 bit registry keys instead of the registry keys in the Wow6432Node. For more information see this MSDN page:

** Please note - The only supported way to manipulate MAPI profiles is via MAPI.

You will not be able to use the MAPI subsystem from a 32 bit application if Outlook 64 bit is installed. This is because a 32 bit application cannot load 64 bit DLLs and vice versa. This is not a restriction of MAPI but of the OS.

" However, 32-bit processes cannot load 64-bit DLLs for execution, and 64-bit processes cannot load 32-bit DLLs for execution"

If you want to use MAPI from your application you will either need to use 32 bit Outlook 2010 or recompile your appliction for 64 bit.

If this post answers your question please mark it as the answer.
Not open for further replies.
Thread starter Similar threads Forum Replies Date
C MAPI to access a 64 bit Outlook from a 32 bit application; or access via ODBC Using Outlook 0
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
Jennifer Murphy Grant R/W (update) access to a friend Using Outlook 3
O The page that you are trying to access cannot be loaded. Using Outlook 0
T Render Outlook emails in MS access as they appear in Outlook Outlook VBA and Custom Forms 2
T Outlook "A program is trying to access Outlook" Using Outlook 3
GregS Can't access archive file Using Outlook 5
J What is the best EntryID format to set on MS Access table Outlook VBA and Custom Forms 3
J No access to a Database BCM BCM (Business Contact Manager) 3
R How can I access my emails from corrupt offline files of MS Outlook ? Using Outlook 1
V Change default default save location to Quick Access Using Outlook 1
R Quick Access view in File Explorer when saving attachments Using Outlook 0
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
J Open an outlook email by Subject on MS Access linked table with VBA Outlook VBA and Custom Forms 10
G Windows Update Causes BCM Database Access Problem? BCM (Business Contact Manager) 4
D populating listbox on custom form from Access Outlook VBA and Custom Forms 7
O Synchronize safe persons Outlook 2016 -> Outlook Web Access (OWA) Using Outlook 30
K How to access emails found to be located in "Top of Outlook data file"? Using Outlook 3
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
O Outlook Web Access - how to disable spam filter Using Outlook 6
T Lost access to remote BCM database BCM (Business Contact Manager) 4
F Outlook 2016 bulk email from access Outlook VBA and Custom Forms 3
J Programmatic access grayed out Using Outlook 10
Diane Poremsky Synchronize Quick Access Toolbar and Ribbons? New Articles 0
G Can't open .pst. Message could not access default folder (Outlook 2010 (.pst). Before that was backi Using Outlook 0
D Creating an outlook session from Access vba but run silently. With A specific profile Outlook VBA and Custom Forms 1
T Cannot access accounts in Outlook 2016 Using Outlook 1
B Can't expose sender email address when linking outlook to access Using Outlook 3
Diane Poremsky Change Outlook's Programmatic Access Options New Articles 0
S how to access the properties of a contact given distlist.member object Outlook VBA and Custom Forms 1
C OWA External Access - No URL / URL Invalid Exchange Server Administration 2
G Adding a contact to Outlook with a custom form using Access VBA Outlook VBA and Custom Forms 1
C Merging Word and Access into Outlook Using Outlook 4
I Outlook 2016 and Slow access to IMAP Using Outlook 0
B No permission to access Outlook.pst file Using Outlook 1
Norbert VBA Flag that would indicate the email was sent from Outlook to Access. Outlook VBA and Custom Forms 2
M Cannot access the Form Editor BCM (Business Contact Manager) 1
R The changing way to access information in Office 365 New Articles 0
M Modifying BCM Database using Access BCM (Business Contact Manager) 1
iwshim Skype tool bar in quick access ribon Using Outlook 1
JorgeDario restrict access to a certain folder with vba Outlook VBA and Custom Forms 3
U Cannot access fields at bottom of Outlook 2013 Contact Rec. Using Outlook 1
S Can't move the items. The item could not be moved. It was either already moved or deleted, or access Using Outlook 3
A Synchronize Access Table with Outlook Calendar Appointments Outlook VBA and Custom Forms 3
R Convert Access table to pst Using Outlook 1
A give User Read Only access to secondary mailbox in Exchange 2010 via AD Exchange Server Administration 1
F Get details of sent items with Access VBA Outlook VBA and Custom Forms 1
L Outlook Data Files command not working in the quick access bar Using Outlook 1
T Populating listbox with MS Access table Using Outlook 2
Hudas Hyperlink Saved Outlook Email to MS Access Table Using Outlook 4
Similar threads