--- mstools/h/drivinit.h 2018/08/09 18:20:01 1.1.1.1 +++ mstools/h/drivinit.h 2018/08/09 18:20:26 1.1.1.2 @@ -9,8 +9,11 @@ /* size of a device name string */ #define CCHDEVICENAME 32 +/* size of a form name string */ +#define CCHFORMNAME 32 + /* current version of specification */ -#define DM_SPECVERSION 0x300 +#define DM_SPECVERSION 0x320 /* field selection bits */ #define DM_ORIENTATION 0x0000001L @@ -23,6 +26,8 @@ #define DM_PRINTQUALITY 0x0000400L #define DM_COLOR 0x0000800L #define DM_DUPLEX 0x0001000L +#define DM_COLLATE 0x0002000L +#define DM_FORMNAME 0x0004000L /* orientation selections */ #define DMORIENT_PORTRAIT 1 @@ -30,35 +35,49 @@ /* paper selections */ #define DMPAPER_FIRST DMPAPER_LETTER -#define DMPAPER_LETTER 1 // Letter 8 1/2 x 11 in -#define DMPAPER_LETTERSMALL 2 // Letter Small 8 1/2 x 11 in -#define DMPAPER_TABLOID 3 // Tabloid 11 x 17 in -#define DMPAPER_LEDGER 4 // Ledger 17 x 11 in -#define DMPAPER_LEGAL 5 // Legal 8 1/2 x 14 in -#define DMPAPER_STATEMENT 6 // Statement 5 1/2 x 8 1/2 in -#define DMPAPER_EXECUTIVE 7 // Executive"7 1/2 x 10 in -#define DMPAPER_A3 8 // A3 297 x 420 mm -#define DMPAPER_A4 9 // A4 210 x 297 mm -#define DMPAPER_A4SMALL 10 // A4 Small 210 x 297 mm -#define DMPAPER_A5 11 // A5 148 x 210 mm -#define DMPAPER_B4 12 // B4 250 x 354 -#define DMPAPER_B5 13 // B5 182 x 257 mm -#define DMPAPER_FOLIO 14 // Folio 8 1/2 x 13 in -#define DMPAPER_QUARTO 15 // Quarto 215 x 275 mm -#define DMPAPER_10X14 16 // 10x14 in -#define DMPAPER_11X17 17 // 11x17 in -#define DMPAPER_NOTE 18 // Note 8 1/2 x 11 in -#define DMPAPER_ENV_9 19 // Envelope #9 3 7/8 x 8 7/8 -#define DMPAPER_ENV_10 20 // Envelope #10 4 1/8 x 9 1/2 -#define DMPAPER_ENV_11 21 // Envelope #11 4 1/2 x 10 3/8 -#define DMPAPER_ENV_12 22 // Envelope #12 4 \276 x 11 -#define DMPAPER_ENV_14 23 // Envelope #14 5 x 11 1/2 -#define DMPAPER_CSHEET 24 // C size sheet -#define DMPAPER_DSHEET 25 // D size sheet -#define DMPAPER_ESHEET 26 // E size sheet -#define DMPAPER_ENV_DL 27 // Envelope DL 110 x 220mm -#define DMPAPER_ENV_C5 28 // Envelope C5 162 x 229 mm -#define DMPAPER_LAST DMPAPER_ENV_C5 +#define DMPAPER_LETTER 1 /* Letter 8 1/2 x 11 in */ +#define DMPAPER_LETTERSMALL 2 /* Letter Small 8 1/2 x 11 in */ +#define DMPAPER_TABLOID 3 /* Tabloid 11 x 17 in */ +#define DMPAPER_LEDGER 4 /* Ledger 17 x 11 in */ +#define DMPAPER_LEGAL 5 /* Legal 8 1/2 x 14 in */ +#define DMPAPER_STATEMENT 6 /* Statement 5 1/2 x 8 1/2 in */ +#define DMPAPER_EXECUTIVE 7 /* Executive 7 1/4 x 10 1/2 in */ +#define DMPAPER_A3 8 /* A3 297 x 420 mm */ +#define DMPAPER_A4 9 /* A4 210 x 297 mm */ +#define DMPAPER_A4SMALL 10 /* A4 Small 210 x 297 mm */ +#define DMPAPER_A5 11 /* A5 148 x 210 mm */ +#define DMPAPER_B4 12 /* B4 250 x 354 */ +#define DMPAPER_B5 13 /* B5 182 x 257 mm */ +#define DMPAPER_FOLIO 14 /* Folio 8 1/2 x 13 in */ +#define DMPAPER_QUARTO 15 /* Quarto 215 x 275 mm */ +#define DMPAPER_10X14 16 /* 10x14 in */ +#define DMPAPER_11X17 17 /* 11x17 in */ +#define DMPAPER_NOTE 18 /* Note 8 1/2 x 11 in */ +#define DMPAPER_ENV_9 19 /* Envelope #9 3 7/8 x 8 7/8 */ +#define DMPAPER_ENV_10 20 /* Envelope #10 4 1/8 x 9 1/2 */ +#define DMPAPER_ENV_11 21 /* Envelope #11 4 1/2 x 10 3/8 */ +#define DMPAPER_ENV_12 22 /* Envelope #12 4 \276 x 11 */ +#define DMPAPER_ENV_14 23 /* Envelope #14 5 x 11 1/2 */ +#define DMPAPER_CSHEET 24 /* C size sheet */ +#define DMPAPER_DSHEET 25 /* D size sheet */ +#define DMPAPER_ESHEET 26 /* E size sheet */ +#define DMPAPER_ENV_DL 27 /* Envelope DL 110 x 220mm */ +#define DMPAPER_ENV_C5 28 /* Envelope C5 162 x 229 mm */ +#define DMPAPER_ENV_C3 29 /* Envelope C3 324 x 458 mm */ +#define DMPAPER_ENV_C4 30 /* Envelope C4 229 x 324 mm */ +#define DMPAPER_ENV_C6 31 /* Envelope C6 114 x 162 mm */ +#define DMPAPER_ENV_C65 32 /* Envelope C65 114 x 229 mm */ +#define DMPAPER_ENV_B4 33 /* Envelope B4 250 x 353 mm */ +#define DMPAPER_ENV_B5 34 /* Envelope B5 176 x 250 mm */ +#define DMPAPER_ENV_B6 35 /* Envelope B6 176 x 125 mm */ +#define DMPAPER_ENV_ITALY 36 /* Envelope 110 x 230 mm */ +#define DMPAPER_ENV_MONARCH 37 /* Envelope Monarch 3.875 x 7.5 in */ +#define DMPAPER_ENV_PERSONAL 38 /* 6 3/4 Envelope 3 5/8 x 6 1/2 in */ +#define DMPAPER_FANFOLD_US 39 /* US Std Fanfold 14 7/8 x 11 in */ +#define DMPAPER_FANFOLD_STD_GERMAN 40 /* German Std Fanfold 8 1/2 x 12 in */ +#define DMPAPER_FANFOLD_LGL_GERMAN 41 /* German Legal Fanfold 8 1/2 x 13 in */ + +#define DMPAPER_LAST DMPAPER_FANFOLD_LGL_GERMAN #define DMPAPER_USER 256 @@ -96,6 +115,10 @@ #define DMDUP_VERTICAL 2 #define DMDUP_HORIZONTAL 3 +/* Collation selections */ +#define DMCOLLATE_FALSE 0 +#define DMCOLLATE_TRUE 1 + #ifndef _WINGDI_ typedef struct _devicemode { char dmDeviceName[CCHDEVICENAME]; @@ -114,6 +137,8 @@ typedef struct _devicemode { short dmPrintQuality; short dmColor; short dmDuplex; + short dmCollate; + char dmFormName[CCHFORMNAME]; } DEVMODE; typedef DEVMODE * PDEVMODE, NEAR * NPDEVMODE, FAR * LPDEVMODE; @@ -146,6 +171,10 @@ typedef DEVMODE * PDEVMODE, NEAR * NPDEV #define DC_BINNAMES 12 #define DC_ENUMRESOLUTIONS 13 #define DC_FILEDEPENDENCIES 14 +#define DC_TRUETYPE 15 +#define DC_PAPERNAMES 16 +#define DC_ORIENTATION 17 +#define DC_COPIES 18 /* export ordinal definitions */ #define PROC_EXTDEVICEMODE MAKEINTRESOURCE(90)