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