A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 5th 07, 10:40 AM posted to microsoft.public.outlook.program_forms
Afk_kk
external usenet poster
 
Posts: 1
Default The code in the article Q200174 does not run a 64 bit OS

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 SP1 NDR Report with bad KB Article KenCraft Outlook - General Queries 0 August 20th 07 06:50 PM
MSN article hiruma222 Outlook Express 2 August 13th 07 08:30 PM
how do I scan an article for emailing? William Schleiger Outlook - General Queries 6 April 5th 07 03:40 AM
FYI- Kehr article Ed Collins Outlook Express 4 March 27th 07 01:04 AM
Article ID 834700 Tim Outlook - Installation 3 November 8th 06 04:16 PM


All times are GMT +1. The time now is 06:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.