Henning Krause [MVP - Exc
Guest
|
Posted:
Sun Oct 23, 2005 4:24 pm Post subject:
Re: MailboxSize > 2.5 returns 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
--
Henning Krause
MVP - Exchange
http://www.infinitec.de
"Barry" <Barry@discussions.microsoft.com> wrote in message
news:803C7946-7473-4307-96A0-D49B4819D1F0@microsoft.com...
| 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
|
|
|