Windows error 0x80040102, -2147221246

Detailed Error Information

DRAGDROP_E_INVALIDHWND[1]

MessageInvalid window handle
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code258 (0x0102)

Questions

3votes
3answers

Why do we have to create unique uuid for every interface in a idl?

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
com
uuid
idl
2votes
0answers

OpenMsgStore fails: MAPI_E_NO_SUPPORT or E_ACCESSDENIED

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
mapi
1vote
1answer

VSTO Outlook Retrieving TimeZoneStruct from Appointment

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
c#
outlook
timezone
vsto
outlook-addin
0votes
1answer

Exchange 2013 to Exchange 2019 with DAG (MapiExceptionNoSupport 0x80040102)

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
windows
exchange-server
0votes
0answers

COMException (0x80040102) when trying to access autocomplete stream

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
c#
outlook
vsto
0votes
2answers

Outlook 2013 Automation Objects: with hotmail EAS account. Move, Copy fails

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
c#
vba
outlook
outlook-addin

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0