From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/mvdm/wow16/write/printdef.h | 59 +++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 private/mvdm/wow16/write/printdef.h (limited to 'private/mvdm/wow16/write/printdef.h') diff --git a/private/mvdm/wow16/write/printdef.h b/private/mvdm/wow16/write/printdef.h new file mode 100644 index 000000000..964553178 --- /dev/null +++ b/private/mvdm/wow16/write/printdef.h @@ -0,0 +1,59 @@ +/************************************************************/ +/* Windows Write, Copyright 1985-1992 Microsoft Corporation */ +/************************************************************/ + +/* printdefs.h */ + +#ifndef PAGEONLY /* ifdef for page table declarations only */ + +#define wNotSpooler 12741 /* an infamous number */ + +#define cchMaxProfileSz 256 +#define cchMaxIDSTR 30 + +struct PLD + { /* print line descriptor */ + typeCP cp; + int ichCp; + RECT rc; + BOOL fParaFirst; + }; + +#define cwPLD (sizeof(struct PLD) / sizeof(int)) +#define cpldInit 25 +#define cpldChunk 10 +#define cpldRH 5 + +#endif /* PAGEONLY */ + +#define ipgdMaxFile 2 + +struct PGD + { + int pgn; + typeCP cpMin; + }; + +#define bcpPGD 2 +#define cchPGD (sizeof(struct PGD)) +#define cwPGD (sizeof(struct PGD) / sizeof(int)) +#define cpgdChunk 10 +#define cwPgtbBase 2 + +struct PGTB + { /* Page table */ + int cpgd; /* Number of entries (sorted ascending) */ + int cpgdMax; /* Heap space allocated */ + struct PGD rgpgd[ipgdMaxFile]; /* Size varies */ + }; + +struct PDB + { /* Print dialog buffer */ + struct PLD (**hrgpld)[]; + int ipld; + int ipldCur; + struct PGTB **hpgtb; + int ipgd; + BOOL fCancel; + BOOL fRemove; + }; -- cgit v1.2.3