microsoft / mfcmapi

MFCMAPI
https://microsoft.github.io/mfcmapi/
MIT License
875 stars 157 forks source link

Code: MAPI_E_UNKNOWN_FLAGS == 0x80040106 #737

Open timjethen opened 4 months ago

timjethen commented 4 months ago

I'm running into an issue where my old/dismissed reminders come back every time I restart outlook. I'm trying to resolve the issue per resolution 2 on https://learn.microsoft.com/en-us/exchange/troubleshoot/calendars/cannot-dismiss-outlook-calendar-reminders. When I try to delete the reminders folder via mfcmapi (64-bit version 24.0.24100.06) I get the following error:

Error: Code: MAPI_E_UNKNOWN_FLAGS == 0x80040106 Function lpParentFolder->DeleteFolder( static_cast(itemEID.size()), mapi::toEntryID(itemEID), lpProgress ? reinterpret_cast(m_hWnd) : NULL, lpProgress, ulFlags) File C:__w\1\s\MFCMAPI\UI\Dialogs\HierarchyTable\MsgStoreDlg.cpp Line 797

stephenegriffin commented 3 months ago

@timjethen what flags are you passing and what variations have you tried?

timjethen commented 3 months ago

Only tried the default flags other than making sure MDB_ONLINE and MAPI_NO_CACHE were set per instructions. I didn't make the connection between the tools->options and flags referred to in the error code. Selected options are:

Parse named properties Register for notifications when you navigate to a folder Enable Smart View Use GetPropList for GetProps call Prefer Unicode properties Cache named property mappings Use 'nice' column names Use the MDB_ONLINE flag when calling OpenMsgStore Use the MAPI_NO_CACHE flag when calling OpenEntry Suppress MAPI_E_NOT_FOUND in contents table views Terminate on heap corruption Load add-ins

Any you would suggest clearing?