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.

60 lines
1.5 KiB

  1. /***
  2. * vmemory.h - Virtual Memory (VM) Management Routines
  3. *
  4. * Copyright (c) 1989-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This include file provides prototypes and definitions for
  8. * the virtual memory management routines.
  9. *
  10. *******************************************************************************/
  11. #ifndef _INC_VMEMORY
  12. #if (_MSC_VER <= 600)
  13. #define __far _far
  14. #define __pascal _pascal
  15. #endif
  16. /* virtual memory handle type */
  17. typedef unsigned long _vmhnd_t;
  18. /* null handle value */
  19. #define _VM_NULL ((_vmhnd_t) 0)
  20. /* use all available DOS memory for virtual heap */
  21. #define _VM_ALLDOS 0
  22. /* swap areas */
  23. #define _VM_EMS 1
  24. #define _VM_XMS 2
  25. #define _VM_DISK 4
  26. #define _VM_ALLSWAP (_VM_EMS | _VM_XMS | _VM_DISK)
  27. /* clean/dirty flags */
  28. #define _VM_CLEAN 0
  29. #define _VM_DIRTY 1
  30. /* function prototypes */
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. void __far __pascal _vfree(_vmhnd_t);
  35. int __far __pascal _vheapinit(unsigned int, unsigned int, unsigned int);
  36. void __far __pascal _vheapterm(void);
  37. void __far * __far __pascal _vload(_vmhnd_t, int);
  38. void __far * __far __pascal _vlock(_vmhnd_t);
  39. unsigned int __far __pascal _vlockcnt(_vmhnd_t);
  40. _vmhnd_t __far __pascal _vmalloc(unsigned long);
  41. unsigned long __far __pascal _vmsize(_vmhnd_t);
  42. _vmhnd_t __far __pascal _vrealloc(_vmhnd_t , unsigned long);
  43. void __far __pascal _vunlock(_vmhnd_t, int);
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47. #define _INC_VMEMORY
  48. #endif /* _INC_VMEMORY */