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.

30 lines
804 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: Alloc.h
  7. //
  8. // Contents: Allocation routines
  9. //
  10. // Classes:
  11. //
  12. // Notes:
  13. //
  14. // History: 05-Nov-97 rogerg Created.
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef _ONESTOPALLOC_
  18. #define _ONESTOPALLOC_
  19. inline void* __cdecl operator new (size_t size);
  20. inline void __cdecl operator delete(void FAR* lpv);
  21. extern "C" void __RPC_API MIDL_user_free(IN void __RPC_FAR * ptr);
  22. extern "C" void __RPC_FAR * __RPC_API MIDL_user_allocate(IN size_t len);
  23. LPVOID ALLOC(ULONG cb);
  24. void FREE(void* pv);
  25. DWORD REALLOC(void **ppv,ULONG cb);
  26. #endif // _ONESTOPALLOC_