|
|
|
date: Mon, 21 Jan 2008 05:07:28 -0800 (PST),
group: microsoft.public.platformsdk.mapi
back
OpenEntry returns MAPI_E_CALL_FAILED error messages
Hi,
I am trying to read the Messages in the Exchange Users MailBox. While
Opening the Folders[Inbox, Sent Items, etc, .... ] of the Users using
the following code
LPMDB mesgStore;
HRESULT hr = lpMAPISession->OpenMsgStore(0, lpcbEntryID,
(LPENTRYID)lppEntryID,NULL,
MAPI_BEST_ACCESS | MDB_NO_MAIL,
&mesgStore);
lppEntryID refers to the entry id of the user MailBox
HRESULT hr = mesgStore->OpenEntry(size, (LPENTRYID)entryID, NULL,
MAPI_BEST_ACCESS , &ulObjType,
(LPUNKNOWN *)&folder);
tempEntryID refers to the entry id of the particular folder in the
particular user MailBox,
The OpemEntry method fails with MAPI_E_CALL_FAILED error.....
Any suggestions why the function fails with this error .....
date: Mon, 21 Jan 2008 05:07:28 -0800 (PST)
author: deenad
Re: OpenEntry returns MAPI_E_CALL_FAILED error messages
How many messgaes do you open prior to receiving this error? How many?
Around 250?
Do you release the messages that you opened before?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"deenad" wrote in message
news:147564fa-dd3f-4690-8487-8b08e4aff132@i29g2000prf.googlegroups.com...
> Hi,
>
> I am trying to read the Messages in the Exchange Users MailBox. While
> Opening the Folders[Inbox, Sent Items, etc, .... ] of the Users using
> the following code
>
> LPMDB mesgStore;
>
> HRESULT hr = lpMAPISession->OpenMsgStore(0, lpcbEntryID,
> (LPENTRYID)lppEntryID,NULL,
> MAPI_BEST_ACCESS | MDB_NO_MAIL,
> &mesgStore);
>
> lppEntryID refers to the entry id of the user MailBox
>
> HRESULT hr = mesgStore->OpenEntry(size, (LPENTRYID)entryID, NULL,
> MAPI_BEST_ACCESS , &ulObjType,
>
> (LPUNKNOWN *)&folder);
>
> tempEntryID refers to the entry id of the particular folder in the
> particular user MailBox,
>
> The OpemEntry method fails with MAPI_E_CALL_FAILED error.....
>
> Any suggestions why the function fails with this error .....
>
>
date: Mon, 21 Jan 2008 10:00:00 -0700
author: Dmitry Streblechenko
Re: OpenEntry returns MAPI_E_CALL_FAILED error messages
Hi Dmitry,
Yes, I forget to release the folder before I have opened. After
releasing that folder resolves this issue. On the other note it was
happening for the 50th Folder.
Thanks
On Jan 21, 10:00 pm, "Dmitry Streblechenko"
wrote:
> How many messgaes do you open prior to receiving this error? How many?
> Around 250?
> Do you release the messages that you opened before?
>
> Dmitry Streblechenko (MVP)http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "deenad" wrote in message
>
> news:147564fa-dd3f-4690-8487-8b08e4aff132@i29g2000prf.googlegroups.com...
>
>
>
> > Hi,
>
> > I am trying to read the Messages in the Exchange Users MailBox. While
> > Opening the Folders[Inbox, Sent Items, etc, .... ] of the Users using
> > the following code
>
> > LPMDB mesgStore;
>
> > HRESULT hr = lpMAPISession->OpenMsgStore(0, lpcbEntryID,
> > (LPENTRYID)lppEntryID,NULL,
> > MAPI_BEST_ACCESS | MDB_NO_MAIL,
> > &mesgStore);
>
> > lppEntryID refers to the entry id of the user MailBox
>
> > HRESULT hr = mesgStore->OpenEntry(size, (LPENTRYID)entryID, NULL,
> > MAPI_BEST_ACCESS , &ulObjType,
>
> > (LPUNKNOWN *)&folder);
>
> > tempEntryID refers to the entry id of the particular folder in the
> > particular user MailBox,
>
> > The OpemEntry method fails with MAPI_E_CALL_FAILED error.....
>
> > Any suggestions why the function fails with this error .....- Hide quoted text -
>
> - Show quoted text -
date: Mon, 21 Jan 2008 23:50:32 -0800 (PST)
author: deenad
|
|