Source code of Windows XP (NT5)
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.

29 lines
681 B

  1. // MemAlloc.h -- Memory allocation routines used by the Tome code
  2. #ifndef __MEMALLOC_H__
  3. #define __MEMALLOC_H__
  4. void ValidateHeap();
  5. PVOID AllocateMemory(UINT cb, BOOL fZeroMemory, BOOL fExceptions,
  6. PSZ pszWhichFile, UINT iWhichLine);
  7. PVOID AllocateMemory(UINT cb, BOOL fZeroMemory, BOOL fExceptions);
  8. void * __cdecl operator new(size_t nSize, PSZ pszWhichFile, UINT iWhichLine);
  9. #ifdef _DEBUG
  10. #define New new(__FILE__, __LINE__)
  11. #else
  12. #define New new
  13. #endif
  14. void * __cdecl operator new (size_t nSize);
  15. void __cdecl operator delete(void *pbData);
  16. void ReleaseMemory(PVOID pv);
  17. void LiberateHeap();
  18. #endif // __MEMALLOC_H__