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.

50 lines
833 B

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. mem.hxx
  5. Abstract:
  6. The class MEM contains one pure virtual function named 'Acquire'.
  7. The implementors and users of this class must follow some simple
  8. constraints.
  9. Acquire will return a pointer to Size bytes of memory or NULL.
  10. A function taking a MEM as an argument should call Acquire at most one
  11. time. It should not, for instance, cache a pointer to the MEM for
  12. future calls to Acquire.
  13. Author:
  14. Norbert P. Kusters (norbertk) 26-Nov-90
  15. --*/
  16. #if !defined(MEM_DEFN)
  17. #define MEM_DEFN
  18. DECLARE_CLASS( MEM );
  19. class MEM : public OBJECT {
  20. public:
  21. VIRTUAL
  22. PVOID
  23. Acquire(
  24. IN ULONG Size,
  25. IN ULONG AlignmentMask DEFAULT 0
  26. ) PURE;
  27. protected:
  28. DECLARE_CONSTRUCTOR( MEM );
  29. };
  30. #endif // MEM_DEFN