Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-dcerpc-spoolss.h
1 /* packet-dcerpc-spoolss.h
2 * Routines for SMB \PIPE\spoolss packet disassembly
3 * Copyright 2001, Tim Potter <tpot@samba.org>
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef __PACKET_DCERPC_SPOOLSS_H
13 #define __PACKET_DCERPC_SPOOLSS_H
14
15 /* Functions available on the SPOOLSS pipe. From Samba,
16 include/rpc_spoolss.h */
17
18 #define SPOOLSS_ENUMPRINTERS 0x00
19 #define SPOOLSS_OPENPRINTER 0x01
20 #define SPOOLSS_SETJOB 0x02
21 #define SPOOLSS_GETJOB 0x03
22 #define SPOOLSS_ENUMJOBS 0x04
23 #define SPOOLSS_ADDPRINTER 0x05
24 #define SPOOLSS_DELETEPRINTER 0x06
25 #define SPOOLSS_SETPRINTER 0x07
26 #define SPOOLSS_GETPRINTER 0x08
27 #define SPOOLSS_ADDPRINTERDRIVER 0x09
28 #define SPOOLSS_ENUMPRINTERDRIVERS 0x0a
29 #define SPOOLSS_GETPRINTERDRIVER 0x0b
30 #define SPOOLSS_GETPRINTERDRIVERDIRECTORY 0x0c
31 #define SPOOLSS_DELETEPRINTERDRIVER 0x0d
32 #define SPOOLSS_ADDPRINTPROCESSOR 0x0e
33 #define SPOOLSS_ENUMPRINTPROCESSORS 0x0f
34 #define SPOOLSS_GETPRINTPROCESSORDIRECTORY 0x10
35 #define SPOOLSS_STARTDOCPRINTER 0x11
36 #define SPOOLSS_STARTPAGEPRINTER 0x12
37 #define SPOOLSS_WRITEPRINTER 0x13
38 #define SPOOLSS_ENDPAGEPRINTER 0x14
39 #define SPOOLSS_ABORTPRINTER 0x15
40 #define SPOOLSS_READPRINTER 0x16
41 #define SPOOLSS_ENDDOCPRINTER 0x17
42 #define SPOOLSS_ADDJOB 0x18
43 #define SPOOLSS_SCHEDULEJOB 0x19
44 #define SPOOLSS_GETPRINTERDATA 0x1a
45 #define SPOOLSS_SETPRINTERDATA 0x1b
46 #define SPOOLSS_WAITFORPRINTERCHANGE 0x1c
47 #define SPOOLSS_CLOSEPRINTER 0x1d
48 #define SPOOLSS_ADDFORM 0x1e
49 #define SPOOLSS_DELETEFORM 0x1f
50 #define SPOOLSS_GETFORM 0x20
51 #define SPOOLSS_SETFORM 0x21
52 #define SPOOLSS_ENUMFORMS 0x22
53 #define SPOOLSS_ENUMPORTS 0x23
54 #define SPOOLSS_ENUMMONITORS 0x24
55 #define SPOOLSS_ADDPORT 0x25
56 #define SPOOLSS_CONFIGUREPORT 0x26
57 #define SPOOLSS_DELETEPORT 0x27
58 #define SPOOLSS_CREATEPRINTERIC 0x28
59 #define SPOOLSS_PLAYGDISCRIPTONPRINTERIC 0x29
60 #define SPOOLSS_DELETEPRINTERIC 0x2a
61 #define SPOOLSS_ADDPRINTERCONNECTION 0x2b
62 #define SPOOLSS_DELETEPRINTERCONNECTION 0x2c
63 #define SPOOLSS_PRINTERMESSAGEBOX 0x2d
64 #define SPOOLSS_ADDMONITOR 0x2e
65 #define SPOOLSS_DELETEMONITOR 0x2f
66 #define SPOOLSS_DELETEPRINTPROCESSOR 0x30
67 #define SPOOLSS_ADDPRINTPROVIDER 0x31
68 #define SPOOLSS_DELETEPRINTPROVIDER 0x32
69 #define SPOOLSS_ENUMPRINTPROCDATATYPES 0x33
70 #define SPOOLSS_RESETPRINTER 0x34
71 #define SPOOLSS_GETPRINTERDRIVER2 0x35
72 #define SPOOLSS_FINDFIRSTPRINTERCHANGENOTIFICATION 0x36
73 #define SPOOLSS_FINDNEXTPRINTERCHANGENOTIFICATION 0x37
74 #define SPOOLSS_FCPN 0x38
75 #define SPOOLSS_ROUTERFINDFIRSTPRINTERNOTIFICATIONOLD 0x39
76 #define SPOOLSS_REPLYOPENPRINTER 0x3a
77 #define SPOOLSS_ROUTERREPLYPRINTER 0x3b
78 #define SPOOLSS_REPLYCLOSEPRINTER 0x3c
79 #define SPOOLSS_ADDPORTEX 0x3d
80 #define SPOOLSS_REMOTEFINDFIRSTPRINTERCHANGENOTIFICATION 0x3e
81 #define SPOOLSS_SPOOLERINIT 0x3f
82 #define SPOOLSS_RESETPRINTEREX 0x40
83 #define SPOOLSS_RFFPCNEX 0x41
84 #define SPOOLSS_RRPCN 0x42
85 #define SPOOLSS_RFNPCNEX 0x43
86 #define SPOOLSS_OPENPRINTEREX 0x45
87 #define SPOOLSS_ADDPRINTEREX 0x46
88 #define SPOOLSS_ENUMPRINTERDATA 0x48
89 #define SPOOLSS_DELETEPRINTERDATA 0x49
90 #define SPOOLSS_SETPRINTERDATAEX 0x4d
91 #define SPOOLSS_GETPRINTERDATAEX 0x4e
92 #define SPOOLSS_ENUMPRINTERDATAEX 0x4f
93 #define SPOOLSS_ENUMPRINTERKEY 0x50
94 #define SPOOLSS_DELETEPRINTERDATAEX 0x51
95 #define SPOOLSS_DELETEPRINTERDRIVEREX 0x54
96 #define SPOOLSS_ADDPRINTERDRIVEREX 0x59
97
98 /* Form types */
99
100 #define SPOOLSS_FORM_USER 0
101 #define SPOOLSS_FORM_BUILTIN 1
102 #define SPOOLSS_FORM_PRINTER 2
103
104 /* Printer change notification flags */
105
106 #define SPOOLSS_PRINTER_CHANGE_ADD_PRINTER 0x00000001
107 #define SPOOLSS_PRINTER_CHANGE_SET_PRINTER 0x00000002
108 #define SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER 0x00000004
109 #define SPOOLSS_PRINTER_CHANGE_FAILED_CONNECTION_PRINTER 0x00000008
110 #define SPOOLSS_PRINTER_CHANGE_PRINTER (SPOOLSS_PRINTER_CHANGE_ADD_PRINTER | \
111 SPOOLSS_PRINTER_CHANGE_SET_PRINTER | \
112 SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER | \
113 SPOOLSS_PRINTER_CHANGE_FAILED_CONNECTION_PRINTER )
114 #define SPOOLSS_PRINTER_CHANGE_ADD_JOB 0x00000100
115 #define SPOOLSS_PRINTER_CHANGE_SET_JOB 0x00000200
116 #define SPOOLSS_PRINTER_CHANGE_DELETE_JOB 0x00000400
117 #define SPOOLSS_PRINTER_CHANGE_WRITE_JOB 0x00000800
118 #define SPOOLSS_PRINTER_CHANGE_JOB (SPOOLSS_PRINTER_CHANGE_ADD_JOB | \
119 SPOOLSS_PRINTER_CHANGE_SET_JOB | \
120 SPOOLSS_PRINTER_CHANGE_DELETE_JOB | \
121 SPOOLSS_PRINTER_CHANGE_WRITE_JOB )
122 #define SPOOLSS_PRINTER_CHANGE_ADD_FORM 0x00010000
123 #define SPOOLSS_PRINTER_CHANGE_SET_FORM 0x00020000
124 #define SPOOLSS_PRINTER_CHANGE_DELETE_FORM 0x00040000
125 #define SPOOLSS_PRINTER_CHANGE_FORM (SPOOLSS_PRINTER_CHANGE_ADD_FORM | \
126 SPOOLSS_PRINTER_CHANGE_SET_FORM | \
127 SPOOLSS_PRINTER_CHANGE_DELETE_FORM )
128
129 #define SPOOLSS_PRINTER_CHANGE_ADD_PORT 0x00100000
130 #define SPOOLSS_PRINTER_CHANGE_CONFIGURE_PORT 0x00200000
131 #define SPOOLSS_PRINTER_CHANGE_DELETE_PORT 0x00400000
132 #define SPOOLSS_PRINTER_CHANGE_PORT (SPOOLSS_PRINTER_CHANGE_ADD_PORT | \
133 SPOOLSS_PRINTER_CHANGE_CONFIGURE_PORT | \
134 SPOOLSS_PRINTER_CHANGE_DELETE_PORT )
135
136 #define SPOOLSS_PRINTER_CHANGE_ADD_PRINT_PROCESSOR 0x01000000
137 #define SPOOLSS_PRINTER_CHANGE_DELETE_PRINT_PROCESSOR 0x04000000
138 #define SPOOLSS_PRINTER_CHANGE_PRINT_PROCESSOR (SPOOLSS_PRINTER_CHANGE_ADD_PRINT_PROCESSOR | \
139 SPOOLSS_PRINTER_CHANGE_DELETE_PRINT_PROCESSOR )
140
141 #define SPOOLSS_PRINTER_CHANGE_ADD_PRINTER_DRIVER 0x10000000
142 #define SPOOLSS_PRINTER_CHANGE_SET_PRINTER_DRIVER 0x20000000
143 #define SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER_DRIVER 0x40000000
144 #define SPOOLSS_PRINTER_CHANGE_PRINTER_DRIVER (SPOOLSS_PRINTER_CHANGE_ADD_PRINTER_DRIVER | \
145 SPOOLSS_PRINTER_CHANGE_SET_PRINTER_DRIVER | \
146 SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER_DRIVER )
147
148 #define SPOOLSS_PRINTER_CHANGE_TIMEOUT 0x80000000
149 #define SPOOLSS_PRINTER_CHANGE_ALL (SPOOLSS_PRINTER_CHANGE_JOB | \
150 SPOOLSS_PRINTER_CHANGE_FORM | \
151 SPOOLSS_PRINTER_CHANGE_PORT | \
152 SPOOLSS_PRINTER_CHANGE_PRINT_PROCESSOR | \
153 SPOOLSS_PRINTER_CHANGE_PRINTER_DRIVER )
154
155 /* Printer notify option types */
156
157 #define PRINTER_NOTIFY_TYPE 0x00
158 #define JOB_NOTIFY_TYPE 0x01
159
160 /* Printer notify option flags */
161
162 #define PRINTER_NOTIFY_OPTIONS_REFRESH 0x01
163
164 /* Printer notify options */
165
166 #define PRINTER_NOTIFY_SERVER_NAME 0x00
167 #define PRINTER_NOTIFY_PRINTER_NAME 0x01
168 #define PRINTER_NOTIFY_SHARE_NAME 0x02
169 #define PRINTER_NOTIFY_PORT_NAME 0x03
170 #define PRINTER_NOTIFY_DRIVER_NAME 0x04
171 #define PRINTER_NOTIFY_COMMENT 0x05
172 #define PRINTER_NOTIFY_LOCATION 0x06
173 #define PRINTER_NOTIFY_DEVMODE 0x07
174 #define PRINTER_NOTIFY_SEPFILE 0x08
175 #define PRINTER_NOTIFY_PRINT_PROCESSOR 0x09
176 #define PRINTER_NOTIFY_PARAMETERS 0x0A
177 #define PRINTER_NOTIFY_DATATYPE 0x0B
178 #define PRINTER_NOTIFY_SECURITY_DESCRIPTOR 0x0C
179 #define PRINTER_NOTIFY_ATTRIBUTES 0x0D
180 #define PRINTER_NOTIFY_PRIORITY 0x0E
181 #define PRINTER_NOTIFY_DEFAULT_PRIORITY 0x0F
182 #define PRINTER_NOTIFY_START_TIME 0x10
183 #define PRINTER_NOTIFY_UNTIL_TIME 0x11
184 #define PRINTER_NOTIFY_STATUS 0x12
185 #define PRINTER_NOTIFY_STATUS_STRING 0x13
186 #define PRINTER_NOTIFY_CJOBS 0x14
187 #define PRINTER_NOTIFY_AVERAGE_PPM 0x15
188 #define PRINTER_NOTIFY_TOTAL_PAGES 0x16
189 #define PRINTER_NOTIFY_PAGES_PRINTED 0x17
190 #define PRINTER_NOTIFY_TOTAL_BYTES 0x18
191 #define PRINTER_NOTIFY_BYTES_PRINTED 0x19
192
193 /* Job notify options */
194
195 #define JOB_NOTIFY_PRINTER_NAME 0x00
196 #define JOB_NOTIFY_MACHINE_NAME 0x01
197 #define JOB_NOTIFY_PORT_NAME 0x02
198 #define JOB_NOTIFY_USER_NAME 0x03
199 #define JOB_NOTIFY_NOTIFY_NAME 0x04
200 #define JOB_NOTIFY_DATATYPE 0x05
201 #define JOB_NOTIFY_PRINT_PROCESSOR 0x06
202 #define JOB_NOTIFY_PARAMETERS 0x07
203 #define JOB_NOTIFY_DRIVER_NAME 0x08
204 #define JOB_NOTIFY_DEVMODE 0x09
205 #define JOB_NOTIFY_STATUS 0x0A
206 #define JOB_NOTIFY_STATUS_STRING 0x0B
207 #define JOB_NOTIFY_SECURITY_DESCRIPTOR 0x0C
208 #define JOB_NOTIFY_DOCUMENT 0x0D
209 #define JOB_NOTIFY_PRIORITY 0x0E
210 #define JOB_NOTIFY_POSITION 0x0F
211 #define JOB_NOTIFY_SUBMITTED 0x10
212 #define JOB_NOTIFY_START_TIME 0x11
213 #define JOB_NOTIFY_UNTIL_TIME 0x12
214 #define JOB_NOTIFY_TIME 0x13
215 #define JOB_NOTIFY_TOTAL_PAGES 0x14
216 #define JOB_NOTIFY_PAGES_PRINTED 0x15
217 #define JOB_NOTIFY_TOTAL_BYTES 0x16
218 #define JOB_NOTIFY_BYTES_PRINTED 0x17
219
220 /* Printer status codes */
221
222 #define PRINTER_STATUS_OK 0x00000000
223 #define PRINTER_STATUS_PAUSED 0x00000001
224 #define PRINTER_STATUS_ERROR 0x00000002
225 #define PRINTER_STATUS_PENDING_DELETION 0x00000004
226 #define PRINTER_STATUS_PAPER_JAM 0x00000008
227 #define PRINTER_STATUS_PAPER_OUT 0x00000010
228 #define PRINTER_STATUS_MANUAL_FEED 0x00000020
229 #define PRINTER_STATUS_PAPER_PROBLEM 0x00000040
230 #define PRINTER_STATUS_OFFLINE 0x00000080
231 #define PRINTER_STATUS_IO_ACTIVE 0x00000100
232 #define PRINTER_STATUS_BUSY 0x00000200
233 #define PRINTER_STATUS_PRINTING 0x00000400
234 #define PRINTER_STATUS_OUTPUT_BIN_FULL 0x00000800
235 #define PRINTER_STATUS_NOT_AVAILABLE 0x00001000
236 #define PRINTER_STATUS_WAITING 0x00002000
237 #define PRINTER_STATUS_PROCESSING 0x00004000
238 #define PRINTER_STATUS_INITIALIZING 0x00008000
239 #define PRINTER_STATUS_WARMING_UP 0x00010000
240 #define PRINTER_STATUS_TONER_LOW 0x00020000
241 #define PRINTER_STATUS_NO_TONER 0x00040000
242 #define PRINTER_STATUS_PAGE_PUNT 0x00080000
243 #define PRINTER_STATUS_USER_INTERVENTION 0x00100000
244 #define PRINTER_STATUS_OUT_OF_MEMORY 0x00200000
245 #define PRINTER_STATUS_DOOR_OPEN 0x00400000
246 #define PRINTER_STATUS_SERVER_UNKNOWN 0x00800000
247 #define PRINTER_STATUS_POWER_SAVE 0x01000000
248
249 /* Job status codes */
250
251 #define JOB_STATUS_PAUSED 0x00000001
252 #define JOB_STATUS_ERROR 0x00000002
253 #define JOB_STATUS_DELETING 0x00000004
254 #define JOB_STATUS_SPOOLING 0x00000008
255 #define JOB_STATUS_PRINTING 0x00000010
256 #define JOB_STATUS_OFFLINE 0x00000020
257 #define JOB_STATUS_PAPEROUT 0x00000040
258 #define JOB_STATUS_PRINTED 0x00000080
259 #define JOB_STATUS_DELETED 0x00000100
260 #define JOB_STATUS_BLOCKED 0x00000200
261 #define JOB_STATUS_USER_INTERVENTION 0x00000400
262
263 /* Printer attributes */
264
265 #define PRINTER_ATTRIBUTE_QUEUED 0x00000001
266 #define PRINTER_ATTRIBUTE_DIRECT 0x00000002
267 #define PRINTER_ATTRIBUTE_DEFAULT 0x00000004
268 #define PRINTER_ATTRIBUTE_SHARED 0x00000008
269 #define PRINTER_ATTRIBUTE_NETWORK 0x00000010
270 #define PRINTER_ATTRIBUTE_HIDDEN 0x00000020
271 #define PRINTER_ATTRIBUTE_LOCAL 0x00000040
272 #define PRINTER_ATTRIBUTE_ENABLE_DEVQ 0x00000080
273 #define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS 0x00000100
274 #define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST 0x00000200
275 #define PRINTER_ATTRIBUTE_WORK_OFFLINE 0x00000400
276 #define PRINTER_ATTRIBUTE_ENABLE_BIDI 0x00000800
277 #define PRINTER_ATTRIBUTE_RAW_ONLY 0x00001000
278 #define PRINTER_ATTRIBUTE_PUBLISHED 0x00002000
279
280 /* Setprinter control commands */
281
282 #define SPOOLSS_PRINTER_CONTROL_UNPAUSE 0x00000000
283 #define SPOOLSS_PRINTER_CONTROL_PAUSE 0x00000001
284 #define SPOOLSS_PRINTER_CONTROL_RESUME 0x00000002
285 #define SPOOLSS_PRINTER_CONTROL_PURGE 0x00000003
286 #define SPOOLSS_PRINTER_CONTROL_SET_STATUS 0x00000004
287
288 /* Specific access rights */
289
290 #define SERVER_ACCESS_ADMINISTER 0x00000001
291 #define SERVER_ACCESS_ENUMERATE 0x00000002
292 #define PRINTER_ACCESS_ADMINISTER 0x00000004
293 #define PRINTER_ACCESS_USE 0x00000008
294 #define JOB_ACCESS_ADMINISTER 0x00000010
295
296 /* Enumprinters flags */
297
298 #define PRINTER_ENUM_DEFAULT 0x00000001
299 #define PRINTER_ENUM_LOCAL 0x00000002
300 #define PRINTER_ENUM_CONNECTIONS 0x00000004
301 #define PRINTER_ENUM_FAVORITE 0x00000004
302 #define PRINTER_ENUM_NAME 0x00000008
303 #define PRINTER_ENUM_REMOTE 0x00000010
304 #define PRINTER_ENUM_SHARED 0x00000020
305 #define PRINTER_ENUM_NETWORK 0x00000040
306
307 /* Devicemode field flags */
308
309 #define DEVMODE_ORIENTATION 0x00000001
310 #define DEVMODE_PAPERSIZE 0x00000002
311 #define DEVMODE_PAPERLENGTH 0x00000004
312 #define DEVMODE_PAPERWIDTH 0x00000008
313 #define DEVMODE_SCALE 0x00000010
314 #define DEVMODE_POSITION 0x00000020
315 #define DEVMODE_NUP 0x00000040
316 #define DEVMODE_COPIES 0x00000100
317 #define DEVMODE_DEFAULTSOURCE 0x00000200
318 #define DEVMODE_PRINTQUALITY 0x00000400
319 #define DEVMODE_COLOR 0x00000800
320 #define DEVMODE_DUPLEX 0x00001000
321 #define DEVMODE_YRESOLUTION 0x00002000
322 #define DEVMODE_TTOPTION 0x00004000
323 #define DEVMODE_COLLATE 0x00008000
324 #define DEVMODE_FORMNAME 0x00010000
325 #define DEVMODE_LOGPIXELS 0x00020000
326 #define DEVMODE_BITSPERPEL 0x00040000
327 #define DEVMODE_PELSWIDTH 0x00080000
328 #define DEVMODE_PELSHEIGHT 0x00100000
329 #define DEVMODE_DISPLAYFLAGS 0x00200000
330 #define DEVMODE_DISPLAYFREQUENCY 0x00400000
331 #define DEVMODE_ICMMETHOD 0x00800000
332 #define DEVMODE_ICMINTENT 0x01000000
333 #define DEVMODE_MEDIATYPE 0x02000000
334 #define DEVMODE_DITHERTYPE 0x04000000
335 #define DEVMODE_PANNINGWIDTH 0x08000000
336 #define DEVMODE_PANNINGHEIGHT 0x10000000
337
338 /* Devicemode paper orientation */
339
340 #define DEVMODE_ORIENTATION_PORTRAIT 1
341 #define DEVMODE_ORIENTATION_LANDSCAPE 2
342
343 /* Devicemode paper size */
344
345 #define DEVMODE_PAPERSIZE_LETTER 1
346 #define DEVMODE_PAPERSIZE_LETTERSMALL 2
347 #define DEVMODE_PAPERSIZE_TABLOID 3
348 #define DEVMODE_PAPERSIZE_LEDGER 4
349 #define DEVMODE_PAPERSIZE_LEGAL 5
350 #define DEVMODE_PAPERSIZE_STATEMENT 6
351 #define DEVMODE_PAPERSIZE_EXECUTIVE 7
352 #define DEVMODE_PAPERSIZE_A3 8
353 #define DEVMODE_PAPERSIZE_A4 9
354 #define DEVMODE_PAPERSIZE_A4SMALL 10
355 #define DEVMODE_PAPERSIZE_A5 11
356 #define DEVMODE_PAPERSIZE_B4 12
357 #define DEVMODE_PAPERSIZE_B5 13
358 #define DEVMODE_PAPERSIZE_FOLIO 14
359 #define DEVMODE_PAPERSIZE_QUARTO 15
360 #define DEVMODE_PAPERSIZE_10X14 16
361 #define DEVMODE_PAPERSIZE_11X17 17
362 #define DEVMODE_PAPERSIZE_NOTE 18
363 #define DEVMODE_PAPERSIZE_ENV9 19
364 #define DEVMODE_PAPERSIZE_ENV10 20
365 #define DEVMODE_PAPERSIZE_ENV11 21
366 #define DEVMODE_PAPERSIZE_ENV12 22
367 #define DEVMODE_PAPERSIZE_ENV14 23
368 #define DEVMODE_PAPERSIZE_CSHEET 24
369 #define DEVMODE_PAPERSIZE_DSHEET 25
370 #define DEVMODE_PAPERSIZE_ESHEET 26
371 #define DEVMODE_PAPERSIZE_ENVDL 27
372 #define DEVMODE_PAPERSIZE_ENVC5 28
373 #define DEVMODE_PAPERSIZE_ENVC3 29
374 #define DEVMODE_PAPERSIZE_ENVC4 30
375 #define DEVMODE_PAPERSIZE_ENVC6 31
376 #define DEVMODE_PAPERSIZE_ENVC65 32
377 #define DEVMODE_PAPERSIZE_ENVB4 33
378 #define DEVMODE_PAPERSIZE_ENVB5 34
379 #define DEVMODE_PAPERSIZE_ENVB6 35
380 #define DEVMODE_PAPERSIZE_ENVITALY 36
381 #define DEVMODE_PAPERSIZE_ENVMONARCH 37
382 #define DEVMODE_PAPERSIZE_ENVPERSONAL 38
383 #define DEVMODE_PAPERSIZE_FANFOLDUS 39
384 #define DEVMODE_PAPERSIZE_FANFOLDSTDGERMAN 40
385 #define DEVMODE_PAPERSIZE_FANFOLDLGLGERMAN 41
386 #define DEVMODE_PAPERSIZE_ISOB4 42
387 #define DEVMODE_PAPERSIZE_JAPANESEPOSTCARD 43
388 #define DEVMODE_PAPERSIZE_9X11 44
389 #define DEVMODE_PAPERSIZE_10X11 45
390 #define DEVMODE_PAPERSIZE_15X11 46
391 #define DEVMODE_PAPERSIZE_ENVINVITE 47
392 #define DEVMODE_PAPERSIZE_RESERVED48 48
393 #define DEVMODE_PAPERSIZE_RESERVED49 49
394 #define DEVMODE_PAPERSIZE_LETTEREXTRA 50
395 #define DEVMODE_PAPERSIZE_LEGALEXTRA 51
396 #define DEVMODE_PAPERSIZE_TABLOIDEXTRA 52
397 #define DEVMODE_PAPERSIZE_A4EXTRA 53
398 #define DEVMODE_PAPERSIZE_LETTERTRANS 54
399 #define DEVMODE_PAPERSIZE_A4TRANS 55
400 #define DEVMODE_PAPERSIZE_LETTEREXTRATRANS 56
401 #define DEVMODE_PAPERSIZE_APLUS 57
402 #define DEVMODE_PAPERSIZE_BPLUS 58
403 #define DEVMODE_PAPERSIZE_LETTERPLUS 59
404 #define DEVMODE_PAPERSIZE_A4PLUS 60
405 #define DEVMODE_PAPERSIZE_A5TRANS 61
406 #define DEVMODE_PAPERSIZE_B5TRANS 62
407 #define DEVMODE_PAPERSIZE_A3EXTRA 63
408 #define DEVMODE_PAPERSIZE_A5EXTRA 64
409 #define DEVMODE_PAPERSIZE_B5EXTRA 65
410 #define DEVMODE_PAPERSIZE_A2 66
411 #define DEVMODE_PAPERSIZE_A3TRANS 67
412 #define DEVMODE_PAPERSIZE_A3EXTRATRANS 68
413 #define DEVMODE_PAPERSIZE_DBLJAPANESEPOSTCARD 69
414 #define DEVMODE_PAPERSIZE_A6 70
415 #define DEVMODE_PAPERSIZE_JENVKAKU2 71
416 #define DEVMODE_PAPERSIZE_JENVKAKU3 72
417 #define DEVMODE_PAPERSIZE_JENVCHOU3 73
418 #define DEVMODE_PAPERSIZE_JENVCHOU4 74
419 #define DEVMODE_PAPERSIZE_LETTERROT 75
420 #define DEVMODE_PAPERSIZE_A3ROT 76
421 #define DEVMODE_PAPERSIZE_A4ROT 77
422 #define DEVMODE_PAPERSIZE_A5ROT 78
423 #define DEVMODE_PAPERSIZE_B4JISROT 79
424 #define DEVMODE_PAPERSIZE_B5JISROT 80
425 #define DEVMODE_PAPERSIZE_JAPANESEPOSTCARDROT 81
426 #define DEVMODE_PAPERSIZE_DBLJAPANESEPOSTCARDROT82 82
427 #define DEVMODE_PAPERSIZE_A6ROT 83
428 #define DEVMODE_PAPERSIZE_JENVKAKU2ROT 84
429 #define DEVMODE_PAPERSIZE_JENVKAKU3ROT 85
430 #define DEVMODE_PAPERSIZE_JENVCHOU3ROT 86
431 #define DEVMODE_PAPERSIZE_JENVCHOU4ROT 87
432 #define DEVMODE_PAPERSIZE_B6JIS 88
433 #define DEVMODE_PAPERSIZE_B6JISROT 89
434 #define DEVMODE_PAPERSIZE_12X11 90
435 #define DEVMODE_PAPERSIZE_JENVYOU4 91
436 #define DEVMODE_PAPERSIZE_JENVYOU4ROT 92
437 #define DEVMODE_PAPERSIZE_P16K 93
438 #define DEVMODE_PAPERSIZE_P32K 94
439 #define DEVMODE_PAPERSIZE_P32KBIG 95
440 #define DEVMODE_PAPERSIZE_PENV1 96
441 #define DEVMODE_PAPERSIZE_PENV2 97
442 #define DEVMODE_PAPERSIZE_PENV3 98
443 #define DEVMODE_PAPERSIZE_PENV4 99
444 #define DEVMODE_PAPERSIZE_PENV5 100
445 #define DEVMODE_PAPERSIZE_PENV6 101
446 #define DEVMODE_PAPERSIZE_PENV7 102
447 #define DEVMODE_PAPERSIZE_PENV8 103
448 #define DEVMODE_PAPERSIZE_PENV9 104
449 #define DEVMODE_PAPERSIZE_PENV10 105
450 #define DEVMODE_PAPERSIZE_P16KROT 106
451 #define DEVMODE_PAPERSIZE_P32KROT 107
452 #define DEVMODE_PAPERSIZE_P32KBIGROT 108
453 #define DEVMODE_PAPERSIZE_PENV1ROT 109
454 #define DEVMODE_PAPERSIZE_PENV2ROT 110
455 #define DEVMODE_PAPERSIZE_PENV3ROT 111
456 #define DEVMODE_PAPERSIZE_PENV4ROT 112
457 #define DEVMODE_PAPERSIZE_PENV5ROT 113
458 #define DEVMODE_PAPERSIZE_PENV6ROT 114
459 #define DEVMODE_PAPERSIZE_PENV7ROT 115
460 #define DEVMODE_PAPERSIZE_PENV8ROT 116
461 #define DEVMODE_PAPERSIZE_PENV9ROT 117
462 #define DEVMODE_PAPERSIZE_PENV10ROT 118
463
464 /* Devicemode paper source */
465
466 #define DEVMODE_PAPERSOURCE_UPPER 1
467 #define DEVMODE_PAPERSOURCE_LOWER 2
468 #define DEVMODE_PAPERSOURCE_MIDDLE 3
469 #define DEVMODE_PAPERSOURCE_MANUAL 4
470 #define DEVMODE_PAPERSOURCE_ENV 5
471 #define DEVMODE_PAPERSOURCE_ENVMANUAL 6
472 #define DEVMODE_PAPERSOURCE_AUTO 7
473 #define DEVMODE_PAPERSOURCE_TRACTOR 8
474 #define DEVMODE_PAPERSOURCE_SMALLFMT 9
475 #define DEVMODE_PAPERSOURCE_LARGEFMAT 10
476 #define DEVMODE_PAPERSOURCE_LARGECAP 11
477 #define DEVMODE_PAPERSOURCE_CASSETTE 12
478 #define DEVMODE_PAPERSOURCE_FORMSRC 13
479
480 /* Devicemode print quality */
481
482 #define DEVMODE_PRINTQUALITY_HIGH -1
483 #define DEVMODE_PRINTQUALITY_MEDIUM -2
484 #define DEVMODE_PRINTQUALITY_LOW -3
485 #define DEVMODE_PRINTQUALITY_DRAFT -4
486
487 /* Colour settings */
488
489 #define DEVMODE_COLOUR_MONO 1
490 #define DEVMODE_COLOUR_COLOUR 2
491
492 /* TrueType options */
493
494 #define DEVMODE_TTOPTION_BITMAP 1
495 #define DEVMODE_TTOPTION_DOWNLOAD 2
496 #define DEVMODE_TTOPTION_SUBDEV 3
497 #define DEVMODE_TTOPTION_DOWNLOAD_OUTLINE 4
498
499 /* Collate info */
500
501 #define DEVMODE_COLLATE_FALSE 0
502 #define DEVMODE_COLLATE_TRUE 1
503
504 /* Duplex info */
505
506 #define DEVMODE_DUPLEX_SIMPLEX 1
507 #define DEVMODE_DUPLEX_VERT 2
508 #define DEVMODE_DUPLEX_HORIZ 3
509
510 /* Displayflags */
511
512 #define DEVMODE_DISPLAYFLAGS_GRAYSCALE 1
513 #define DEVMODE_DISPLAYFLAGS_INTERLACED 2
514
515 /* ICM method */
516
517 #define DEVMODE_ICMMETHOD_NONE 1
518 #define DEVMODE_ICMMETHOD_SYSTEM 2
519 #define DEVMODE_ICMMETHOD_DRIVER 3
520 #define DEVMODE_ICMMETHOD_DEVICE 4
521
522 /* ICM intent */
523
524 #define DEVMODE_ICMINTENT_SATURATE 1
525 #define DEVMODE_ICMINTENT_CONTRAST 2
526 #define DEVMODE_ICMINTENT_COLORIMETRIC 3
527 #define DEVMODE_ICMINTENT_ABS_COLORIMETRIC 4
528
529 /* Media type */
530
531 #define DEVMODE_MEDIATYPE_STANDARD 1
532 #define DEVMODE_MEDIATYPE_TRANSPARENCY 2
533 #define DEVMODE_MEDIATYPE_GLOSSY 3
534
535 /* Dither type */
536
537 #define DEVMODE_DITHERTYPE_NONE 1
538 #define DEVMODE_DITHERTYPE_COARSE 2
539 #define DEVMODE_DITHERTYPE_LINE 3
540 #define DEVMODE_DITHERTYPE_LINEART 4
541 #define DEVMODE_DITHERTYPE_ERRORDIFFUSION 5
542 #define DEVMODE_DITHERTYPE_RESERVED6 6
543 #define DEVMODE_DITHERTYPE_RESERVED7 7
544 #define DEVMODE_DITHERTYPE_GRAYSCALE 10
545
546 /* Printer info level 7 */
547
548 #define DS_PUBLISH 1
549 #define DS_UPDATE 2
550 #define DS_UNPUBLISH 3
551
552 /* SetJob command values */
553
554 #define JOB_CONTROL_PAUSE 1
555 #define JOB_CONTROL_RESUME 2
556 #define JOB_CONTROL_CANCEL 3
557 #define JOB_CONTROL_RESTART 4
558 #define JOB_CONTROL_DELETE 5
559
560 #endif /* packet-dcerpc-spoolss.h */