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.

46 lines
1.4 KiB

  1. /*************************************************************************
  2. **
  3. ** vm.h - procedure definitions for VM package
  4. **
  5. ** Copyright <C> 1988, Microsoft Corporation
  6. **
  7. ** Purpose:
  8. **
  9. ** Revision History:
  10. **
  11. ** [] 21-Apr-1988 LN Created
  12. **
  13. *************************************************************************/
  14. typedef char f; /* boolean */
  15. typedef unsigned char uchar;
  16. typedef unsigned long ulong;
  17. typedef unsigned short ushort;
  18. typedef void far * va; /* virtual address */
  19. #define VANIL ((va)0xffffffff) /* NIL value */
  20. #define VANULL ((va)0) /* NULL value */
  21. ulong pascal far VMsize (long);
  22. uchar far * pascal far FMalloc (ulong);
  23. void pascal far FMfree (uchar far *);
  24. uchar far * pascal far LMalloc (ushort);
  25. void pascal far fpbToVA (char far *, va, ushort);
  26. void pascal far pbToVA (char *, va, ushort);
  27. void pascal far VATofpb (va, char far *, ushort);
  28. void pascal far VATopb (va, char *, ushort);
  29. void pascal far VAToVA (va, va, ulong);
  30. f pascal far VMInit (void);
  31. ulong pascal far VMreadlong (va);
  32. void pascal far VMwritelong (va, long);
  33. void pascal far VMFinish(void);
  34. void pascal far VMFlush (void);
  35. void pascal far VMShrink(f);
  36. #ifdef DEBUG
  37. void pascal far _vmChk (long, long);
  38. #else
  39. #define _vmChk(x,y)
  40. #endif