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.

28 lines
1002 B

  1. #ifndef _INC_DSKQUOTA_ALLOC_H
  2. #define _INC_DSKQUOTA_ALLOC_H
  3. //////////////////////////////////////////////////////////////////////////////
  4. /* File: alloc.h
  5. Description: Installs a "new handler" that throws CAllocException
  6. when a memory allocation request fails. Required since our
  7. compiler doesn't throw bad_alloc on memory alloc failures.
  8. Revision History:
  9. Date Description Programmer
  10. -------- --------------------------------------------------- ----------
  11. 10/20/97 Initial creation. BrianAu
  12. */
  13. ///////////////////////////////////////////////////////////////////////////////
  14. //
  15. // Declarations for overloading global new and delete.
  16. //
  17. void * __cdecl operator new(size_t size);
  18. void __cdecl operator delete(void *ptr);
  19. void * __cdecl operator new[](size_t size);
  20. void __cdecl operator delete[](void *ptr);
  21. #endif // _INC_DSKQUOTA_ALLOC_H