The code in the article Q200174 does not run a 64 bit OS

A

Afk_kk

When i run the code in the sample, the application crashes at the following
function: HrMAPIOpenFolderEx ()

Thanks in advance.


Even on using HrMapiFindSubFolder iam getting exception of ACCESS_VIOLATION.
__try
{
DWORD cbeid = 0;
LPENTRYID lpeid = NULL;
LPMAPIFOLDER lpParentFolder = NULL;
ULONG ulObjType = 0;

hrRet = lpStore->OpenEntry(
0L, // use 0L for root folder
NULL, // use NULL for root folder
NULL, // use NULL for interface ID
MAPI_MODIFY | MAPI_DEFERRED_ERRORS, // use this flag if you plan
to make changes
&ulObjType,
(LPUNKNOWN*)&lpParentFolder);


//MAPIListPublicFolders(lpParentFolder,"");

hrRet = HrMAPIFindSubfolderEx (lpParentFolder, '\\', "Top of
Information Store\\Outbox", &cbeid, &lpeid);
if (FAILED (hrRet))
{
printf("MAPI Public Folder Access Error on %s for
Profile\n",l_strFullPath);
}
hrRet = lpStore->OpenEntry ( cbeid, lpeid, NULL, MAPI_MODIFY,
&ulObjType,(LPUNKNOWN*)&lpFolder );
if (FAILED (hrRet))
{
printf("MAPI Public Folder Access Error on %s for Profile
\n",l_strFullPath);
}

MAPIFreeBuffer (lpeid);




}
__except(EXCEPTION_EXECUTE_HANDLER )
{
 

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