MAPI_E_UNKNOWN_ENTRYID error for MAPISession:: OpenEntry RRS feed

  • Question

  • I have written a function which takes a MAPI session as parameter and returns IMAPIProp interface. I have used the APIs MAPISession::QueryIdentity and MAPISession:: OpenEntry. However, for MAPISession:: OpenEntry I am getting the error 0x80040201 (MAPI_E_UNKNOWN_ENTRYID). Can anyone please let me know the reason for this error?

    Thankig in advance!!!

    Thursday, April 28, 2011 9:17 AM

All replies

  • The error tells that the entry identifier passed in the lpEntryID parameter is in an unrecognizable format. This value is typically returned if the service provider that contains the object is not open. Similar query for addressbook is available @ You can try the same approach & let me know how it goes.
    DeVa, M.S., {MSFT} Please remember to mark the replies as answers if they help
    Friday, July 29, 2011 2:10 AM