00001 #ifndef __DS_COMMON_H__
00002 #define __DS_COMMON_H__
00003
00005 #define WIN32_LEAN_AND_MEAN
00006
00008 #define VC_EXTRALEAN
00009
00010 #include <windows.h>
00011
00012 #ifndef bool
00013 typedef BOOL bool;
00014 #define true TRUE
00015 #define false FALSE
00016 #endif
00017
00023 #define MemAlloc(sz) HeapAlloc(GetProcessHeap(), 0, sz)
00024
00028 #define MemFree(ptr) HeapFree(GetProcessHeap(), 0, ptr)
00029
00039 #define MemReAlloc(ptr, sz) HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, ptr, sz)
00040
00041 #endif