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.

59 lines
1.5 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. /* printdefs.h */
  5. #ifndef PAGEONLY /* ifdef for page table declarations only */
  6. #define wNotSpooler 12741 /* an infamous number */
  7. #define cchMaxProfileSz 256
  8. #define cchMaxIDSTR 30
  9. struct PLD
  10. { /* print line descriptor */
  11. typeCP cp;
  12. int ichCp;
  13. RECT rc;
  14. BOOL fParaFirst;
  15. };
  16. #define cwPLD (sizeof(struct PLD) / sizeof(int))
  17. #define cpldInit 25
  18. #define cpldChunk 10
  19. #define cpldRH 5
  20. #endif /* PAGEONLY */
  21. #define ipgdMaxFile 2
  22. struct PGD
  23. {
  24. int pgn;
  25. typeCP cpMin;
  26. };
  27. #define bcpPGD 2
  28. #define cchPGD (sizeof(struct PGD))
  29. #define cwPGD (sizeof(struct PGD) / sizeof(int))
  30. #define cpgdChunk 10
  31. #define cwPgtbBase 2
  32. struct PGTB
  33. { /* Page table */
  34. int cpgd; /* Number of entries (sorted ascending) */
  35. int cpgdMax; /* Heap space allocated */
  36. struct PGD rgpgd[ipgdMaxFile]; /* Size varies */
  37. };
  38. struct PDB
  39. { /* Print dialog buffer */
  40. struct PLD (**hrgpld)[];
  41. int ipld;
  42. int ipldCur;
  43. struct PGTB **hpgtb;
  44. int ipgd;
  45. BOOL fCancel;
  46. BOOL fRemove;
  47. };
  48.