/** * ECQuotaMonitor constructor * Takes an extra reference to the passed MAPI objects which have refcounting. */ ECQuotaMonitor::ECQuotaMonitor(LPECTHREADMONITOR lpThreadMonitor, LPMAPISESSION lpMAPIAdminSession, LPMDB lpMDBAdmin) { m_lpThreadMonitor = lpThreadMonitor; m_lpMAPIAdminSession = lpMAPIAdminSession; m_lpMDBAdmin = lpMDBAdmin; m_ulProcessed = 0; m_ulFailed = 0; if(lpMAPIAdminSession) lpMAPIAdminSession->AddRef(); if(lpMDBAdmin) lpMDBAdmin->AddRef(); }