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.

61 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: scvgr.hxx
  7. //
  8. // Contents: CLSAScavenger class implementation.
  9. //
  10. // Classes: CLSAScavenger
  11. //
  12. // Functions: None.
  13. //
  14. // History: 21-Jul-96 MarkBl Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __SCVGR_HXX__
  18. #define __SCVGR_HXX__
  19. //+---------------------------------------------------------------------------
  20. //
  21. // Class: SAScavengerTask
  22. //
  23. // Synopsis: Scheduling agent service scavenger thread code. Its function
  24. // currently is to clean up the Scheduling Agent security
  25. // database.
  26. //
  27. // History: 21-Jul-96 MarkBl Created
  28. //
  29. // Notes: None.
  30. //
  31. //----------------------------------------------------------------------------
  32. class CSAScavengerTask : public CTask
  33. {
  34. public:
  35. CSAScavengerTask(DWORD msWaitTime)
  36. : _hWaitEvent(NULL), _msWaitTime(msWaitTime) { ; }
  37. ~CSAScavengerTask() {
  38. if (_hWaitEvent)
  39. {
  40. CloseHandle(_hWaitEvent);
  41. _hWaitEvent = NULL;
  42. }
  43. }
  44. HRESULT Initialize(void);
  45. void PerformTask(void);
  46. void Shutdown(void);
  47. private:
  48. DWORD _msWaitTime;
  49. HANDLE _hWaitEvent;
  50. };
  51. #endif // __SCVGR_HXX__