0x80040115 when trying to retrieve PR_DISPLAY_NAME

0

My native raw C++ program uses MAPI to traverse the tree in the Exchange Server.

Sometimes when I call HrGetOneProp() on a IMAPIFolder* pointer to retrieve PR_DISPLAY_NAME it fails with HRESULT 0x80040115. It only happens for one particular folder, all other folders names are retrieved allright.

Outlook 2003 running on the same machine under the same user displays all folders, problematic one included.

What is the cause of the problem and how do I resolve it?

email
visual-c++
com
outlook
mapi
asked on Stack Overflow May 19, 2010 by sharptooth

1 Answer

0

0x80040115 is MAPI_E_NETWORK_ERROR. The folder could be a shared folder from another inbox, and you cannot connect to it. Outlook may still display it properly because it cached the name somewhere.

answered on Stack Overflow Jun 3, 2010 by Chris

User contributions licensed under CC BY-SA 3.0