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