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.

53 lines
1.0 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: flushmem.h
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. #pragma once
  11. #pragma warning(disable: 4275) // non dll-interface class 'foo' used
  12. // as base for dll-interface class 'bar'
  13. class LTAPIENTRY CFlushMemory : public CObject
  14. {
  15. public:
  16. CFlushMemory(BOOL fDelete);
  17. virtual void FlushMemory(void) = 0;
  18. void Delete(void);
  19. private:
  20. CFlushMemory();
  21. CFlushMemory(const CFlushMemory &);
  22. void operator=(const CFlushMemory &);
  23. BOOL m_fDelete;
  24. };
  25. class LTAPIENTRY CMinWorkSet : public CFlushMemory
  26. {
  27. public:
  28. CMinWorkSet(BOOL fDelete);
  29. void FlushMemory(void);
  30. };
  31. #pragma warning(default: 4275)
  32. void LTAPIENTRY NOTHROW AddFlushClass(CFlushMemory *);
  33. BOOL LTAPIENTRY NOTHROW RemoveFlushClass(CFlushMemory *);
  34. void LTAPIENTRY FlushMemory(void);