Source code of Windows XP (NT5)
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.

64 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: webhits.hxx
  7. //
  8. // Classes: CWebhitsInfo - Global information for webhits
  9. //
  10. // History: 08-18-97 dlee Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. //+---------------------------------------------------------------------------
  15. //
  16. // Class: CWebhitsInfo
  17. //
  18. // Purpose: Global state information for webhits
  19. //
  20. // History: 08-18-97 dlee Created
  21. //
  22. //----------------------------------------------------------------------------
  23. class CWebhitsInfo
  24. {
  25. public:
  26. CWebhitsInfo();
  27. ~CWebhitsInfo()
  28. {
  29. for ( unsigned x = 0; x < _aTokenCache.Count(); x++ )
  30. {
  31. delete _aTokenCache[ x ];
  32. _aTokenCache[ x ] = 0;
  33. }
  34. }
  35. CImpersonationTokenCache * GetTokenCache( CWebServer & webServer );
  36. void Refresh();
  37. ULONG GetMaxRunningWebhits() { return _cMaxRunningWebhits; }
  38. ULONG GetDisplayScript() { return _ulDisplayScript; }
  39. ULONG GetMaxWebhitsCpuTime() { return _cmsMaxWebhitsCpuTime; }
  40. CMutexSem & GetNonThreadedFilterMutex()
  41. { return _mutexNonThreadedFilter; }
  42. private:
  43. void ReadRegValues();
  44. ULONG _cMaxRunningWebhits;
  45. ULONG _ulDisplayScript;
  46. ULONG _cmsMaxWebhitsCpuTime;
  47. CMutexSem _mutex;
  48. CMutexSem _mutexNonThreadedFilter;
  49. CDynArrayInPlace<CImpersonationTokenCache *> _aTokenCache;
  50. CRegChangeEvent _regChangeEvent;
  51. };