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.

31 lines
654 B

  1. // memmgr.h
  2. //
  3. // This file contains declarations and macros for memory management.
  4. // Implementation details may change so beware of relying on internal details.
  5. #ifndef __INCLUDE_MEMMGR
  6. #define __INCLUDE_MEMMGR
  7. #ifdef __cplusplus
  8. extern "C"
  9. {
  10. #endif
  11. void *ExternAlloc(DWORD cb);
  12. void *ExternRealloc(void *pv, DWORD cb);
  13. void ExternFree(void *pv);
  14. char *Externstrdup( const char *strSource );
  15. #ifdef DBG
  16. extern int cAllocMem; // Amount of memory alloced
  17. extern int cAlloc; // Count of allocs outstanding
  18. extern int cAllocMaxMem; // Max amount of memory ever alloced.
  19. #endif
  20. #ifdef __cplusplus
  21. };
  22. #endif
  23. #endif //__INCLUDE_MEMMGR