Henning Krause [MVP - Exc
Guest
|
Posted:
Fri Oct 21, 2005 10:21 pm Post subject:
Re: Mailbox Size > 2.5 return 0 |
|
|
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
|
|
|