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.

56 lines
873 B

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