Mailbox Size > 2.5 return 0
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Mailbox Size > 2.5 return 0

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Barry
Guest





Posted: Fri Oct 21, 2005 4:58 pm    Post subject: Mailbox Size > 2.5 return 0 Reply with quote

Hi

When retrieving mailbox sizes, when the size is greater than 2.75GB the
returned value if zero(0)
following is part of the code i use to retrieve the sizes

// Move to the first folder.
hr = pRs->MoveFirst();

while (VARIANT_FALSE == pRs->adoEOF)
{
FieldsPtr Flds = pRs->GetFields();
FieldPtr FldName = Flds->GetItem("DAV:displayname");
FieldPtr FldCount = Flds->GetItem("DAV:objectcount");
FieldPtr FldSize;
FldSize = Flds->GetItem(
"http://schemas.microsoft.com/exchange/foldersize");
*plSize = *plSize + (unsigned __int64)FldSize->Value;
FieldPtr FldSubs = Flds->GetItem("DAV:hassubs");
if ((bool)FldSubs->Value)
{
FieldPtr FldRef = Flds->GetItem("DAV:href");
hr = RecurseFolder ((_bstr_t)FldRef->Value, plSize, plCount);
if (FAILED(hr))
{
return hr;
}
}
pRs->MoveNext();
}

what should i do to get the correct values.

Barry

Back to top
Henning Krause [MVP - Exc
Guest





Posted: Fri Oct 21, 2005 10:21 pm    Post subject: Re: Mailbox Size > 2.5 return 0 Reply with quote

Hello,

http://schemas.microsoft.com/exchange/foldersize is a 32bit value.

See http://www.infinitec.de/exchange/howtos/getpublicfoldersize.aspx

Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de


"Barry" <xxxNotReally@hotmail.com> wrote in message
news:uhHPtIl1FHA.3520@TK2MSFTNGP10.phx.gbl...
Quote:
Hi

When retrieving mailbox sizes, when the size is greater than 2.75GB the
returned value if zero(0)
following is part of the code i use to retrieve the sizes

// Move to the first folder.
hr = pRs->MoveFirst();

while (VARIANT_FALSE == pRs->adoEOF)
{
FieldsPtr Flds = pRs->GetFields();
FieldPtr FldName = Flds->GetItem("DAV:displayname");
FieldPtr FldCount = Flds->GetItem("DAV:objectcount");
FieldPtr FldSize;
FldSize = Flds->GetItem(
"http://schemas.microsoft.com/exchange/foldersize");
*plSize = *plSize + (unsigned __int64)FldSize->Value;
FieldPtr FldSubs = Flds->GetItem("DAV:hassubs");
if ((bool)FldSubs->Value)
{
FieldPtr FldRef = Flds->GetItem("DAV:href");
hr = RecurseFolder ((_bstr_t)FldRef->Value, plSize, plCount);
if (FAILED(hr))
{
return hr;
}
}
pRs->MoveNext();
}

what should i do to get the correct values.

Barry




Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB