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.

57 lines
920 B

  1. /* Copyright (c) 1999 Microsoft Corporation */
  2. #ifndef _MYMEM_H
  3. #define _MYMEM_H
  4. #include <windows.h>
  5. #include <winbase.h>
  6. #include <setupapi.h>
  7. #include <TCHAR.h>
  8. typedef struct _PHONESP_MEMINFO
  9. {
  10. struct _PHONESP_MEMINFO * pNext;
  11. struct _PHONESP_MEMINFO * pPrev;
  12. DWORD dwSize;
  13. DWORD dwLine;
  14. PSTR pszFile;
  15. DWORD dwAlign;
  16. } PHONESP_MEMINFO, *PPHONESP_MEMINFO;
  17. #if DBG
  18. #define MemAlloc( __size__ ) MemAllocReal( __size__, __LINE__, __FILE__ )
  19. LPVOID
  20. WINAPI
  21. MemAllocReal(
  22. DWORD dwSize,
  23. DWORD dwLine,
  24. PSTR pszFile
  25. );
  26. VOID
  27. DumpMemoryList();
  28. #else
  29. #define MemAlloc( __size__ ) MemAllocReal( __size__ )
  30. LPVOID
  31. WINAPI
  32. MemAllocReal(
  33. DWORD dwSize
  34. );
  35. #endif
  36. VOID
  37. WINAPI
  38. MemFree(
  39. LPVOID p
  40. );
  41. #endif