Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us