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
808 B

  1. //==========================================================================
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright 1998 - 1999 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------
  11. #ifndef _SAMPLEALLOC_
  12. #define _SAMPLEALLOC_
  13. inline void* __cdecl operator new (size_t size);
  14. inline void __cdecl operator delete(void FAR* lpv);
  15. LPVOID ALLOC(ULONG cb);
  16. void FREE(void* pv);
  17. LPVOID REALLOC(void *pv,ULONG cb);
  18. #ifdef _DEBUG
  19. #define MEMINITVALUE 0xff
  20. #define MEMFREEVALUE 0xfe
  21. #endif // DEBUG
  22. #endif // _SAMPLEALLOC_