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