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.

37 lines
731 B

  1. // Copyright (c) 1997-2002 Microsoft Corporation
  2. //
  3. // Module:
  4. //
  5. // Header definitions for NSU memory utilities
  6. //
  7. // Abstract:
  8. //
  9. // Contains function prototypes that provide memory allocation deallocation routines.
  10. //
  11. // Author:
  12. //
  13. // kmurthy 2/5/02
  14. //
  15. // Environment:
  16. //
  17. // User mode
  18. //
  19. // Revision History:
  20. //
  21. // Description:
  22. // This predefined, "known" pointer is used to
  23. // designate that a pointer has already been freed.
  24. #define FREED_POINTER ((PVOID)"Already Freed!!")
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. PVOID WINAPI NsuAlloc(SIZE_T dwBytes,DWORD dwFlags);
  29. DWORD WINAPI NsuFree(PVOID *ppMem);
  30. DWORD WINAPI NsuFree0(PVOID *ppMem);
  31. #ifdef __cplusplus
  32. }
  33. #endif