home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / winnt / perftool / perfdlls / leakybin / leakybin.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  1.4 KB  |  54 lines

  1. //---------------------------------------------------------------------------
  2. //  LEAKYBIN.H
  3. //---------------------------------------------------------------------------
  4.  
  5.  
  6. #ifdef SHOW_MEMORY_USAGE
  7. #include "..\appmem\pub\appmem.h"
  8. #define    G_ALLOC        GlobalAllocP
  9. #define G_FREE        GlobalFreeP
  10. #define G_REALLOC    GlobalReallocP
  11.  
  12. #else
  13. #define    G_ALLOC        GlobalAlloc
  14. #define G_FREE        GlobalFree
  15. #define G_REALLOC    GlobalRealloc
  16.  
  17. #endif
  18.  
  19. typedef struct _MEMORY_ALLOC_BLOCK {
  20.     struct _MEMORY_ALLOC_BLOCK    *pNext;
  21. } MEMORY_ALLOC_BLOCK, *PMEMORY_ALLOC_BLOCK;
  22.  
  23. #define ALLOCATION_SIZE        (4096*10)
  24. #define TIME_INTERVAL        (100)
  25. #define LEAK_TIMER            13
  26.  
  27.  
  28. #define IDM_EXIT           101
  29. #define IDM_START          201
  30. #define IDM_STOP           202
  31. #define IDM_RESET          203
  32.  
  33. #define IDM_ABOUT          301
  34. #define IDM_HELPTOPICS     302
  35.  
  36. #define IDC_STATIC -1
  37.  
  38. #define DLG_VERFIRST        400
  39. #define IDC_COMPANY         DLG_VERFIRST
  40. #define IDC_FILEDESC        DLG_VERFIRST+1
  41. #define IDC_PRODVER         DLG_VERFIRST+2
  42. #define IDC_COPYRIGHT       DLG_VERFIRST+3
  43. #define IDC_OSVERSION       DLG_VERFIRST+4
  44. #define IDC_TRADEMARK       DLG_VERFIRST+5
  45. #define DLG_VERLAST         DLG_VERFIRST+5
  46.  
  47. #define IDC_LABEL           DLG_VERLAST+1
  48.  
  49. #define IDS_APP_TITLE       500
  50. #define IDS_DISPLAYCHANGED  501
  51. #define IDS_VER_INFO_LANG   502
  52. #define IDS_VERSION_ERROR   503
  53. #define IDS_NO_HELP         504
  54.