Leaked source code of windows server 2003
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
913 B

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: setupmem.h
  4. //
  5. // Module: CMSETUP.LIB
  6. //
  7. // Synopsis: Memory utility functions taken from cmutil. Bare minimum of functionality
  8. // used in Cmutil, but gives a simple Heapalloc wrapper.
  9. //
  10. // Copyright (c) 1998-1999 Microsoft Corporation
  11. //
  12. // Author: quintinb Created 10-6-98
  13. //
  14. //+----------------------------------------------------------------------------
  15. #ifndef __SETUPMEM_H
  16. #define __SETUPMEM_H
  17. //+----------------------------------------------------------------------------
  18. // definitions
  19. //+----------------------------------------------------------------------------
  20. #ifdef DEBUG
  21. extern LONG g_lMallocCnt;
  22. #endif
  23. void *CmRealloc(void *pvPtr, size_t nBytes);
  24. void *CmMalloc(size_t nBytes);
  25. void CmFree(void *pvPtr);
  26. void EndDebugMemory();
  27. #endif //__SETUPMEM_H