Sample Version Error MAPI_E_UNKNOWN_FLAGS

Jun 16, 2009 at 12:09 AM

I am trying to do a Hard Delete on a calendar using the MFCMapi.exe.

When select ok to delete I get this message


MFCMAPI Sample Version

Code: MAPI_E_UNKNOWN_FLAGS == 0x80040106
Function lpParentFolder->DeleteFolder( lpItemEID->cb, (LPENTRYID) lpItemEID->lpb, lpProgress ? (ULONG_PTR)m_hWnd : NULL, lpProgress, ulFlags)
File .\MsgStoreDlg.cpp
Line 971

Please advise how I can resolve this.


I have tried various versions downloaded from the codeplex website.


I am on:


Outlook 2007

Exchange 2007



Jun 16, 2009 at 1:33 AM

I have been told that this is due to in being a Sample Version and had to choose the option for Delete and not a Hard delete.