Some MAPI Constants
[This is now documented here: https://msdn.microsoft.com/en-us/library/ff960239.aspx ]
Dmitry pointed out that some time in the last couple MAPI documentation refreshes, we added documentation for a few interfaces but forgot to define their associated guids. We’ve got a bug tracking this and plan to fix it in a future reference, but in the mean time, here are the constants we’ve identified so far as missing.
// IMAPISync
DEFINE_GUID(IID_IMAPISync, 0x5024a385, 0x2d44, 0x486a, 0x81, 0xa8, 0x8f, 0xe, 0xcb, 0x60, 0x71, 0xdd);
// IMAPISyncProgressCallback
DEFINE_GUID(IID_IMAPISyncProgressCallback, 0x5024a386, 0x2d44, 0x486a, 0x81, 0xa8, 0x8f, 0xe, 0xcb, 0x60, 0x71, 0xdd);
// IMAPISecureMessage
DEFINE_GUID(IID_IMAPISecureMessage, 0x253cc320, 0xeab6, 0x11d0, 0x82, 0x22, 0, 0x60, 0x97, 0x93, 0x87, 0xea);
// IMAPIGetSession
DEFINE_GUID(IID_IMAPIGetSession, 0x614ab435, 0x491d, 0x4f5b, 0xa8, 0xb4, 0x60, 0xeb, 0x3, 0x10, 0x30, 0xc6);
Please let me know if you uncover any other constants which we left out.
Enjoy!
Comments
Anonymous
December 27, 2010
Hi Steve, just tried to QI on an IMsgStore in an Outlook 2010 COM-Addin for IMAPISync and got E_NOINTERFACE. This is my GUID definition which looks identical to yours: DEFINE_GUID(IID_IMAPISync, 0x5024a385, 0x2d44, 0x486a, 0x81, 0xa8, 0x8f, 0x0e, 0xcb, 0x60, 0x71, 0xdd); The store is my default mailbox store, connected online with Exchange 2010 SP1. Should that store implement that interface? Regards, SvenAnonymous
December 29, 2010
The Exchange and PST providers do not implement that interface. That documentation was intended for a store provider developer to implement the interface. Outlook will use the interface if it finds it.Anonymous
January 10, 2011
Hi Steve! What about Outlook 2003 and Outlook 2007, will they use IMAPISync? Thank you, SergeyAnonymous
January 24, 2011
No - 2010 only.Anonymous
January 25, 2011
How we can reflect the synchronization progress in the Outlook 2003 or Outlook 2007?Anonymous
July 07, 2011
Stephen, I just posted a question on the outlook developer's forum about trying to use IMAPIGetSession. It's not working for me. I get an E_NOINTERFACE back from IMAPISupport::QueryInterface. Any thoughts on what I'm doing wrong? Here's the forum link. social.msdn.microsoft.com/.../72659d02-6f87-474d-a36f-6d2279b925ee Thanks ChuckAnonymous
July 12, 2011
Closing the loop, IID_IMAPIGetSession is only available on the support object passed to transport providers via TransportLogon. It is not available to address book or message store providers.