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.

40 lines
833 B

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