Outlook 2007 E_ACCESSDENIED message

A

Adrian Leeming

Hi

I am having a problem accessing the root folder of another users mailbox
using extended mapi with outlook 2007 I get the mapi_msgstore->OpenEntry fail
with E_ACCESSDENIED. This works fine with Outlook 2003. Has anyone any
ideas or come across a way get around this please? The mailbox can be seen
in outlook and has been added in as an additional mailbox.

IMAPIFolder *ipmroot=0; wMAPI_ENTRY eid;
SPropValue *ipm_eid;
hr = pHrGetOneProp(mapi_msgstore, PR_IPM_SUBTREE_ENTRYID, &ipm_eid);
if (hr==S_OK)
{
eid = ipm_eid;
pMAPIFreeBuffer(ipm_eid);
}
if (!eid.isempty())
{
ULONG ipmroottype;
hr = mapi_msgstore->OpenEntry(eid.size,eid.ab,NULL,0 ,&ipmroottype,
IUnknown**)&ipmroot);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top