Why do we have to create unique uuid for each interface in a idl ? For example in this interface there's a unique uuid for every interface in TradingLib. import "oaidl.idl"; [uuid(7C948DDC-8C22-46CF-91AD-1E043A0E1A10), object] interface IInventory : IUnknown { HRESULT GetStock([out, retval] long* pStock); HRESULT Buy([in] long quantity, [in] float rate); [...] read more
I have to support an old C++ program (I am not its author) that uses Extended MAPI to scan mail folders from Outlook 2007. Suddenly the software began meeting problems on one customer's computer by the following scenario: call of OpenMsgStore fails for some folders with code 0x80040102 (MAPI_E_NO_SUPPORT ). [...] read more
SHORT VERSION I am attempting to access the TimeZoneStruct using VSTO from an Outlook Appointment. The following error is thrown when attempting to access it. System.Runtime.InteropServices.COMException (0x80040102): Object does not support property "http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/82330102". Interestingly, I am able to get a similar property, TimeZoneDescription, using the same method with no exceptions: [...] read more
You are running a Exchange2013 DAG DAG2013 `-Exchange2013ServerA `-DB2013-01, DB2013-02 (passive) `-Exchange2013ServerB `-DB2013-02, DB2013-01 (passive) and want to move to 2019 but you are like this DAG2019 `-Exchange2019ServerA `-DB2019-01 `-Exchange2019ServerB Test-MAPIConnectivity -Server xchange2019ServerA failes with long ROG trace, you cannot get a healthy replication or Eventlog Shows Database Errors, but [...] read more
I'd like to access the autocomplete (nickname) stream in Outlook 2013, so that I could let user pick email address from a list. I tried appropriating this VB code I found, however when I run this version, it throws an exception. public byte[] GetAutocompleteBytes() { Outlook.NameSpace n = ApplicationGlobal.GetNamespace("MAPI"); Outlook.MAPIFolder [...] read more
I understand that user can not move messages cross EAS account boundaries. Moving messages inside the same EAS account is perfectly fine when done manually from Outlook windows, but fails when done through automation objects. What's wrong here? Outlook.MailItem item = Outlook.Namespace.GetItemFromID(MailItemEntryEid, MailItemStoreEid); Outlook.MAPIFolder folder = Outlook.Namespace.GetFolderFromID(MAPIFolderEntryEid, MailItemStoreEid); Outlook.MailItem newItem [...] read more