Cannot read mail box size above 4 gb

Cannot read mail box size above 4 gb

Post by Nik » Thu, 26 Oct 2006 22:08:03


Hi,
I am trying to read the mail box size using

lpProps[PR_MESSAGE_SIZE].Value.ul

property. However, whenever the mailbox size goes over 4 gb the value
in this variable gets reset. ie the maxmimum value is breached.

Is there any way I can read size of a/many mailbox/s which have more
than 4 Gb mails?


lpProps is defined as

LPSPropValue lpProps

and LPSPropValue has the following defn in MAPIDef.h:
typedef struct _SPropValue
{
ULONG ulPropTag;
ULONG dwAlignPad;
union _PV Value;
} SPropValue, FAR * LPSPropValue;



Thanks

-NIKHIL
 
 
 

Cannot read mail box size above 4 gb

Post by Stephen Gr » Thu, 26 Oct 2006 23:09:03

Use PR_MESSAGE_SIZE_EXTENDED, which it PT_I8.

 
 
 

Cannot read mail box size above 4 gb

Post by Nik » Tue, 31 Oct 2006 22:04:44

HI Stephen,
It is still not working after making hte changes. Is there any
thing I can check ?

-NIKHIL
 
 
 

Cannot read mail box size above 4 gb

Post by Dmitry Str » Wed, 01 Nov 2006 02:42:23

You might want to show your code. Are you using SPropValue.Value.li (correct
for PT_I8) or ul (incorrect)?

Dmitry Streblechenko (MVP)
http://www.yqcomputer.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool