Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Wed, 6 Aug 2008 00:48:24 -0700 (PDT),    group: microsoft.public.platformsdk.mapi        back       


How to skip Default/Special Folders of PST   
Hi,

I am trying to read folder hierarchy of a PST (created using OL 2K3)
containing only 1 folder . I am using following set of code to get the
sub folders of Root folder (IPM_ROOT):

                        IMAPITable *hierarchy = NULL;
                        ULONG ulFlags = 0;

			hr = m_lpMapiFolder->GetHierarchyTable(ulFlags, &hierarchy);
			if (FAILED(hr))
			{
				DIAGKIT_ERROR << L"GetHierarchyTable failed with hr = " << hex <<
hr << DIAGKIT_END;
				break;
			}

The above call is returning 4 records named as Inbox, Outbox, Deleted
Items and Fld1 (the one I exported).
When I open the PST using OL Spy (GetHierarchyTable on Root Folder), I
can see only 2 folders named as Deleted Items and Fld1.
When I call Open Entry from OL Spy for Inbox/Outbox folder entry Id,
then it fails.

I don't know why MAPI is returning records for Inbox and Outbox which
does not exists. Are these default folders of PST? If yes, is there a
way to skip these folders. User does not want to see records for
folders which is not visible in OL. If no, why GetHierarchyTable
returning records which does not exist at all.

Thanks in advance
Sumit Khetrapal
date: Wed, 6 Aug 2008 00:48:24 -0700 (PDT)   author:   Sumit Khetrapal

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us