Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//-----------------------------------------------------------------------------
//
// File: counter.h
// Copyright (C) 1994-1997 Microsoft Corporation
// All rights reserved.
//
//
//
//-----------------------------------------------------------------------------
#ifndef ESPUTIL_COUNTER_H
#define ESPUTIL_COUNTER_H
class LTAPIENTRY CCounter { public: CCounter(const TCHAR *); UINT operator++(void); UINT operator--(void); void operator+=(UINT); void operator-=(UINT); void Dump(void) const; ~CCounter(); private: UINT m_uiCurCount; UINT m_uiMaxCount; UINT m_uiTotal; const TCHAR *m_szDescription; };
//------------------------------------------------------------------------------
class LTAPIENTRY CSmartCheck { public: CSmartCheck(DWORD dwFreqMilli = 2000);
void Reset(); BOOL Check();
protected: DWORD m_dwFreqMilli; DWORD m_dwCancelTickMin; // prevents calling fCancel() too often
DWORD m_dwCancelTickMax; };
#endif
|