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.

77 lines
803 B

  1. #ifndef _MEMORY_H_INCLUDED_
  2. #define _MEMORY_H_INCLUDED_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. LPVOID
  7. AllocADsMem(
  8. DWORD cb
  9. );
  10. BOOL
  11. FreeADsMem(
  12. LPVOID pMem
  13. );
  14. LPVOID
  15. ReallocADsMem(
  16. LPVOID pOldMem,
  17. DWORD cbOld,
  18. DWORD cbNew
  19. );
  20. LPWSTR
  21. AllocADsStr(
  22. LPCWSTR pStr
  23. );
  24. BOOL
  25. FreeADsStr(
  26. LPWSTR pStr
  27. );
  28. BOOL
  29. ReallocADsStr(
  30. LPWSTR *ppStr,
  31. LPWSTR pStr
  32. );
  33. #if DBG
  34. extern LIST_ENTRY ADsMemList ;
  35. extern CRITICAL_SECTION ADsMemCritSect ;
  36. VOID InitADsMem(
  37. VOID
  38. ) ;
  39. VOID AssertADsMemLeaks(
  40. VOID
  41. ) ;
  42. VOID
  43. DumpMemoryTracker();
  44. #else
  45. #define InitADsMem()
  46. #define AssertADsMemLeaks()
  47. #define DumpMemoryTracker()
  48. #endif
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif // _MEMORY_H_INCLUDED_