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.

54 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: nocairo.hxx
  7. //
  8. // Contents: Stuff we need defined for ADs to run sans Cairo
  9. //
  10. // History:
  11. //
  12. //----------------------------------------------------------------------------
  13. #define VT_TYPEMASK 0x3ff
  14. // normally defined in shelitfs.h, which we're not including
  15. // for non-Cairo drop of ADs.
  16. #define S_CANCELLED MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_NULL,2)
  17. #if DBG==1
  18. typedef BOOL (* ALLOC_HOOK)(size_t nSize);
  19. ALLOC_HOOK MemSetAllocHook( ALLOC_HOOK pfnAllocHook );
  20. #endif
  21. HRESULT
  22. MemAlloc(ULONG cb, LPVOID FAR* ppv);
  23. HRESULT
  24. MemFree(LPVOID pv);
  25. HRESULT
  26. MemAllocLinked ( void *pvRootBlock, unsigned long ulSize, void ** ppv );
  27. void *
  28. ADsAlloc(size_t size);
  29. void
  30. ADsFree(void * pv);
  31. inline void * __cdecl
  32. operator new(size_t size)
  33. {
  34. return AllocADsMem(size);
  35. }
  36. inline void __cdecl
  37. operator delete(void * pv)
  38. {
  39. FreeADsMem(pv);
  40. }