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.

45 lines
909 B

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 1998-2000, Microsoft Corp. All Rights Reserved.
  4. *
  5. * Module Name:
  6. *
  7. * Base
  8. *
  9. * Abstract:
  10. *
  11. * Represents the base class for GDIPlus memory allocation.
  12. *
  13. * Revision History:
  14. *
  15. * 04/27/2000 gillesk
  16. *
  17. *
  18. \**************************************************************************/
  19. #ifndef _GDIPLUSBASE_H
  20. #define _GDIPLUSBASE_H
  21. class GdiplusBase
  22. {
  23. public:
  24. void (operator delete)(void* in_pVoid)
  25. {
  26. DllExports::GdipFree(in_pVoid);
  27. }
  28. void* (operator new)(size_t in_size)
  29. {
  30. return DllExports::GdipAlloc(in_size);
  31. }
  32. void (operator delete[])(void* in_pVoid)
  33. {
  34. DllExports::GdipFree(in_pVoid);
  35. }
  36. void* (operator new[])(size_t in_size)
  37. {
  38. return DllExports::GdipAlloc(in_size);
  39. }
  40. };
  41. #endif