Source code of Windows XP (NT5)
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.

69 lines
2.1 KiB

  1. NAME_LEN equ 32
  2. BLOCK_SIZE equ 512
  3. DEV_PRD equ 8888h
  4. DEV_PORT equ 8888h
  5. DEV_LAND equ 8889h
  6. HSIZE equ 8d ;HorzSize
  7. VSIZE equ 11d ;VertSize
  8. VSIZE_LEGAL equ 14d ;VertSize
  9. MM_HSIZE equ 203 ;Horizontal size in millimeter
  10. MM_HSIZE0 equ 2032
  11. MM_HSIZE00 equ 20320
  12. MM_VSIZE equ 279 ;Vertical size in millimeter
  13. MM_VSIZE0 equ 2794
  14. MM_VSIZE00 equ 27940
  15. MM_VSIZE_LEGAL equ 356 ;Vertical size in millimeter
  16. MM_VSIZE0_LEGAL equ 3556
  17. MM_VSIZE00_LEGAL equ 35560
  18. EnglishLo1 equ 800 ;HorzSize * 1000 scaled (/254)
  19. EnglishLo2 equ 1100 ;VertSize * 1000 scaled (/254)
  20. EnglishHi1 equ 8000 ;HorzSize * 10000 scaled (/254)
  21. EnglishHi2 equ 11000 ;VertSize * 10000 scaled (/254)
  22. EnglishHi3 equ EnglishLo3
  23. EnglishHi4 equ EnglishLo4
  24. Twips1 equ 11520 ;HorzSize * 14400 scaled (/254)
  25. Twips2 equ 15840 ;VertSize * 14400 scaled (/254)
  26. Twips3 equ EnglishLo3
  27. Twips4 equ EnglishLo4
  28. EnglishLo2_LEGAL equ 1400
  29. EnglishHi2_LEGAL equ 14000 ;VertSize * 10000 scaled (/254)
  30. EnglishHi4_LEGAL equ EnglishLo4_LEGAL
  31. Twips2_LEGAL equ 20160
  32. Twips4_LEGAL equ EnglishLo4_LEGAL
  33. yMinorDist = Hypotenuse-xMajorDist
  34. xMinorDist = Hypotenuse-yMajorDist
  35. MaxStyleErr = Hypotenuse*2 ;Max error before updating
  36. ;rotating bit mask
  37. DEVICE struc
  38. deType dw 0 ;
  39. deMode dw 0 ;
  40. deJob dw 0 ;job number
  41. deWheel dw 0 ;font wheel number
  42. dePtr dw 0 ;spooler buffer pointer
  43. deYPQ dw 0
  44. deXPQ dw 0
  45. deCurx dw 0
  46. deCury dw 0
  47. deXcurwidth dw 0
  48. deYcurwidth dw 0
  49. deDoc dw 0 ;job spooled as a document or by the page
  50. deHeap dw 0
  51. deHPsize dw 0
  52. deHPptr dw 0
  53. dePhySize dd 0
  54. DEVICE ends
  55. BUFFER struc
  56. dePort db NAME_LEN dup (?); port name
  57. deSpool db BLOCK_SIZE dup (?)
  58. BUFFER ends