• Sign in
 
  •  
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...

  • Blog Home
  • About
  • Email Blog Author
  • Share this
  • RSS for posts
  • Atom
  • RSS for comments
  • CDO (25)
  • Code Snippet (43)
  • Custom Providers (17)
  • Debugging (7)
  • DevMsgTeam (301)
  • Documentation (109)
  • DST (8)
  • EWS (7)
  • Exchange (109)
  • Gotchas (97)
  • Hotfix (28)
  • MAPI (240)
  • MAPI Download (54)
  • MFCMAPI (101)
  • MSDN (59)
  • Non Dev (11)
  • OOM (17)
  • Outlook (171)
  • Outlook 2007 Auxiliary Reference (45)
  • Outlook Integration API (12)
  • Protocol Docs (20)
  • PST/OST (23)
  • Referrals (8)
  • Vista (12)
  • WrapPST (18)
Links:
  • Download MFCMAPI
  • MFCMAPI on Facebook
  • Troubleshooting Outlook Crashes
  • Office Update Center
  • Developer Messaging Team Blog
This site is provided "AS IS" with no warranties, and confers no rights. Use of included code samples are subject to the terms specified in the Terms of Use.
Archives
  • May 2013 (3)
  • April 2013 (1)
  • March 2013 (2)
  • February 2013 (2)
  • January 2013 (2)
  • December 2012 (4)
  • November 2012 (2)
  • October 2012 (2)
  • September 2012 (1)
  • August 2012 (3)
  • June 2012 (2)
  • May 2012 (1)
  • April 2012 (3)
  • March 2012 (3)
  • February 2012 (3)
  • January 2012 (1)
  • December 2011 (3)
  • November 2011 (1)
  • October 2011 (3)
  • September 2011 (1)
  • August 2011 (1)
  • July 2011 (4)
  • June 2011 (3)
  • May 2011 (3)
  • April 2011 (3)
  • March 2011 (5)
  • February 2011 (1)
  • January 2011 (2)
  • December 2010 (1)
  • November 2010 (4)
  • October 2010 (1)
  • September 2010 (3)
  • August 2010 (5)
  • July 2010 (3)
  • June 2010 (3)
  • May 2010 (1)
  • April 2010 (3)
  • March 2010 (3)
  • February 2010 (3)
  • January 2010 (2)
  • December 2009 (3)
  • November 2009 (5)
  • October 2009 (4)
  • September 2009 (5)
  • August 2009 (5)
  • July 2009 (11)
  • June 2009 (6)
  • May 2009 (5)
  • April 2009 (3)
  • March 2009 (18)
  • February 2009 (10)
  • January 2009 (3)
  • December 2008 (2)
  • November 2008 (2)
  • October 2008 (5)
  • September 2008 (4)
  • August 2008 (10)
  • July 2008 (6)
  • June 2008 (8)
  • May 2008 (2)
  • April 2008 (4)
  • March 2008 (2)
  • February 2008 (2)
  • January 2008 (5)
  • December 2007 (3)
  • November 2007 (2)
  • October 2007 (3)
  • September 2007 (1)
  • August 2007 (4)
  • July 2007 (5)
  • June 2007 (3)
  • May 2007 (4)
  • April 2007 (1)
  • March 2007 (6)
  • February 2007 (3)
  • January 2007 (2)
  • December 2006 (4)
  • November 2006 (3)
  • October 2006 (1)
  • August 2006 (1)
  • June 2006 (5)
  • May 2006 (5)
  • December 2005 (1)
  • November 2005 (4)
  • October 2005 (2)
  • September 2005 (1)
  • April 2005 (3)
  • December 2004 (2)
  • September 2004 (2)
  • August 2004 (3)
  • July 2004 (3)

Enter the 64 Bit MAPI Dragon

MSDN Blogs > SGriffin's MAPI Internals > Enter the 64 Bit MAPI Dragon

Enter the 64 Bit MAPI Dragon

Stephen Griffin - MSFT
13 Jul 2009 3:19 PM
  • Comments 19

Up until today, the first rule of 64 bit MAPI was we don’t talk about 64 bit MAPI. But now we can talk about it. 64 bit MAPI has arrived!

We just released the Outlook 2010 MAPI Reference today. If you develop MAPI based applications, you’ll want to get the updated MAPI Headers that come with it. You’ll need these if you want to rebuild your application for 64 bit. We’ve also prepared an article on building MAPI applications for both 32 bit and 64 bit platforms. This article is based in part on my experience building MFCMAPI as a 64 bit application. Since we don’t provide a 64 bit mapi32.lib, to build a 64 bit MAPI application you’re going to have to use explicit linking, building on the documentation we included in the Outlook 2007 MAPI reference.

Oh yeah – that reminds me – MFCMAPI builds as a 64 bit application! Actually, it’s been possible to build MFCMAPI as 64 bit for years. I slipped those project types in a long time ago and have been quietly maintaining them, even before I had an actual 64 bit build of MAPI I could test against. The next release of MFCMAPI will include a 64 bit build of the project, but if you want a 64 build now, just download the source and build it yourself.

Enjoy!

  • 19 Comments
Outlook, Documentation, MFCMAPI, DevMsgTeam
Comments
  • Stephen Griffin - MSFT
    16 Feb 2010 6:21 PM

    My code predates (and in some cases, informs) those new headers. Lemme know if you find something not working in 64 bit that would be fixed by adding _WIN64.

  • Lev
    16 Feb 2010 6:34 PM

    The only thing I see that would break would be if someone hits #defines below.  You are not using them now...  but mostly I was wondering about the best practices...

    #if defined (_WIN64) && defined (_AMD64_)

    #define szScCreateConversationIndex "ScCreateConversationIndex"

    #elif defined (_WIN32) && defined (_X86_)

    #define szScCreateConversationIndex "_ScCreateConversationIndex@16"

    #else

    #error "Unknown Platform: MAPI is currently supported on Win32/X86 and Win64/AMD64"

    #endif

    #if defined (_WIN64) && defined(_AMD64_)

    #define szHrDispatchNotifications "HrDispatchNotifications"

    #elif defined (_WIN32) && defined (_X86_)

    #define szHrDispatchNotifications "_HrDispatchNotifications@4"

    #else

    #error "Unknown Platform: MAPI is currently supported on Win32/X86 and Win64/AMD64"

    #endif

  • Stephen Griffin - MSFT
    17 Feb 2010 7:20 AM

    I just took a look at the project and _WIN64 does get defined for a 64 bit build. Check out the string for IDS_EDMAPIINITIALIZEFAILED which flips based on it.

  • Lev
    17 Feb 2010 8:40 PM

    _WIN64 is defined in MFCMAPI under Resource pre-processor( Properties->resources tab->preprocessor definitions). It's not defined under C++ pre-processor definitions ( so it would not be pulled into the code, I believe ).  In any case, your first reply pretty much answered my question.

    Thank you.

Page 2 of 2 (19 items) 12
Leave a Comment
  • Please add 1 and 2 and type the answer here:
  • Post
  • © 2013 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy & Cookies
  • Report Abuse
  • 5.6.426.415