Sync to trunk (r44371)
[reactos.git] / reactos / include / psdk / gdiplusbase.h
1 /*
2 * GdiPlusBase.h
3 *
4 * Windows GDI+
5 *
6 * This file is part of the w32api package.
7 *
8 * THIS SOFTWARE IS NOT COPYRIGHTED
9 *
10 * This source code is offered for use in the public domain. You may
11 * use, modify or distribute it freely.
12 *
13 * This code is distributed in the hope that it will be useful but
14 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
15 * DISCLAIMED. This includes but is not limited to warranties of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 */
18
19 #ifndef _GDIPLUSBASE_H
20 #define _GDIPLUSBASE_H
21
22 class GdiplusBase {
23 public:
24 void operator delete(void *in_pVoid)
25 {
26 DllExports::GdipFree(in_pVoid);
27 }
28
29 void operator delete[](void *in_pVoid)
30 {
31 DllExports::GdipFree(in_pVoid);
32 }
33
34 void *operator new(size_t in_size)
35 {
36 return DllExports::GdipAlloc(in_size);
37 }
38
39 void *operator new[](size_t in_size)
40 {
41 return DllExports::GdipAlloc(in_size);
42 }
43 };
44
45 #endif /* _GDIPLUSBASE_H */