| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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#define SPOOLSS_GETCOREPRINTERDRIVERS 0x66
98#define SPOOLSS_GETPRINTERDRIVERPACKAGEPATH 0x68
99
100/* Form types */
101
102#define SPOOLSS_FORM_USER 0
103#define SPOOLSS_FORM_BUILTIN 1
104#define SPOOLSS_FORM_PRINTER 2
105
106/* Printer change notification flags */
107
108#define SPOOLSS_PRINTER_CHANGE_ADD_PRINTER 0x00000001
109#define SPOOLSS_PRINTER_CHANGE_SET_PRINTER 0x00000002
110#define SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER 0x00000004
111#define SPOOLSS_PRINTER_CHANGE_FAILED_CONNECTION_PRINTER 0x00000008
112#define SPOOLSS_PRINTER_CHANGE_PRINTER (SPOOLSS_PRINTER_CHANGE_ADD_PRINTER | \
113 SPOOLSS_PRINTER_CHANGE_SET_PRINTER | \
114 SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER | \
115 SPOOLSS_PRINTER_CHANGE_FAILED_CONNECTION_PRINTER )
116#define SPOOLSS_PRINTER_CHANGE_ADD_JOB 0x00000100
117#define SPOOLSS_PRINTER_CHANGE_SET_JOB 0x00000200
118#define SPOOLSS_PRINTER_CHANGE_DELETE_JOB 0x00000400
119#define SPOOLSS_PRINTER_CHANGE_WRITE_JOB 0x00000800
120#define SPOOLSS_PRINTER_CHANGE_JOB (SPOOLSS_PRINTER_CHANGE_ADD_JOB | \
121 SPOOLSS_PRINTER_CHANGE_SET_JOB | \
122 SPOOLSS_PRINTER_CHANGE_DELETE_JOB | \
123 SPOOLSS_PRINTER_CHANGE_WRITE_JOB )
124#define SPOOLSS_PRINTER_CHANGE_ADD_FORM 0x00010000
125#define SPOOLSS_PRINTER_CHANGE_SET_FORM 0x00020000
126#define SPOOLSS_PRINTER_CHANGE_DELETE_FORM 0x00040000
127#define SPOOLSS_PRINTER_CHANGE_FORM (SPOOLSS_PRINTER_CHANGE_ADD_FORM | \
128 SPOOLSS_PRINTER_CHANGE_SET_FORM | \
129 SPOOLSS_PRINTER_CHANGE_DELETE_FORM )
130
131#define SPOOLSS_PRINTER_CHANGE_ADD_PORT 0x00100000
132#define SPOOLSS_PRINTER_CHANGE_CONFIGURE_PORT 0x00200000
133#define SPOOLSS_PRINTER_CHANGE_DELETE_PORT 0x00400000
134#define SPOOLSS_PRINTER_CHANGE_PORT (SPOOLSS_PRINTER_CHANGE_ADD_PORT | \
135 SPOOLSS_PRINTER_CHANGE_CONFIGURE_PORT | \
136 SPOOLSS_PRINTER_CHANGE_DELETE_PORT )
137
138#define SPOOLSS_PRINTER_CHANGE_ADD_PRINT_PROCESSOR 0x01000000
139#define SPOOLSS_PRINTER_CHANGE_DELETE_PRINT_PROCESSOR 0x04000000
140#define SPOOLSS_PRINTER_CHANGE_PRINT_PROCESSOR (SPOOLSS_PRINTER_CHANGE_ADD_PRINT_PROCESSOR | \
141 SPOOLSS_PRINTER_CHANGE_DELETE_PRINT_PROCESSOR )
142
143#define SPOOLSS_PRINTER_CHANGE_ADD_PRINTER_DRIVER 0x10000000
144#define SPOOLSS_PRINTER_CHANGE_SET_PRINTER_DRIVER 0x20000000
145#define SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER_DRIVER 0x40000000
146#define SPOOLSS_PRINTER_CHANGE_PRINTER_DRIVER (SPOOLSS_PRINTER_CHANGE_ADD_PRINTER_DRIVER | \
147 SPOOLSS_PRINTER_CHANGE_SET_PRINTER_DRIVER | \
148 SPOOLSS_PRINTER_CHANGE_DELETE_PRINTER_DRIVER )
149
150#define SPOOLSS_PRINTER_CHANGE_TIMEOUT 0x80000000
151#define SPOOLSS_PRINTER_CHANGE_ALL (SPOOLSS_PRINTER_CHANGE_JOB | \
152 SPOOLSS_PRINTER_CHANGE_FORM | \
153 SPOOLSS_PRINTER_CHANGE_PORT | \
154 SPOOLSS_PRINTER_CHANGE_PRINT_PROCESSOR | \
155 SPOOLSS_PRINTER_CHANGE_PRINTER_DRIVER )
156
157/* Printer notify option types */
158
159#define PRINTER_NOTIFY_TYPE 0x00
160#define JOB_NOTIFY_TYPE 0x01
161
162/* Printer notify option flags */
163
164#define PRINTER_NOTIFY_OPTIONS_REFRESH 0x01
165
166/* Printer notify options */
167
168#define PRINTER_NOTIFY_SERVER_NAME 0x00
169#define PRINTER_NOTIFY_PRINTER_NAME 0x01
170#define PRINTER_NOTIFY_SHARE_NAME 0x02
171#define PRINTER_NOTIFY_PORT_NAME 0x03
172#define PRINTER_NOTIFY_DRIVER_NAME 0x04
173#define PRINTER_NOTIFY_COMMENT 0x05
174#define PRINTER_NOTIFY_LOCATION 0x06
175#define PRINTER_NOTIFY_DEVMODE 0x07
176#define PRINTER_NOTIFY_SEPFILE 0x08
177#define PRINTER_NOTIFY_PRINT_PROCESSOR 0x09
178#define PRINTER_NOTIFY_PARAMETERS 0x0A
179#define PRINTER_NOTIFY_DATATYPE 0x0B
180#define PRINTER_NOTIFY_SECURITY_DESCRIPTOR 0x0C
181#define PRINTER_NOTIFY_ATTRIBUTES 0x0D
182#define PRINTER_NOTIFY_PRIORITY 0x0E
183#define PRINTER_NOTIFY_DEFAULT_PRIORITY 0x0F
184#define PRINTER_NOTIFY_START_TIME 0x10
185#define PRINTER_NOTIFY_UNTIL_TIME 0x11
186#define PRINTER_NOTIFY_STATUS 0x12
187#define PRINTER_NOTIFY_STATUS_STRING 0x13
188#define PRINTER_NOTIFY_CJOBS 0x14
189#define PRINTER_NOTIFY_AVERAGE_PPM 0x15
190#define PRINTER_NOTIFY_TOTAL_PAGES 0x16
191#define PRINTER_NOTIFY_PAGES_PRINTED 0x17
192#define PRINTER_NOTIFY_TOTAL_BYTES 0x18
193#define PRINTER_NOTIFY_BYTES_PRINTED 0x19
194
195/* Job notify options */
196
197#define JOB_NOTIFY_PRINTER_NAME 0x00
198#define JOB_NOTIFY_MACHINE_NAME 0x01
199#define JOB_NOTIFY_PORT_NAME 0x02
200#define JOB_NOTIFY_USER_NAME 0x03
201#define JOB_NOTIFY_NOTIFY_NAME 0x04
202#define JOB_NOTIFY_DATATYPE 0x05
203#define JOB_NOTIFY_PRINT_PROCESSOR 0x06
204#define JOB_NOTIFY_PARAMETERS 0x07
205#define JOB_NOTIFY_DRIVER_NAME 0x08
206#define JOB_NOTIFY_DEVMODE 0x09
207#define JOB_NOTIFY_STATUS 0x0A
208#define JOB_NOTIFY_STATUS_STRING 0x0B
209#define JOB_NOTIFY_SECURITY_DESCRIPTOR 0x0C
210#define JOB_NOTIFY_DOCUMENT 0x0D
211#define JOB_NOTIFY_PRIORITY 0x0E
212#define JOB_NOTIFY_POSITION 0x0F
213#define JOB_NOTIFY_SUBMITTED 0x10
214#define JOB_NOTIFY_START_TIME 0x11
215#define JOB_NOTIFY_UNTIL_TIME 0x12
216#define JOB_NOTIFY_TIME 0x13
217#define JOB_NOTIFY_TOTAL_PAGES 0x14
218#define JOB_NOTIFY_PAGES_PRINTED 0x15
219#define JOB_NOTIFY_TOTAL_BYTES 0x16
220#define JOB_NOTIFY_BYTES_PRINTED 0x17
221
222/* Printer status codes */
223
224#define PRINTER_STATUS_OK 0x00000000
225#define PRINTER_STATUS_PAUSED 0x00000001
226#define PRINTER_STATUS_ERROR 0x00000002
227#define PRINTER_STATUS_PENDING_DELETION 0x00000004
228#define PRINTER_STATUS_PAPER_JAM 0x00000008
229#define PRINTER_STATUS_PAPER_OUT 0x00000010
230#define PRINTER_STATUS_MANUAL_FEED 0x00000020
231#define PRINTER_STATUS_PAPER_PROBLEM 0x00000040
232#define PRINTER_STATUS_OFFLINE 0x00000080
233#define PRINTER_STATUS_IO_ACTIVE 0x00000100
234#define PRINTER_STATUS_BUSY 0x00000200
235#define PRINTER_STATUS_PRINTING 0x00000400
236#define PRINTER_STATUS_OUTPUT_BIN_FULL 0x00000800
237#define PRINTER_STATUS_NOT_AVAILABLE 0x00001000
238#define PRINTER_STATUS_WAITING 0x00002000
239#define PRINTER_STATUS_PROCESSING 0x00004000
240#define PRINTER_STATUS_INITIALIZING 0x00008000
241#define PRINTER_STATUS_WARMING_UP 0x00010000
242#define PRINTER_STATUS_TONER_LOW 0x00020000
243#define PRINTER_STATUS_NO_TONER 0x00040000
244#define PRINTER_STATUS_PAGE_PUNT 0x00080000
245#define PRINTER_STATUS_USER_INTERVENTION 0x00100000
246#define PRINTER_STATUS_OUT_OF_MEMORY 0x00200000
247#define PRINTER_STATUS_DOOR_OPEN 0x00400000
248#define PRINTER_STATUS_SERVER_UNKNOWN 0x00800000
249#define PRINTER_STATUS_POWER_SAVE 0x01000000
250
251/* Job status codes */
252
253#define JOB_STATUS_PAUSED 0x00000001
254#define JOB_STATUS_ERROR 0x00000002
255#define JOB_STATUS_DELETING 0x00000004
256#define JOB_STATUS_SPOOLING 0x00000008
257#define JOB_STATUS_PRINTING 0x00000010
258#define JOB_STATUS_OFFLINE 0x00000020
259#define JOB_STATUS_PAPEROUT 0x00000040
260#define JOB_STATUS_PRINTED 0x00000080
261#define JOB_STATUS_DELETED 0x00000100
262#define JOB_STATUS_BLOCKED 0x00000200
263#define JOB_STATUS_USER_INTERVENTION 0x00000400
264
265/* Printer attributes */
266
267#define PRINTER_ATTRIBUTE_QUEUED 0x00000001
268#define PRINTER_ATTRIBUTE_DIRECT 0x00000002
269#define PRINTER_ATTRIBUTE_DEFAULT 0x00000004
270#define PRINTER_ATTRIBUTE_SHARED 0x00000008
271#define PRINTER_ATTRIBUTE_NETWORK 0x00000010
272#define PRINTER_ATTRIBUTE_HIDDEN 0x00000020
273#define PRINTER_ATTRIBUTE_LOCAL 0x00000040
274#define PRINTER_ATTRIBUTE_ENABLE_DEVQ 0x00000080
275#define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS 0x00000100
276#define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST 0x00000200
277#define PRINTER_ATTRIBUTE_WORK_OFFLINE 0x00000400
278#define PRINTER_ATTRIBUTE_ENABLE_BIDI 0x00000800
279#define PRINTER_ATTRIBUTE_RAW_ONLY 0x00001000
280#define PRINTER_ATTRIBUTE_PUBLISHED 0x00002000
281
282/* Printer Driver attributes */
283
284#define PRINTER_DRIVER_PACKAGE_AWARE 0x00000001
285#define PRINTER_DRIVER_XPS 0x00000002
286#define PRINTER_DRIVER_SANDBOX_ENABLED 0x00000004
287#define PRINTER_DRIVER_CLASS 0x00000008
288#define PRINTER_DRIVER_DERIVED 0x00000010
289#define PRINTER_DRIVER_NOT_SHAREABLE 0x00000020
290#define PRINTER_DRIVER_CATEGORY_FAX 0x00000040
291#define PRINTER_DRIVER_CATEGORY_FILE 0x00000080
292#define PRINTER_DRIVER_CATEGORY_VIRTUAL 0x00000100
293#define PRINTER_DRIVER_CATEGORY_SERVICE 0x00000200
294#define PRINTER_DRIVER_SOFT_RESET_REQUIRED 0x00000400
295#define PRINTER_DRIVER_CATEGORY_3D 0x00001000
296
297/* Setprinter control commands */
298
299#define SPOOLSS_PRINTER_CONTROL_UNPAUSE 0x00000000
300#define SPOOLSS_PRINTER_CONTROL_PAUSE 0x00000001
301#define SPOOLSS_PRINTER_CONTROL_RESUME 0x00000002
302#define SPOOLSS_PRINTER_CONTROL_PURGE 0x00000003
303#define SPOOLSS_PRINTER_CONTROL_SET_STATUS 0x00000004
304
305/* Specific access rights */
306
307#define SERVER_ACCESS_ADMINISTER 0x00000001
308#define SERVER_ACCESS_ENUMERATE 0x00000002
309#define PRINTER_ACCESS_ADMINISTER 0x00000004
310#define PRINTER_ACCESS_USE 0x00000008
311#define JOB_ACCESS_ADMINISTER 0x00000010
312
313/* Enumprinters flags */
314
315#define PRINTER_ENUM_DEFAULT 0x00000001
316#define PRINTER_ENUM_LOCAL 0x00000002
317#define PRINTER_ENUM_CONNECTIONS 0x00000004
318#define PRINTER_ENUM_FAVORITE 0x00000004
319#define PRINTER_ENUM_NAME 0x00000008
320#define PRINTER_ENUM_REMOTE 0x00000010
321#define PRINTER_ENUM_SHARED 0x00000020
322#define PRINTER_ENUM_NETWORK 0x00000040
323
324/* Devicemode field flags */
325
326#define DEVMODE_ORIENTATION 0x00000001
327#define DEVMODE_PAPERSIZE 0x00000002
328#define DEVMODE_PAPERLENGTH 0x00000004
329#define DEVMODE_PAPERWIDTH 0x00000008
330#define DEVMODE_SCALE 0x00000010
331#define DEVMODE_POSITION 0x00000020
332#define DEVMODE_NUP 0x00000040
333#define DEVMODE_COPIES 0x00000100
334#define DEVMODE_DEFAULTSOURCE 0x00000200
335#define DEVMODE_PRINTQUALITY 0x00000400
336#define DEVMODE_COLOR 0x00000800
337#define DEVMODE_DUPLEX 0x00001000
338#define DEVMODE_YRESOLUTION 0x00002000
339#define DEVMODE_TTOPTION 0x00004000
340#define DEVMODE_COLLATE 0x00008000
341#define DEVMODE_FORMNAME 0x00010000
342#define DEVMODE_LOGPIXELS 0x00020000
343#define DEVMODE_BITSPERPEL 0x00040000
344#define DEVMODE_PELSWIDTH 0x00080000
345#define DEVMODE_PELSHEIGHT 0x00100000
346#define DEVMODE_DISPLAYFLAGS 0x00200000
347#define DEVMODE_DISPLAYFREQUENCY 0x00400000
348#define DEVMODE_ICMMETHOD 0x00800000
349#define DEVMODE_ICMINTENT 0x01000000
350#define DEVMODE_MEDIATYPE 0x02000000
351#define DEVMODE_DITHERTYPE 0x04000000
352#define DEVMODE_PANNINGWIDTH 0x08000000
353#define DEVMODE_PANNINGHEIGHT 0x10000000
354
355/* Devicemode paper orientation */
356
357#define DEVMODE_ORIENTATION_PORTRAIT 1
358#define DEVMODE_ORIENTATION_LANDSCAPE 2
359
360/* Devicemode paper size */
361
362#define DEVMODE_PAPERSIZE_LETTER 1
363#define DEVMODE_PAPERSIZE_LETTERSMALL 2
364#define DEVMODE_PAPERSIZE_TABLOID 3
365#define DEVMODE_PAPERSIZE_LEDGER 4
366#define DEVMODE_PAPERSIZE_LEGAL 5
367#define DEVMODE_PAPERSIZE_STATEMENT 6
368#define DEVMODE_PAPERSIZE_EXECUTIVE 7
369#define DEVMODE_PAPERSIZE_A3 8
370#define DEVMODE_PAPERSIZE_A4 9
371#define DEVMODE_PAPERSIZE_A4SMALL 10
372#define DEVMODE_PAPERSIZE_A5 11
373#define DEVMODE_PAPERSIZE_B4 12
374#define DEVMODE_PAPERSIZE_B5 13
375#define DEVMODE_PAPERSIZE_FOLIO 14
376#define DEVMODE_PAPERSIZE_QUARTO 15
377#define DEVMODE_PAPERSIZE_10X14 16
378#define DEVMODE_PAPERSIZE_11X17 17
379#define DEVMODE_PAPERSIZE_NOTE 18
380#define DEVMODE_PAPERSIZE_ENV9 19
381#define DEVMODE_PAPERSIZE_ENV10 20
382#define DEVMODE_PAPERSIZE_ENV11 21
383#define DEVMODE_PAPERSIZE_ENV12 22
384#define DEVMODE_PAPERSIZE_ENV14 23
385#define DEVMODE_PAPERSIZE_CSHEET 24
386#define DEVMODE_PAPERSIZE_DSHEET 25
387#define DEVMODE_PAPERSIZE_ESHEET 26
388#define DEVMODE_PAPERSIZE_ENVDL 27
389#define DEVMODE_PAPERSIZE_ENVC5 28
390#define DEVMODE_PAPERSIZE_ENVC3 29
391#define DEVMODE_PAPERSIZE_ENVC4 30
392#define DEVMODE_PAPERSIZE_ENVC6 31
393#define DEVMODE_PAPERSIZE_ENVC65 32
394#define DEVMODE_PAPERSIZE_ENVB4 33
395#define DEVMODE_PAPERSIZE_ENVB5 34
396#define DEVMODE_PAPERSIZE_ENVB6 35
397#define DEVMODE_PAPERSIZE_ENVITALY 36
398#define DEVMODE_PAPERSIZE_ENVMONARCH 37
399#define DEVMODE_PAPERSIZE_ENVPERSONAL 38
400#define DEVMODE_PAPERSIZE_FANFOLDUS 39
401#define DEVMODE_PAPERSIZE_FANFOLDSTDGERMAN 40
402#define DEVMODE_PAPERSIZE_FANFOLDLGLGERMAN 41
403#define DEVMODE_PAPERSIZE_ISOB4 42
404#define DEVMODE_PAPERSIZE_JAPANESEPOSTCARD 43
405#define DEVMODE_PAPERSIZE_9X11 44
406#define DEVMODE_PAPERSIZE_10X11 45
407#define DEVMODE_PAPERSIZE_15X11 46
408#define DEVMODE_PAPERSIZE_ENVINVITE 47
409#define DEVMODE_PAPERSIZE_RESERVED48 48
410#define DEVMODE_PAPERSIZE_RESERVED49 49
411#define DEVMODE_PAPERSIZE_LETTEREXTRA 50
412#define DEVMODE_PAPERSIZE_LEGALEXTRA 51
413#define DEVMODE_PAPERSIZE_TABLOIDEXTRA 52
414#define DEVMODE_PAPERSIZE_A4EXTRA 53
415#define DEVMODE_PAPERSIZE_LETTERTRANS 54
416#define DEVMODE_PAPERSIZE_A4TRANS 55
417#define DEVMODE_PAPERSIZE_LETTEREXTRATRANS 56
418#define DEVMODE_PAPERSIZE_APLUS 57
419#define DEVMODE_PAPERSIZE_BPLUS 58
420#define DEVMODE_PAPERSIZE_LETTERPLUS 59
421#define DEVMODE_PAPERSIZE_A4PLUS 60
422#define DEVMODE_PAPERSIZE_A5TRANS 61
423#define DEVMODE_PAPERSIZE_B5TRANS 62
424#define DEVMODE_PAPERSIZE_A3EXTRA 63
425#define DEVMODE_PAPERSIZE_A5EXTRA 64
426#define DEVMODE_PAPERSIZE_B5EXTRA 65
427#define DEVMODE_PAPERSIZE_A2 66
428#define DEVMODE_PAPERSIZE_A3TRANS 67
429#define DEVMODE_PAPERSIZE_A3EXTRATRANS 68
430#define DEVMODE_PAPERSIZE_DBLJAPANESEPOSTCARD 69
431#define DEVMODE_PAPERSIZE_A6 70
432#define DEVMODE_PAPERSIZE_JENVKAKU2 71
433#define DEVMODE_PAPERSIZE_JENVKAKU3 72
434#define DEVMODE_PAPERSIZE_JENVCHOU3 73
435#define DEVMODE_PAPERSIZE_JENVCHOU4 74
436#define DEVMODE_PAPERSIZE_LETTERROT 75
437#define DEVMODE_PAPERSIZE_A3ROT 76
438#define DEVMODE_PAPERSIZE_A4ROT 77
439#define DEVMODE_PAPERSIZE_A5ROT 78
440#define DEVMODE_PAPERSIZE_B4JISROT 79
441#define DEVMODE_PAPERSIZE_B5JISROT 80
442#define DEVMODE_PAPERSIZE_JAPANESEPOSTCARDROT 81
443#define DEVMODE_PAPERSIZE_DBLJAPANESEPOSTCARDROT82 82
444#define DEVMODE_PAPERSIZE_A6ROT 83
445#define DEVMODE_PAPERSIZE_JENVKAKU2ROT 84
446#define DEVMODE_PAPERSIZE_JENVKAKU3ROT 85
447#define DEVMODE_PAPERSIZE_JENVCHOU3ROT 86
448#define DEVMODE_PAPERSIZE_JENVCHOU4ROT 87
449#define DEVMODE_PAPERSIZE_B6JIS 88
450#define DEVMODE_PAPERSIZE_B6JISROT 89
451#define DEVMODE_PAPERSIZE_12X11 90
452#define DEVMODE_PAPERSIZE_JENVYOU4 91
453#define DEVMODE_PAPERSIZE_JENVYOU4ROT 92
454#define DEVMODE_PAPERSIZE_P16K 93
455#define DEVMODE_PAPERSIZE_P32K 94
456#define DEVMODE_PAPERSIZE_P32KBIG 95
457#define DEVMODE_PAPERSIZE_PENV1 96
458#define DEVMODE_PAPERSIZE_PENV2 97
459#define DEVMODE_PAPERSIZE_PENV3 98
460#define DEVMODE_PAPERSIZE_PENV4 99
461#define DEVMODE_PAPERSIZE_PENV5 100
462#define DEVMODE_PAPERSIZE_PENV6 101
463#define DEVMODE_PAPERSIZE_PENV7 102
464#define DEVMODE_PAPERSIZE_PENV8 103
465#define DEVMODE_PAPERSIZE_PENV9 104
466#define DEVMODE_PAPERSIZE_PENV10 105
467#define DEVMODE_PAPERSIZE_P16KROT 106
468#define DEVMODE_PAPERSIZE_P32KROT 107
469#define DEVMODE_PAPERSIZE_P32KBIGROT 108
470#define DEVMODE_PAPERSIZE_PENV1ROT 109
471#define DEVMODE_PAPERSIZE_PENV2ROT 110
472#define DEVMODE_PAPERSIZE_PENV3ROT 111
473#define DEVMODE_PAPERSIZE_PENV4ROT 112
474#define DEVMODE_PAPERSIZE_PENV5ROT 113
475#define DEVMODE_PAPERSIZE_PENV6ROT 114
476#define DEVMODE_PAPERSIZE_PENV7ROT 115
477#define DEVMODE_PAPERSIZE_PENV8ROT 116
478#define DEVMODE_PAPERSIZE_PENV9ROT 117
479#define DEVMODE_PAPERSIZE_PENV10ROT 118
480
481/* Devicemode paper source */
482
483#define DEVMODE_PAPERSOURCE_UPPER 1
484#define DEVMODE_PAPERSOURCE_LOWER 2
485#define DEVMODE_PAPERSOURCE_MIDDLE 3
486#define DEVMODE_PAPERSOURCE_MANUAL 4
487#define DEVMODE_PAPERSOURCE_ENV 5
488#define DEVMODE_PAPERSOURCE_ENVMANUAL 6
489#define DEVMODE_PAPERSOURCE_AUTO 7
490#define DEVMODE_PAPERSOURCE_TRACTOR 8
491#define DEVMODE_PAPERSOURCE_SMALLFMT 9
492#define DEVMODE_PAPERSOURCE_LARGEFMAT 10
493#define DEVMODE_PAPERSOURCE_LARGECAP 11
494#define DEVMODE_PAPERSOURCE_CASSETTE 12
495#define DEVMODE_PAPERSOURCE_FORMSRC 13
496
497/* Devicemode print quality */
498
499#define DEVMODE_PRINTQUALITY_HIGH -1
500#define DEVMODE_PRINTQUALITY_MEDIUM -2
501#define DEVMODE_PRINTQUALITY_LOW -3
502#define DEVMODE_PRINTQUALITY_DRAFT -4
503
504/* Colour settings */
505
506#define DEVMODE_COLOUR_MONO 1
507#define DEVMODE_COLOUR_COLOUR 2
508
509/* TrueType options */
510
511#define DEVMODE_TTOPTION_BITMAP 1
512#define DEVMODE_TTOPTION_DOWNLOAD 2
513#define DEVMODE_TTOPTION_SUBDEV 3
514#define DEVMODE_TTOPTION_DOWNLOAD_OUTLINE 4
515
516/* Collate info */
517
518#define DEVMODE_COLLATE_FALSE 0
519#define DEVMODE_COLLATE_TRUE 1
520
521/* Duplex info */
522
523#define DEVMODE_DUPLEX_SIMPLEX 1
524#define DEVMODE_DUPLEX_VERT 2
525#define DEVMODE_DUPLEX_HORIZ 3
526
527/* Displayflags */
528
529#define DEVMODE_DISPLAYFLAGS_GRAYSCALE 1
530#define DEVMODE_DISPLAYFLAGS_INTERLACED 2
531
532/* ICM method */
533
534#define DEVMODE_ICMMETHOD_NONE 1
535#define DEVMODE_ICMMETHOD_SYSTEM 2
536#define DEVMODE_ICMMETHOD_DRIVER 3
537#define DEVMODE_ICMMETHOD_DEVICE 4
538
539/* ICM intent */
540
541#define DEVMODE_ICMINTENT_SATURATE 1
542#define DEVMODE_ICMINTENT_CONTRAST 2
543#define DEVMODE_ICMINTENT_COLORIMETRIC 3
544#define DEVMODE_ICMINTENT_ABS_COLORIMETRIC 4
545
546/* Media type */
547
548#define DEVMODE_MEDIATYPE_STANDARD 1
549#define DEVMODE_MEDIATYPE_TRANSPARENCY 2
550#define DEVMODE_MEDIATYPE_GLOSSY 3
551
552/* Dither type */
553
554#define DEVMODE_DITHERTYPE_NONE 1
555#define DEVMODE_DITHERTYPE_COARSE 2
556#define DEVMODE_DITHERTYPE_LINE 3
557#define DEVMODE_DITHERTYPE_LINEART 4
558#define DEVMODE_DITHERTYPE_ERRORDIFFUSION 5
559#define DEVMODE_DITHERTYPE_RESERVED6 6
560#define DEVMODE_DITHERTYPE_RESERVED7 7
561#define DEVMODE_DITHERTYPE_GRAYSCALE 10
562
563/* Printer info level 7 */
564
565#define DS_PUBLISH 0x00000001
566#define DS_UPDATE 0x00000002
567#define DS_UNPUBLISH 0x00000004
568#define DS_REPUBLISH 0x00000008
569#define DS_PENDING 0x80000000
570
571/* SetJob command values */
572
573#define JOB_CONTROL_PAUSE 1
574#define JOB_CONTROL_RESUME 2
575#define JOB_CONTROL_CANCEL 3
576#define JOB_CONTROL_RESTART 4
577#define JOB_CONTROL_DELETE 5
578
579 extern struct access_mask_info spoolss_printer_access_mask_info;
580
581 unsigned dissect_USER_LEVEL_CTR(tvbuff_t *tvb, unsigned offset,
582 packet_info *pinfo, proto_tree *tree,
583 dcerpc_info *di, uint8_t *drep);
584 unsigned dissect_NOTIFY_OPTIONS_ARRAY_CTR(tvbuff_t *tvb, unsigned offset,
585 packet_info *pinfo, proto_tree *tree,
586 dcerpc_info *di, uint8_t *drep);
587 unsigned dissect_NOTIFY_INFO(tvbuff_t *tvb, unsigned offset, packet_info *pinfo,
588 proto_tree *tree, dcerpc_info *di, uint8_t *drep);
589 unsigned dissect_DEVMODE_CTR(tvbuff_t *tvb, unsigned offset, packet_info *pinfo,
590 proto_tree *tree, dcerpc_info *di, uint8_t *drep);
591 unsigned dissect_SPOOL_PRINTER_INFO(tvbuff_t *tvb, unsigned offset, packet_info *pinfo,
592 proto_tree *tree, dcerpc_info *di, uint8_t *drep);
593 unsigned dissect_spoolss_doc_info_ctr(tvbuff_t *tvb, unsigned offset, packet_info *pinfo,
594 proto_tree *tree, dcerpc_info *di, uint8_t *drep);
595 unsigned dissect_FORM_CTR(tvbuff_t *tvb, unsigned offset,
596 packet_info *pinfo, proto_tree *tree,
597 dcerpc_info *di, uint8_t *drep);
598
599#endif /* packet-dcerpc-spoolss.h */
packet_info
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
access_mask_info
Definition packet-windows-common.h:5913