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);
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);