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.

46 lines
779 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. --*/
  14. #if !defined(MEM_DEFN)
  15. #define MEM_DEFN
  16. DECLARE_CLASS( MEM );
  17. class MEM : public OBJECT {
  18. public:
  19. VIRTUAL
  20. PVOID
  21. Acquire(
  22. IN ULONG Size,
  23. IN ULONG AlignmentMask DEFAULT 0
  24. ) PURE;
  25. protected:
  26. DECLARE_CONSTRUCTOR( MEM );
  27. };
  28. #endif // MEM_DEFN