Outlook 2003 & HrMAPIFindFolderEx()

  • Thread starter Thread starter Kevin Robinson
  • Start date Start date
K

Kevin Robinson

Hi,

I realize this is a vb group, but I have some C++ code that stopped working
with Outlook 2003 (I've also posted a message in the mapi sdk group). With
this being an Outlook group I was hoping maybe someone might be able to
provide an answer.

Basically I open a message store and then call HrMAPIFindFolderEx() to find
a specific folder. After opening the msg store I call:

hr = HrMAPIFindFolderEx(lpStore, '\\', "Top of Personal Folders\\InBox",
&cbEIDFolder, &lpEIDFolder); (inbox is just an example)

This function crashes everytime with Outlook 2003 no matter what folder I
try to open. I have always used "Top of Personal Folders\folder name"
successfully. With Outlook 2003 it never works and I have tried various
strings without success:
"Personal Folders\folder name"
"Favorite Folders\folder name"
"All Mail Folders\store name\folder name"
"folder name"


Has this changed with Outlook 2003? Any help anyone could provide would be
appreciated.

Kevin
 
Did you try to step through the HrMAPIFindFolderEx() source code in
ifolder.c?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
For whatever reason, after HrQueryAllRows() is called, the property on the
first row is invalid (bad memory address). But the rest of the rows are
valid. This only seems to happen with Outlook 2003. I modified ifolder.c
to make sure the memory was vaild before proceeding and compiled a
EDKMAPI.lib for my own use.

Thanks.
 
Back
Top