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.

30 lines
781 B

  1. /*****************************************************************************\
  2. * MODULE: genmem.h
  3. *
  4. * This is the header module for mem.c. This contains valuable memory
  5. * management wrappers.
  6. *
  7. *
  8. * Copyright (C) 1996-1997 Microsoft Corporation
  9. * Copyright (C) 1996-1997 Hewlett Packard
  10. *
  11. * history:
  12. * 22-Nov-1996 <chriswil> created.
  13. *
  14. \*****************************************************************************/
  15. // Identifier at the end of the memory-block to check when
  16. // verifying memory-overwrites.
  17. //
  18. #define DEADBEEF 0xdeadbeef
  19. // Memory Routines.
  20. //
  21. LPVOID genGAlloc(DWORD);
  22. BOOL genGFree(LPVOID, DWORD);
  23. LPVOID genGRealloc(LPVOID, DWORD, DWORD);
  24. LPWSTR genGAllocWStr(LPCWSTR);
  25. LPTSTR genGAllocStr(LPCTSTR);
  26. LPVOID genGCopy(LPVOID);
  27. DWORD genGSize(LPVOID);