4 spoolss interface definitions
6 import
"misc.idl", "security.idl", "winreg.idl";
9 cpp_quote
("#define spoolss_security_descriptor security_descriptor")
11 [ uuid("12345678-1234-abcd-ef00-0123456789ab"),
13 endpoint("ncacn_np:[\\pipe\\spoolss]"),
14 pointer_default(unique),
15 helpstring("Spooler SubSystem"),
16 helper
("../librpc/ndr/ndr_spoolss_buf.h")
19 typedef [v1_enum] enum winreg_Type winreg_Type
;
20 typedef [gensize
] struct {
32 [value
(ndr_size_spoolss_Time
(time
, ndr
->iconv_convenience
, ndr
->flags
))] uint32 size
;
33 [unique] spoolss_Time
*time
;
37 PROCESSOR_ARCHITECTURE_INTEL
= 0x0000,
38 PROCESSOR_ARCHITECTURE_IA64
= 0x0006,
39 PROCESSOR_ARCHITECTURE_AMD64
= 0x0009
40 } spoolss_ProcessorArchitecture
;
42 typedef [v1_enum] enum {
43 PROCESSOR_INTEL_386
= 0x00000182,
44 PROCESSOR_INTEL_486
= 0x000001E6,
45 PROCESSOR_INTEL_PENTIUM
= 0x0000024A,
46 PROCESSOR_INTEL_IA64
= 0x00000898,
47 PROCESSOR_AMD_X8664
= 0x000022A0
48 } spoolss_ProcessorType
;
50 typedef [v1_enum] enum {
51 /* Windows 95, Windows 98, Windows Me, Windows NT4 */
52 SPOOLSS_MAJOR_VERSION_NT4_95_98_ME
= 0x00000004,
53 /* Windows 2000, Windows 2003, Windows XP */
54 SPOOLSS_MAJOR_VERSION_2000_2003_XP
= 0x00000005,
55 /* Windows Vista, Windows 2008 */
56 SPOOLSS_MAJOR_VERSION_2008_VISTA
= 0x00000006
57 } spoolss_MajorVersion
;
59 typedef [v1_enum] enum {
60 /* Windows 2008, Windows Vista, Windows 2000, Windows NT4, Windows 95 */
61 SPOOLSS_MINOR_VERSION_0
= 0x00000000,
63 SPOOLSS_MINOR_VERSION_XP
= 0x00000001,
64 /* Windows 2003, Windows XP x64 */
65 SPOOLSS_MINOR_VERSION_2003_XP64
= 0x00000002,
67 SPOOLSS_MINOR_VERSION_98
= 0x0000000a,
69 SPOOLSS_MINOR_VERSION_ME
= 0x0000005a
70 } spoolss_MinorVersion
;
72 const int PRINTER_STATUS_OK
= 0x00000000;
74 typedef [public] bitmap
{
75 PRINTER_STATUS_PAUSED
= 0x00000001,
76 PRINTER_STATUS_ERROR
= 0x00000002,
77 PRINTER_STATUS_PENDING_DELETION
= 0x00000004,
78 PRINTER_STATUS_PAPER_JAM
= 0x00000008,
79 PRINTER_STATUS_PAPER_OUT
= 0x00000010,
80 PRINTER_STATUS_MANUAL_FEED
= 0x00000020,
81 PRINTER_STATUS_PAPER_PROBLEM
= 0x00000040,
82 PRINTER_STATUS_OFFLINE
= 0x00000080,
83 PRINTER_STATUS_IO_ACTIVE
= 0x00000100,
84 PRINTER_STATUS_BUSY
= 0x00000200,
85 PRINTER_STATUS_PRINTING
= 0x00000400,
86 PRINTER_STATUS_OUTPUT_BIN_FULL
= 0x00000800,
87 PRINTER_STATUS_NOT_AVAILABLE
= 0x00001000,
88 PRINTER_STATUS_WAITING
= 0x00002000,
89 PRINTER_STATUS_PROCESSING
= 0x00004000,
90 PRINTER_STATUS_INITIALIZING
= 0x00008000,
91 PRINTER_STATUS_WARMING_UP
= 0x00010000,
92 PRINTER_STATUS_TONER_LOW
= 0x00020000,
93 PRINTER_STATUS_NO_TONER
= 0x00040000,
94 PRINTER_STATUS_PAGE_PUNT
= 0x00080000,
95 PRINTER_STATUS_USER_INTERVENTION
= 0x00100000,
96 PRINTER_STATUS_OUT_OF_MEMORY
= 0x00200000,
97 PRINTER_STATUS_DOOR_OPEN
= 0x00400000,
98 PRINTER_STATUS_SERVER_UNKNOWN
= 0x00800000,
99 PRINTER_STATUS_POWER_SAVE
= 0x01000000
100 } spoolss_PrinterStatus
;
102 /* JOB status codes. */
104 const int JOB_STATUS_QUEUED
= 0x0000;
106 typedef [bitmap32bit
] bitmap
{
107 JOB_STATUS_PAUSED
= 0x00000001,
108 JOB_STATUS_ERROR
= 0x00000002,
109 JOB_STATUS_DELETING
= 0x00000004,
110 JOB_STATUS_SPOOLING
= 0x00000008,
111 JOB_STATUS_PRINTING
= 0x00000010,
112 JOB_STATUS_OFFLINE
= 0x00000020,
113 JOB_STATUS_PAPEROUT
= 0x00000040,
114 JOB_STATUS_PRINTED
= 0x00000080,
115 JOB_STATUS_DELETED
= 0x00000100,
116 JOB_STATUS_BLOCKED_DEVQ
= 0x00000200,
117 JOB_STATUS_USER_INTERVENTION
= 0x00000400,
118 JOB_STATUS_RESTART
= 0x00000800,
119 JOB_STATUS_COMPLETE
= 0x00001000
122 typedef [public,gensize
] struct {
123 [relative
] nstring
*printername
;
124 [relative
] nstring
*servername
;
129 uint32 global_counter
;
135 uint32 session_counter
;
136 uint32 num_error_out_of_paper
;
137 uint32 num_error_not_ready
;
138 spoolss_JobStatus job_error
;
139 uint32 number_of_processors
;
140 spoolss_ProcessorType processor_type
;
141 uint32 high_part_total_bytes
;
144 spoolss_PrinterStatus status
;
145 uint32 enumerate_network_printers
;
147 spoolss_ProcessorArchitecture processor_architecture
;
148 uint16 processor_level
;
152 } spoolss_PrinterInfo0
;
154 typedef [bitmap32bit
] bitmap
{
155 DEVMODE_ORIENTATION
= 0x00000001,
156 DEVMODE_PAPERSIZE
= 0x00000002,
157 DEVMODE_PAPERLENGTH
= 0x00000004,
158 DEVMODE_PAPERWIDTH
= 0x00000008,
159 DEVMODE_SCALE
= 0x00000010,
160 DEVMODE_POSITION
= 0x00000020,
161 DEVMODE_NUP
= 0x00000040,
162 DEVMODE_COPIES
= 0x00000100,
163 DEVMODE_DEFAULTSOURCE
= 0x00000200,
164 DEVMODE_PRINTQUALITY
= 0x00000400,
165 DEVMODE_COLOR
= 0x00000800,
166 DEVMODE_DUPLEX
= 0x00001000,
167 DEVMODE_YRESOLUTION
= 0x00002000,
168 DEVMODE_TTOPTION
= 0x00004000,
169 DEVMODE_COLLATE
= 0x00008000,
170 DEVMODE_FORMNAME
= 0x00010000,
171 DEVMODE_LOGPIXELS
= 0x00020000,
172 DEVMODE_BITSPERPEL
= 0x00040000,
173 DEVMODE_PELSWIDTH
= 0x00080000,
174 DEVMODE_PELSHEIGHT
= 0x00100000,
175 DEVMODE_DISPLAYFLAGS
= 0x00200000,
176 DEVMODE_DISPLAYFREQUENCY
= 0x00400000,
177 DEVMODE_ICMMETHOD
= 0x00800000,
178 DEVMODE_ICMINTENT
= 0x01000000,
179 DEVMODE_MEDIATYPE
= 0x02000000,
180 DEVMODE_DITHERTYPE
= 0x04000000,
181 DEVMODE_PANNINGWIDTH
= 0x08000000,
182 DEVMODE_PANNINGHEIGHT
= 0x10000000
183 } spoolss_DeviceModeFields
;
185 typedef [public,gensize
] struct {
186 [charset
(UTF16
)] uint16 devicename
[32];
188 uint16 driverversion
;
190 [value
(r
->driverextra_data.length
)] uint16 __driverextra_length
;
191 spoolss_DeviceModeFields fields
;
198 uint16 defaultsource
;
205 [charset
(UTF16
)] uint16 formname
[32];
211 uint32 displayfrequency
;
219 uint32 panningheight
;
220 [subcontext_size
(__driverextra_length
),subcontext
(0),flag
(NDR_REMAINING
)] DATA_BLOB driverextra_data
;
221 } spoolss_DeviceMode
;
223 typedef [public] bitmap
{
224 PRINTER_ENUM_DEFAULT
= 0x00000001,
225 PRINTER_ENUM_LOCAL
= 0x00000002,
226 PRINTER_ENUM_CONNECTIONS
= 0x00000004,
227 PRINTER_ENUM_FAVORITE
= 0x00000004,
228 PRINTER_ENUM_NAME
= 0x00000008,
229 PRINTER_ENUM_REMOTE
= 0x00000010,
230 PRINTER_ENUM_SHARED
= 0x00000020,
231 PRINTER_ENUM_NETWORK
= 0x00000040,
232 PRINTER_ENUM_EXPAND
= 0x00004000,
233 PRINTER_ENUM_CONTAINER
= 0x00008000,
234 PRINTER_ENUM_ICON1
= 0x00010000,
235 PRINTER_ENUM_ICON2
= 0x00020000,
236 PRINTER_ENUM_ICON3
= 0x00040000,
237 PRINTER_ENUM_ICON4
= 0x00080000,
238 PRINTER_ENUM_ICON5
= 0x00100000,
239 PRINTER_ENUM_ICON6
= 0x00200000,
240 PRINTER_ENUM_ICON7
= 0x00400000,
241 PRINTER_ENUM_ICON8
= 0x00800000,
242 PRINTER_ENUM_HIDE
= 0x01000000
243 } spoolss_EnumPrinterFlags
;
245 const int PRINTER_ENUM_ICONMASK
= (PRINTER_ENUM_ICON1 |
252 PRINTER_ENUM_ICON8
); /* 0x00ff0000 */
254 typedef [public,gensize
] struct {
255 spoolss_EnumPrinterFlags flags
;
256 [relative
] nstring
*description
;
257 [relative
] nstring
*name
;
258 [relative
] nstring
*comment
;
259 } spoolss_PrinterInfo1
;
261 typedef [public] bitmap
{
262 PRINTER_ATTRIBUTE_QUEUED
= 0x00000001,
263 PRINTER_ATTRIBUTE_DIRECT
= 0x00000002,
264 PRINTER_ATTRIBUTE_DEFAULT
= 0x00000004,
265 PRINTER_ATTRIBUTE_SHARED
= 0x00000008,
266 PRINTER_ATTRIBUTE_NETWORK
= 0x00000010,
267 PRINTER_ATTRIBUTE_HIDDEN
= 0x00000020,
268 PRINTER_ATTRIBUTE_LOCAL
= 0x00000040,
269 PRINTER_ATTRIBUTE_ENABLE_DEVQ
= 0x00000080,
270 PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS
= 0x00000100,
271 PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST
= 0x00000200,
272 PRINTER_ATTRIBUTE_WORK_OFFLINE
= 0x00000400,
273 PRINTER_ATTRIBUTE_ENABLE_BIDI
= 0x00000800,
274 PRINTER_ATTRIBUTE_RAW_ONLY
= 0x00001000,
275 PRINTER_ATTRIBUTE_PUBLISHED
= 0x00002000,
276 PRINTER_ATTRIBUTE_FAX
= 0x00004000,
277 PRINTER_ATTRIBUTE_TS
= 0x00008000
278 } spoolss_PrinterAttributes
;
280 typedef [public,gensize
,nopush
] struct {
281 [relative
] nstring
*servername
;
282 [relative
] nstring
*printername
;
283 [relative
] nstring
*sharename
;
284 [relative
] nstring
*portname
;
285 [relative
] nstring
*drivername
;
286 [relative
] nstring
*comment
;
287 [relative
] nstring
*location
;
288 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_DeviceMode
*devmode
;
289 [relative
] nstring
*sepfile
;
290 [relative
] nstring
*printprocessor
;
291 [relative
] nstring
*datatype
;
292 [relative
] nstring
*parameters
;
293 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_security_descriptor
*secdesc
;
294 spoolss_PrinterAttributes attributes
;
295 [range(0,99)] uint32 priority
;
296 uint32 defaultpriority
;
299 spoolss_PrinterStatus status
;
302 } spoolss_PrinterInfo2
;
304 typedef [public,gensize
] struct {
305 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_security_descriptor
*secdesc
;
306 } spoolss_PrinterInfo3
;
308 typedef [public,gensize
] struct {
309 [relative
] nstring
*printername
;
310 [relative
] nstring
*servername
;
311 spoolss_PrinterAttributes attributes
;
312 } spoolss_PrinterInfo4
;
314 typedef [public,gensize
] struct {
315 [relative
] nstring
*printername
;
316 [relative
] nstring
*portname
;
317 spoolss_PrinterAttributes attributes
;
318 uint32 device_not_selected_timeout
;
319 uint32 transmission_retry_timeout
;
320 } spoolss_PrinterInfo5
;
322 typedef [public,gensize
] struct {
323 spoolss_PrinterStatus status
;
324 } spoolss_PrinterInfo6
;
327 DSPRINT_PUBLISH
= 0x00000001,
328 DSPRINT_UPDATE
= 0x00000002,
329 DSPRINT_UNPUBLISH
= 0x00000004,
330 DSPRINT_REPUBLISH
= 0x00000008,
331 DSPRINT_PENDING
= 0x80000000
332 } spoolss_DsPrintAction
;
334 typedef [public,gensize
] struct {
335 [relative
] nstring
*guid
; /* text form of printer guid */
336 spoolss_DsPrintAction action
;
337 } spoolss_PrinterInfo7
;
340 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_DeviceMode
*devmode
;
341 } spoolss_DeviceModeInfo
;
343 typedef [nodiscriminant
,relative_base
,public,gensize
,flag
(NDR_RELATIVE_REVERSE
)] union {
344 [case(0)] spoolss_PrinterInfo0 info0
;
345 [case(1)] spoolss_PrinterInfo1 info1
;
346 [case(2)] spoolss_PrinterInfo2 info2
;
347 [case(3)] spoolss_PrinterInfo3 info3
;
348 [case(4)] spoolss_PrinterInfo4 info4
;
349 [case(5)] spoolss_PrinterInfo5 info5
;
350 [case(6)] spoolss_PrinterInfo6 info6
;
351 [case(7)] spoolss_PrinterInfo7 info7
;
352 [case(8)] spoolss_DeviceModeInfo info8
;
353 [case(9)] spoolss_DeviceModeInfo info9
;
355 } spoolss_PrinterInfo
;
359 /* we are using this as internal parsing code */
360 [public,noopnum
,noprint
] WERROR _spoolss_EnumPrinters
(
361 [in] spoolss_EnumPrinterFlags flags
,
362 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
364 [in,unique] DATA_BLOB
*buffer
,
366 [out,unique] DATA_BLOB
*info
,
367 [out,ref] uint32
*needed
,
368 [out,ref] uint32
*count
370 [public,noopnum
,noprint
] void __spoolss_EnumPrinters
(
373 [out,switch_is(level
)] spoolss_PrinterInfo info
[count
]
375 [nopull
,nopush
] WERROR spoolss_EnumPrinters
(
376 [in] spoolss_EnumPrinterFlags flags
,
377 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
379 [in,unique] DATA_BLOB
*buffer
,
381 /* what we have here is a subcontext containing an array of no discriminant unions
382 * and the array has no size in front
384 [out,ref] uint32
*count
,
385 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_PrinterInfo
**info
,
386 [out,ref] uint32
*needed
392 [value
(_ndr_size_spoolss_DeviceMode
(devmode
, ndr
->iconv_convenience
, ndr
->flags
))] uint32 _ndr_size
;
393 [subcontext
(4),subcontext_size
(_ndr_size
)] spoolss_DeviceMode
*devmode
;
394 } spoolss_DevmodeContainer
;
396 [public] WERROR spoolss_OpenPrinter
(
397 [in,unique] [string,charset
(UTF16
)] uint16
*printername
,
398 [in,unique] [string,charset
(UTF16
)] uint16
*datatype
,
399 [in] spoolss_DevmodeContainer devmode_ctr
,
400 [in] spoolss_AccessRights access_mask
,
401 [out,ref] policy_handle
*handle
407 typedef [public,gensize
] struct {
409 [relative
] nstring
*printer_name
;
410 [relative
] nstring
*server_name
;
411 [relative
] nstring
*user_name
;
412 [relative
] nstring
*document_name
;
413 [relative
] nstring
*data_type
;
414 [relative
] nstring
*text_status
;
415 spoolss_JobStatus status
;
416 [range(0,99)] uint32 priority
;
419 uint32 pages_printed
;
420 spoolss_Time submitted
;
423 typedef [public,gensize
] struct {
425 [relative
] nstring
*printer_name
;
426 [relative
] nstring
*server_name
;
427 [relative
] nstring
*user_name
;
428 [relative
] nstring
*document_name
;
429 [relative
] nstring
*notify_name
;
430 [relative
] nstring
*data_type
;
431 [relative
] nstring
*print_processor
;
432 [relative
] nstring
*parameters
;
433 [relative
] nstring
*driver_name
;
434 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_DeviceMode
*devmode
;
435 [relative
] nstring
*text_status
;
436 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_security_descriptor
*secdesc
;
437 spoolss_JobStatus status
;
438 [range(0,99)] uint32 priority
;
444 spoolss_Time submitted
;
446 uint32 pages_printed
;
449 typedef [public,gensize
] struct {
455 typedef [public,gensize
] struct {
457 [relative
] nstring
*printer_name
;
458 [relative
] nstring
*server_name
;
459 [relative
] nstring
*user_name
;
460 [relative
] nstring
*document_name
;
461 [relative
] nstring
*notify_name
;
462 [relative
] nstring
*data_type
;
463 [relative
] nstring
*print_processor
;
464 [relative
] nstring
*parameters
;
465 [relative
] nstring
*driver_name
;
466 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_DeviceMode
*devmode
;
467 [relative
] nstring
*text_status
;
468 [relative
,subcontext
(0),flag
(NDR_ALIGN4
)] spoolss_security_descriptor
*secdesc
;
469 spoolss_JobStatus status
;
470 [range(0,99)] uint32 priority
;
476 spoolss_Time submitted
;
478 uint32 pages_printed
;
482 typedef [nodiscriminant
,relative_base
,public,gensize
,flag
(NDR_RELATIVE_REVERSE
)] union {
483 [case(1)] spoolss_JobInfo1 info1
;
484 [case(2)] spoolss_JobInfo2 info2
;
485 [case(3)] spoolss_JobInfo3 info3
;
486 [case(4)] spoolss_JobInfo4 info4
;
492 [string,charset
(UTF16
)] uint16
*printer_name
;
493 [string,charset
(UTF16
)] uint16
*server_name
;
494 [string,charset
(UTF16
)] uint16
*user_name
;
495 [string,charset
(UTF16
)] uint16
*document_name
;
496 [string,charset
(UTF16
)] uint16
*data_type
;
497 [string,charset
(UTF16
)] uint16
*text_status
;
498 spoolss_JobStatus status
;
499 [range(0,99)] uint32 priority
;
502 uint32 pages_printed
;
503 spoolss_Time submitted
;
504 } spoolss_SetJobInfo1
;
508 [string,charset
(UTF16
)] uint16
*printer_name
;
509 [string,charset
(UTF16
)] uint16
*server_name
;
510 [string,charset
(UTF16
)] uint16
*user_name
;
511 [string,charset
(UTF16
)] uint16
*document_name
;
512 [string,charset
(UTF16
)] uint16
*notify_name
;
513 [string,charset
(UTF16
)] uint16
*data_type
;
514 [string,charset
(UTF16
)] uint16
*print_processor
;
515 [string,charset
(UTF16
)] uint16
*parameters
;
516 [string,charset
(UTF16
)] uint16
*driver_name
;
517 uint32 _devmode_ptr
; /* pointer to truncated devicemode */
518 [string,charset
(UTF16
)] uint16
*text_status
;
520 spoolss_JobStatus status
;
521 [range(0,99)] uint32 priority
;
527 spoolss_Time submitted
;
529 uint32 pages_printed
;
530 } spoolss_SetJobInfo2
;
534 [string,charset
(UTF16
)] uint16
*printer_name
;
535 [string,charset
(UTF16
)] uint16
*server_name
;
536 [string,charset
(UTF16
)] uint16
*user_name
;
537 [string,charset
(UTF16
)] uint16
*document_name
;
538 [string,charset
(UTF16
)] uint16
*notify_name
;
539 [string,charset
(UTF16
)] uint16
*data_type
;
540 [string,charset
(UTF16
)] uint16
*print_processor
;
541 [string,charset
(UTF16
)] uint16
*parameters
;
542 [string,charset
(UTF16
)] uint16
*driver_name
;
543 uint32 _devmode_ptr
; /* pointer to truncated devicemode */
544 [string,charset
(UTF16
)] uint16
*text_status
;
546 spoolss_JobStatus status
;
547 [range(0,99)] uint32 priority
;
553 spoolss_Time submitted
;
555 uint32 pages_printed
;
557 } spoolss_SetJobInfo4
;
559 typedef [public] union {
560 [case(1)] spoolss_SetJobInfo1
*info1
;
561 [case(2)] spoolss_SetJobInfo2
*info2
;
562 [case(3)] spoolss_JobInfo3
*info3
;
563 [case(4)] spoolss_SetJobInfo4
*info4
;
565 } spoolss_SetJobInfo
;
569 [switch_is(level
)] spoolss_SetJobInfo info
;
570 } spoolss_JobInfoContainer
;
572 typedef [v1_enum] enum {
573 SPOOLSS_JOB_CONTROL_PAUSE
= 1,
574 SPOOLSS_JOB_CONTROL_RESUME
= 2,
575 SPOOLSS_JOB_CONTROL_CANCEL
= 3,
576 SPOOLSS_JOB_CONTROL_RESTART
= 4,
577 SPOOLSS_JOB_CONTROL_DELETE
= 5,
578 SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER
= 6,
579 SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED
= 7,
580 SPOOLSS_JOB_CONTROL_RETAIN
= 8,
581 SPOOLSS_JOB_CONTROL_RELEASE
= 9
582 } spoolss_JobControl
;
584 WERROR spoolss_SetJob
(
585 [in,ref] policy_handle
*handle,
587 [in,unique] spoolss_JobInfoContainer
*ctr
,
588 [in] spoolss_JobControl command
593 WERROR spoolss_GetJob
(
594 [in,ref] policy_handle
*handle,
597 [in,unique] DATA_BLOB
*buffer
,
599 [out,unique,subcontext
(4),subcontext_size
(offered
),switch_is(level
)] spoolss_JobInfo
*info
,
600 [out,ref] uint32
*needed
605 [public,noopnum
,noprint
] WERROR _spoolss_EnumJobs
(
606 [in,ref] policy_handle
*handle,
607 [in] uint32 firstjob
,
610 [in,unique] DATA_BLOB
*buffer
,
612 [out,unique] DATA_BLOB
*info
,
613 [out,ref] uint32
*needed
,
614 [out,ref] uint32
*count
616 [public,noopnum
,noprint
] void __spoolss_EnumJobs
(
619 [out,switch_is(level
)] spoolss_JobInfo info
[count
]
621 [nopull
,nopush
] WERROR spoolss_EnumJobs
(
622 [in,ref] policy_handle
*handle,
623 [in] uint32 firstjob
,
626 [in,unique] DATA_BLOB
*buffer
,
628 [out,ref] uint32
*count
,
629 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_JobInfo
**info
,
630 [out,ref] uint32
*needed
635 [todo
] WERROR spoolss_AddPrinter
(
636 /* This function is not implemented in Samba 3 as no
637 clients have been observed using it. */
642 WERROR spoolss_DeletePrinter
(
643 [in] policy_handle
*handle
648 typedef [v1_enum] enum {
649 SPOOLSS_PRINTER_CONTROL_UNPAUSE
= 0,
650 SPOOLSS_PRINTER_CONTROL_PAUSE
= 1,
651 SPOOLSS_PRINTER_CONTROL_RESUME
= 2,
652 SPOOLSS_PRINTER_CONTROL_PURGE
= 3,
653 SPOOLSS_PRINTER_CONTROL_SET_STATUS
= 4
654 } spoolss_PrinterControl
;
657 [string,charset
(UTF16
)] uint16
*servername
;
658 [string,charset
(UTF16
)] uint16
*printername
;
663 uint32 global_counter
;
669 uint32 session_counter
;
670 uint32 num_error_out_of_paper
;
671 uint32 num_error_not_ready
;
673 uint32 number_of_processors
;
674 spoolss_ProcessorType processor_type
;
675 uint32 high_part_total_bytes
;
679 uint32 enumerate_network_printers
;
681 spoolss_ProcessorArchitecture processor_architecture
;
682 uint16 processor_level
;
686 } spoolss_SetPrinterInfo0
;
689 spoolss_EnumPrinterFlags flags
;
690 [string,charset
(UTF16
)] uint16
*description
;
691 [string,charset
(UTF16
)] uint16
*name
;
692 [string,charset
(UTF16
)] uint16
*comment
;
693 } spoolss_SetPrinterInfo1
;
696 [string,charset
(UTF16
)] uint16
*servername
;
697 [string,charset
(UTF16
)] uint16
*printername
;
698 [string,charset
(UTF16
)] uint16
*sharename
;
699 [string,charset
(UTF16
)] uint16
*portname
;
700 [string,charset
(UTF16
)] uint16
*drivername
;
701 [string,charset
(UTF16
)] uint16
*comment
;
702 [string,charset
(UTF16
)] uint16
*location
;
703 [subcontext
(0)] spoolss_DeviceMode
*devmode
;
704 [string,charset
(UTF16
)] uint16
*sepfile
;
705 [string,charset
(UTF16
)] uint16
*printprocessor
;
706 [string,charset
(UTF16
)] uint16
*datatype
;
707 [string,charset
(UTF16
)] uint16
*parameters
;
708 [subcontext
(0)] security_descriptor
*secdesc
;
709 spoolss_PrinterAttributes attributes
;
710 [range(0,99)] uint32 priority
;
711 uint32 defaultpriority
;
714 spoolss_PrinterStatus status
;
717 } spoolss_SetPrinterInfo2
;
721 } spoolss_SetPrinterInfo3
;
724 [string,charset
(UTF16
)] uint16
*printername
;
725 [string,charset
(UTF16
)] uint16
*servername
;
726 spoolss_PrinterAttributes attributes
;
727 } spoolss_SetPrinterInfo4
;
730 [string,charset
(UTF16
)] uint16
*printername
;
731 [string,charset
(UTF16
)] uint16
*portname
;
732 spoolss_PrinterAttributes attributes
;
733 uint32 device_not_selected_timeout
;
734 uint32 transmission_retry_timeout
;
735 } spoolss_SetPrinterInfo5
;
738 spoolss_PrinterStatus status
;
739 } spoolss_SetPrinterInfo6
;
742 [string,charset
(UTF16
)] uint16
*guid
; /* text form of printer guid */
743 spoolss_DsPrintAction action
;
744 } spoolss_SetPrinterInfo7
;
746 typedef [switch_type(uint32
)] union {
747 [case(0)] spoolss_SetPrinterInfo0
*info0
;
748 [case(1)] spoolss_SetPrinterInfo1
*info1
;
749 [case(2)] spoolss_SetPrinterInfo2
*info2
;
750 [case(3)] spoolss_SetPrinterInfo3
*info3
;
751 [case(4)] spoolss_SetPrinterInfo4
*info4
;
752 [case(5)] spoolss_SetPrinterInfo5
*info5
;
753 [case(6)] spoolss_SetPrinterInfo6
*info6
;
754 [case(7)] spoolss_SetPrinterInfo7
*info7
;
755 [case(8)] spoolss_DeviceModeInfo
*info8
;
756 [case(9)] spoolss_DeviceModeInfo
*info9
;
758 } spoolss_SetPrinterInfo
;
762 [switch_is(level
)] spoolss_SetPrinterInfo info
;
763 } spoolss_SetPrinterInfoCtr
;
765 WERROR spoolss_SetPrinter
(
766 [in,ref] policy_handle
*handle,
767 [in,ref] spoolss_SetPrinterInfoCtr
*info_ctr
,
768 [in,ref] spoolss_DevmodeContainer
*devmode_ctr
,
769 [in,ref] sec_desc_buf
*secdesc_ctr
,
770 [in] spoolss_PrinterControl command
775 [public] WERROR spoolss_GetPrinter
(
776 [in,ref] policy_handle
*handle,
778 [in,unique] DATA_BLOB
*buffer
,
780 [out,unique,subcontext
(4),subcontext_size
(offered
),switch_is(level
)] spoolss_PrinterInfo
*info
,
781 [out,ref] uint32
*needed
787 typedef [public] struct {
788 [value
((ndr_size_spoolss_StringArray
(r
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2)] uint32 _ndr_size
;
789 /*[subcontext(0),subcontext_size(_ndr_size*2)]*/ nstring_array
string;
790 } spoolss_StringArray
;
793 [string,charset
(UTF16
)] uint16
*driver_name
;
794 } spoolss_AddDriverInfo1
;
796 typedef [v1_enum,public] enum {
797 SPOOLSS_DRIVER_VERSION_9X
= 0,
798 SPOOLSS_DRIVER_VERSION_NT35
= 1,
799 SPOOLSS_DRIVER_VERSION_NT4
= 2,
800 SPOOLSS_DRIVER_VERSION_200X
= 3
801 } spoolss_DriverOSVersion
;
804 spoolss_DriverOSVersion
version;
805 [string,charset
(UTF16
)] uint16
*driver_name
;
806 [string,charset
(UTF16
)] uint16
*architecture
;
807 [string,charset
(UTF16
)] uint16
*driver_path
;
808 [string,charset
(UTF16
)] uint16
*data_file
;
809 [string,charset
(UTF16
)] uint16
*config_file
;
810 } spoolss_AddDriverInfo2
;
813 spoolss_DriverOSVersion
version;
814 [string,charset
(UTF16
)] uint16
*driver_name
;
815 [string,charset
(UTF16
)] uint16
*architecture
;
816 [string,charset
(UTF16
)] uint16
*driver_path
;
817 [string,charset
(UTF16
)] uint16
*data_file
;
818 [string,charset
(UTF16
)] uint16
*config_file
;
819 [string,charset
(UTF16
)] uint16
*help_file
;
820 [string,charset
(UTF16
)] uint16
*monitor_name
;
821 [string,charset
(UTF16
)] uint16
*default_datatype
;
822 [value
(((ndr_size_spoolss_StringArray
(dependent_files
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_dependent_files
;
823 spoolss_StringArray
*dependent_files
;
824 } spoolss_AddDriverInfo3
;
827 spoolss_DriverOSVersion
version;
828 [string,charset
(UTF16
)] uint16
*driver_name
;
829 [string,charset
(UTF16
)] uint16
*architecture
;
830 [string,charset
(UTF16
)] uint16
*driver_path
;
831 [string,charset
(UTF16
)] uint16
*data_file
;
832 [string,charset
(UTF16
)] uint16
*config_file
;
833 [string,charset
(UTF16
)] uint16
*help_file
;
834 [string,charset
(UTF16
)] uint16
*monitor_name
;
835 [string,charset
(UTF16
)] uint16
*default_datatype
;
836 [value
(((ndr_size_spoolss_StringArray
(dependent_files
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_dependent_files
;
837 spoolss_StringArray
*dependent_files
;
838 [value
(((ndr_size_spoolss_StringArray
(previous_names
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_previous_names
;
839 spoolss_StringArray
*previous_names
;
840 } spoolss_AddDriverInfo4
;
842 typedef [bitmap32bit
] bitmap
{
843 PRINTER_DRIVER_PACKAGE_AWARE
= 0x00000002
844 } spoolss_DriverAttributes
;
847 spoolss_DriverOSVersion
version;
848 [string,charset
(UTF16
)] uint16
*driver_name
;
849 [string,charset
(UTF16
)] uint16
*architecture
;
850 [string,charset
(UTF16
)] uint16
*driver_path
;
851 [string,charset
(UTF16
)] uint16
*data_file
;
852 [string,charset
(UTF16
)] uint16
*config_file
;
853 spoolss_DriverAttributes driver_attributes
;
854 uint32 config_version
;
855 uint32 driver_version
;
856 } spoolss_AddDriverInfo5
;
859 spoolss_DriverOSVersion
version;
860 [string,charset
(UTF16
)] uint16
*driver_name
;
861 [string,charset
(UTF16
)] uint16
*architecture
;
862 [string,charset
(UTF16
)] uint16
*driver_path
;
863 [string,charset
(UTF16
)] uint16
*data_file
;
864 [string,charset
(UTF16
)] uint16
*config_file
;
865 [string,charset
(UTF16
)] uint16
*help_file
;
866 [string,charset
(UTF16
)] uint16
*monitor_name
;
867 [string,charset
(UTF16
)] uint16
*default_datatype
;
868 [value
(((ndr_size_spoolss_StringArray
(dependent_files
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_dependent_files
;
869 spoolss_StringArray
*dependent_files
;
870 [value
(((ndr_size_spoolss_StringArray
(previous_names
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_previous_names
;
871 spoolss_StringArray
*previous_names
;
873 hyper driver_version
;
874 [string,charset
(UTF16
)] uint16
*manufacturer_name
;
875 [string,charset
(UTF16
)] uint16
*manufacturer_url
;
876 [string,charset
(UTF16
)] uint16
*hardware_id
;
877 [string,charset
(UTF16
)] uint16
*provider
;
878 } spoolss_AddDriverInfo6
;
881 spoolss_DriverOSVersion
version;
882 [string,charset
(UTF16
)] uint16
*driver_name
;
883 [string,charset
(UTF16
)] uint16
*architecture
;
884 [string,charset
(UTF16
)] uint16
*driver_path
;
885 [string,charset
(UTF16
)] uint16
*data_file
;
886 [string,charset
(UTF16
)] uint16
*config_file
;
887 [string,charset
(UTF16
)] uint16
*help_file
;
888 [string,charset
(UTF16
)] uint16
*monitor_name
;
889 [string,charset
(UTF16
)] uint16
*default_datatype
;
890 [value
(((ndr_size_spoolss_StringArray
(dependent_files
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_dependent_files
;
891 spoolss_StringArray
*dependent_files
;
892 [value
(((ndr_size_spoolss_StringArray
(previous_names
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_previous_names
;
893 spoolss_StringArray
*previous_names
;
895 hyper driver_version
;
896 [string,charset
(UTF16
)] uint16
*manufacturer_name
;
897 [string,charset
(UTF16
)] uint16
*manufacturer_url
;
898 [string,charset
(UTF16
)] uint16
*hardware_id
;
899 [string,charset
(UTF16
)] uint16
*provider
;
900 [string,charset
(UTF16
)] uint16
*print_processor
;
901 [string,charset
(UTF16
)] uint16
*vendor_setup
;
902 [value
(((ndr_size_spoolss_StringArray
(color_profiles
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_color_profiles
;
903 spoolss_StringArray
*color_profiles
;
904 [string,charset
(UTF16
)] uint16
*inf_path
;
905 uint32 printer_driver_attributes
;
906 [value
(((ndr_size_spoolss_StringArray
(core_driver_dependencies
, ndr
->iconv_convenience
, ndr
->flags
)-4)/2))] uint32 _ndr_size_core_driver_dependencies
;
907 spoolss_StringArray
*core_driver_dependencies
;
908 NTTIME min_inbox_driver_ver_date
;
909 hyper min_inbox_driver_ver_version
;
910 } spoolss_AddDriverInfo8
;
912 typedef [switch_type(uint32
)] union {
913 [case(1)] spoolss_AddDriverInfo1
*info1
;
914 [case(2)] spoolss_AddDriverInfo2
*info2
;
915 [case(3)] spoolss_AddDriverInfo3
*info3
;
916 [case(4)] spoolss_AddDriverInfo4
*info4
;
917 [case(6)] spoolss_AddDriverInfo6
*info6
;
918 [case(8)] spoolss_AddDriverInfo8
*info8
;
919 } spoolss_AddDriverInfo
;
923 [switch_is(level
)] spoolss_AddDriverInfo info
;
924 } spoolss_AddDriverInfoCtr
;
926 WERROR spoolss_AddPrinterDriver
(
927 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
928 [in,ref] spoolss_AddDriverInfoCtr
*info_ctr
931 typedef [public,gensize
] struct {
932 [relative
] nstring
*driver_name
;
933 } spoolss_DriverInfo1
;
935 typedef [public,gensize
] struct {
936 spoolss_DriverOSVersion
version;
937 [relative
] nstring
*driver_name
;
938 [relative
] nstring
*architecture
;
939 [relative
] nstring
*driver_path
;
940 [relative
] nstring
*data_file
;
941 [relative
] nstring
*config_file
;
942 } spoolss_DriverInfo2
;
944 typedef [public,gensize
] struct {
945 spoolss_DriverOSVersion
version;
946 [relative
] nstring
*driver_name
;
947 [relative
] nstring
*architecture
;
948 [relative
] nstring
*driver_path
;
949 [relative
] nstring
*data_file
;
950 [relative
] nstring
*config_file
;
951 [relative
] nstring
*help_file
;
952 [relative
] nstring_array
*dependent_files
;
953 [relative
] nstring
*monitor_name
;
954 [relative
] nstring
*default_datatype
;
955 } spoolss_DriverInfo3
;
957 typedef [public,gensize
] struct {
958 spoolss_DriverOSVersion
version;
959 [relative
] nstring
*driver_name
;
960 [relative
] nstring
*architecture
;
961 [relative
] nstring
*driver_path
;
962 [relative
] nstring
*data_file
;
963 [relative
] nstring
*config_file
;
964 [relative
] nstring
*help_file
;
965 [relative
] nstring_array
*dependent_files
;
966 [relative
] nstring
*monitor_name
;
967 [relative
] nstring
*default_datatype
;
968 [relative
] nstring_array
*previous_names
;
969 } spoolss_DriverInfo4
;
971 typedef [public,gensize
] struct {
972 spoolss_DriverOSVersion
version;
973 [relative
] nstring
*driver_name
;
974 [relative
] nstring
*architecture
;
975 [relative
] nstring
*driver_path
;
976 [relative
] nstring
*data_file
;
977 [relative
] nstring
*config_file
;
978 spoolss_DriverAttributes driver_attributes
;
979 uint32 config_version
;
980 uint32 driver_version
;
981 } spoolss_DriverInfo5
;
983 typedef [public,gensize
] struct {
984 spoolss_DriverOSVersion
version;
985 [relative
] nstring
*driver_name
;
986 [relative
] nstring
*architecture
;
987 [relative
] nstring
*driver_path
;
988 [relative
] nstring
*data_file
;
989 [relative
] nstring
*config_file
;
990 [relative
] nstring
*help_file
;
991 [relative
] nstring_array
*dependent_files
;
992 [relative
] nstring
*monitor_name
;
993 [relative
] nstring
*default_datatype
;
994 [relative
] nstring_array
*previous_names
;
996 hyper driver_version
;
997 [relative
] nstring
*manufacturer_name
;
998 [relative
] nstring
*manufacturer_url
;
999 [relative
] nstring
*hardware_id
;
1000 [relative
] nstring
*provider
;
1001 } spoolss_DriverInfo6
;
1003 typedef [public,gensize
] struct {
1004 spoolss_DriverOSVersion
version;
1005 [relative
] nstring
*driver_name
;
1006 [relative
] nstring
*architecture
;
1007 [relative
] nstring
*driver_path
;
1008 [relative
] nstring
*data_file
;
1009 [relative
] nstring
*config_file
;
1010 [relative
] nstring
*help_file
;
1011 [relative
] nstring
*monitor_name
;
1012 [relative
] nstring
*default_datatype
;
1013 [relative
] nstring_array
*dependent_files
;
1014 [relative
] nstring_array
*previous_names
;
1016 hyper driver_version
;
1017 [relative
] nstring
*manufacturer_name
;
1018 [relative
] nstring
*manufacturer_url
;
1019 [relative
] nstring
*hardware_id
;
1020 [relative
] nstring
*provider
;
1021 [relative
] nstring
*print_processor
;
1022 [relative
] nstring
*vendor_setup
;
1023 [relative
] nstring_array
*color_profiles
;
1024 [relative
] nstring
*inf_path
;
1025 uint32 printer_driver_attributes
;
1026 [relative
] nstring_array
*core_driver_dependencies
;
1027 NTTIME min_inbox_driver_ver_date
;
1028 hyper min_inbox_driver_ver_version
;
1029 } spoolss_DriverInfo8
;
1031 typedef [v1_enum] enum {
1032 SPOOLSS_DRIVER_FILE_TYPE_RENDERING
= 0x00000000,
1033 SPOOLSS_DRIVER_FILE_TYPE_CONFIGURATION
= 0x00000001,
1034 SPOOLSS_DRIVER_FILE_TYPE_DATA
= 0x00000002,
1035 SPOOLSS_DRIVER_FILE_TYPE_HELP
= 0x00000003,
1036 SPOOLSS_DRIVER_FILE_TYPE_OTHER
= 0x00000004
1037 } spoolss_DriverFileType
;
1039 typedef [public] struct {
1040 [relative
] nstring
*file_name
;
1041 spoolss_DriverFileType file_type
;
1042 uint32 file_version
;
1043 } spoolss_DriverFileInfo
;
1045 typedef [public,gensize
,nopush
,nopull
] struct {
1046 spoolss_DriverOSVersion
version;
1047 [relative
] nstring
*driver_name
;
1048 [relative
] nstring
*architecture
;
1049 [relative
] [size_is(file_count
)] spoolss_DriverFileInfo
*file_info
;
1051 [relative
] nstring
*monitor_name
;
1052 [relative
] nstring
*default_datatype
;
1053 [relative
] nstring_array
*previous_names
;
1055 hyper driver_version
;
1056 [relative
] nstring
*manufacturer_name
;
1057 [relative
] nstring
*manufacturer_url
;
1058 [relative
] nstring
*hardware_id
;
1059 [relative
] nstring
*provider
;
1060 } spoolss_DriverInfo101
;
1062 typedef [nodiscriminant
,relative_base
,public,gensize
,flag
(NDR_RELATIVE_REVERSE
)] union {
1063 [case(1)] spoolss_DriverInfo1 info1
;
1064 [case(2)] spoolss_DriverInfo2 info2
;
1065 [case(3)] spoolss_DriverInfo3 info3
;
1066 [case(4)] spoolss_DriverInfo4 info4
;
1067 [case(5)] spoolss_DriverInfo5 info5
;
1068 [case(6)] spoolss_DriverInfo6 info6
;
1069 [case(8)] spoolss_DriverInfo8 info8
;
1070 [case(101)] spoolss_DriverInfo101 info101
;
1072 } spoolss_DriverInfo
;
1074 /******************/
1075 /* Function: 0x0a */
1076 [public,noopnum
,noprint
] WERROR _spoolss_EnumPrinterDrivers
(
1077 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
1078 [in,unique] [string,charset
(UTF16
)] uint16
*environment
,
1080 [in,unique] DATA_BLOB
*buffer
,
1081 [in] uint32 offered
,
1082 [out,unique] DATA_BLOB
*info
,
1083 [out,ref] uint32
*needed
,
1084 [out,ref] uint32
*count
1086 [public,noopnum
,noprint
] void __spoolss_EnumPrinterDrivers
(
1089 [out,switch_is(level
)] spoolss_DriverInfo info
[count
]
1091 [nopull
,nopush
] WERROR spoolss_EnumPrinterDrivers
(
1092 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
1093 [in,unique] [string,charset
(UTF16
)] uint16
*environment
,
1095 [in,unique] DATA_BLOB
*buffer
,
1096 [in] uint32 offered
,
1097 [out,ref] uint32
*count
,
1098 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_DriverInfo
**info
,
1099 [out,ref] uint32
*needed
1102 /******************/
1103 /* Function: 0x0b */
1104 [todo
] WERROR spoolss_GetPrinterDriver
(
1107 /******************/
1108 /* Function: 0x0c */
1109 typedef [public,gensize
] struct {
1110 nstring directory_name
;
1111 } spoolss_DriverDirectoryInfo1
;
1113 /* NOTE: it's seems that w2k3 completly ignores the level
1116 typedef [nodiscriminant
,relative_base
,public,gensize
,flag
(NDR_RELATIVE_REVERSE
)] union {
1117 [case(1)] spoolss_DriverDirectoryInfo1 info1
;
1118 [default] spoolss_DriverDirectoryInfo1 info1
;
1119 } spoolss_DriverDirectoryInfo
;
1121 [public] WERROR spoolss_GetPrinterDriverDirectory
(
1122 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
1123 [in,unique] [string,charset
(UTF16
)] uint16
*environment
,
1125 [in,unique] DATA_BLOB
*buffer
,
1126 [in] uint32 offered
,
1127 [out,unique,subcontext
(4),subcontext_size
(offered
),switch_is(level
)] spoolss_DriverDirectoryInfo
*info
,
1128 [out,ref] uint32
*needed
1131 /******************/
1132 /* Function: 0x0d */
1133 WERROR spoolss_DeletePrinterDriver
(
1134 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
1135 [in] [string,charset
(UTF16
)] uint16 architecture
[],
1136 [in] [string,charset
(UTF16
)] uint16 driver
[]
1139 /******************/
1140 /* Function: 0x0e */
1141 WERROR spoolss_AddPrintProcessor
(
1142 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
1143 [in] [string,charset
(UTF16
)] uint16 architecture
[],
1144 [in] [string,charset
(UTF16
)] uint16 path_name
[],
1145 [in] [string,charset
(UTF16
)] uint16 print_processor_name
[]
1148 /******************/
1149 /* Function: 0x0f */
1150 typedef [public,gensize
] struct {
1151 [relative
] nstring
*print_processor_name
;
1152 } spoolss_PrintProcessorInfo1
;
1154 typedef [nodiscriminant
,relative_base
,public,flag
(NDR_RELATIVE_REVERSE
)] union {
1155 [case(1)] spoolss_PrintProcessorInfo1 info1
;
1157 } spoolss_PrintProcessorInfo
;
1159 [public,noopnum
,noprint
] WERROR _spoolss_EnumPrintProcessors
(
1160 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1161 [in,unique] [string,charset
(UTF16
)] uint16
*environment
,
1163 [in,unique] DATA_BLOB
*buffer
,
1164 [in] uint32 offered
,
1165 [out,unique] DATA_BLOB
*info
,
1166 [out,ref] uint32
*needed
,
1167 [out,ref] uint32
*count
1169 [public,noopnum
,noprint
] void __spoolss_EnumPrintProcessors
(
1172 [out,switch_is(level
)] spoolss_PrintProcessorInfo info
[count
]
1174 [nopull
,nopush
] WERROR spoolss_EnumPrintProcessors
(
1175 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1176 [in,unique] [string,charset
(UTF16
)] uint16
*environment
,
1178 [in,unique] DATA_BLOB
*buffer
,
1179 [in] uint32 offered
,
1180 [out,ref] uint32
*count
,
1181 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_PrintProcessorInfo
**info
,
1182 [out,ref] uint32
*needed
1185 /******************/
1186 /* Function: 0x10 */
1187 typedef [public,gensize
] struct {
1188 nstring directory_name
;
1189 } spoolss_PrintProcessorDirectoryInfo1
;
1191 typedef [nodiscriminant
,relative_base
,public,gensize
,flag
(NDR_RELATIVE_REVERSE
)] union {
1192 [case(1)] spoolss_PrintProcessorDirectoryInfo1 info1
;
1193 [default] spoolss_PrintProcessorDirectoryInfo1 info1
;
1194 } spoolss_PrintProcessorDirectoryInfo
;
1196 WERROR spoolss_GetPrintProcessorDirectory
(
1197 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
1198 [in,unique] [string,charset
(UTF16
)] uint16
*environment
,
1200 [in,unique] DATA_BLOB
*buffer
,
1201 [in] uint32 offered
,
1202 [out,unique,subcontext
(4),subcontext_size
(offered
),switch_is(level
)] spoolss_PrintProcessorDirectoryInfo
*info
,
1203 [out,ref] uint32
*needed
1206 /******************/
1207 /* Function: 0x11 */
1209 [string,charset
(UTF16
)] uint16
*document_name
;
1210 [string,charset
(UTF16
)] uint16
*output_file
;
1211 [string,charset
(UTF16
)] uint16
*datatype
;
1212 } spoolss_DocumentInfo1
;
1214 typedef [switch_type(uint32
)] union {
1215 [case(1)] spoolss_DocumentInfo1
*info1
;
1216 [case(2)]; /* TODO */
1217 [case(3)]; /* TODO */
1219 } spoolss_DocumentInfo
;
1221 WERROR spoolss_StartDocPrinter
(
1222 [in,ref] policy_handle
*handle,
1224 [in,switch_is(level
)] spoolss_DocumentInfo info
,
1225 [out,ref] uint32
*job_id
1228 /******************/
1229 /* Function: 0x12 */
1230 WERROR spoolss_StartPagePrinter
(
1231 [in,ref] policy_handle
*handle
1234 /******************/
1235 /* Function: 0x13 */
1236 WERROR spoolss_WritePrinter
(
1237 [in,ref] policy_handle
*handle,
1238 [in] DATA_BLOB data
,
1239 [in,value
(r
->in.data.length
)] uint32 _data_size
,
1240 [out,ref] uint32
*num_written
1243 /******************/
1244 /* Function: 0x14 */
1245 WERROR spoolss_EndPagePrinter
(
1246 [in,ref] policy_handle
*handle
1249 /******************/
1250 /* Function: 0x15 */
1251 WERROR spoolss_AbortPrinter
(
1252 [in,ref] policy_handle
*handle
1255 /******************/
1256 /* Function: 0x16 */
1257 WERROR spoolss_ReadPrinter
(
1258 [in,ref] policy_handle
*handle,
1259 [out,ref] [size_is(data_size
)] uint8
*data
,
1260 [in] uint32 data_size
,
1261 [out,ref] uint32
*_data_size
1264 /******************/
1265 /* Function: 0x17 */
1266 WERROR spoolss_EndDocPrinter
(
1267 [in,ref] policy_handle
*handle
1270 /******************/
1271 /* Function: 0x18 */
1272 WERROR spoolss_AddJob
(
1273 [in,ref] policy_handle
*handle,
1275 [in,out,unique] [size_is(offered
)] uint8
*buffer
,
1276 [in] uint32 offered
,
1277 [out,ref] uint32
*needed
1280 /******************/
1281 /* Function: 0x19 */
1282 WERROR spoolss_ScheduleJob
(
1283 [in,ref] policy_handle
*handle,
1287 /******************/
1288 /* Function: 0x1a */
1290 const string SPL_ARCH_WIN40
= "WIN40";
1291 const string SPL_ARCH_W32X86
= "W32X86";
1292 const string SPL_ARCH_W32MIPS
= "W32MIPS";
1293 const string SPL_ARCH_W32ALPHA
= "W32ALPHA";
1294 const string SPL_ARCH_W32PPC
= "W32PPC";
1295 const string SPL_ARCH_IA64
= "IA64";
1296 const string SPL_ARCH_X64
= "x64";
1298 const string SPOOLSS_ARCHITECTURE_ALL
= "all";
1299 const string SPOOLSS_ARCHITECTURE_NT_X86
= "Windows NT x86";
1300 const string SPOOLSS_DEFAULT_SERVER_PATH
= "C:\\WINDOWS\\system32\\spool";
1302 typedef [public,gensize
] struct {
1303 [value
(ndr_size_spoolss_OSVersion
(r
,ndr
->iconv_convenience
,ndr
->flags
))] uint32 _ndr_size
;
1307 [value
(2)] uint32 unknown
;
1308 [subcontext
(0),subcontext_size
(256)] nstring extra_string
;
1309 } spoolss_OSVersion
;
1311 typedef [public,gensize
] struct {
1312 [value
(ndr_size_spoolss_OSVersionEx
(r
,ndr
->iconv_convenience
,ndr
->flags
))] uint32 _ndr_size
;
1316 [value
(2)] uint32 unknown1
;
1317 [subcontext
(0),subcontext_size
(256)] nstring extra_string
;
1318 uint32 unknown2
;/* service pack number? I saw 0 from w2k3 and 1 from winxp sp1*/
1319 uint32 unknown3
;/* hmm? w2k3: 131346(0x20112) winxp sp1: 503382272 0x1E010100 */
1320 } spoolss_OSVersionEx
;
1322 typedef [nodiscriminant
,public,gensize
] union {
1324 [case(REG_SZ
)] nstring
string;
1325 [case(REG_BINARY
),flag
(NDR_REMAINING
)] DATA_BLOB binary
;
1326 [case(REG_DWORD
)] uint32 value
;
1327 [case(REG_MULTI_SZ
)] nstring_array string_array
;
1328 [default,flag
(NDR_REMAINING
)] DATA_BLOB data
;
1329 } spoolss_PrinterData
;
1331 WERROR spoolss_GetPrinterData
(
1332 [in,ref] policy_handle
*handle,
1333 [in] [string,charset
(UTF16
)] uint16 value_name
[],
1334 [out,ref] winreg_Type
*type
,
1335 [out,ref] [size_is(offered
)] uint8
*data
,
1336 [in] uint32 offered
,
1337 [out,ref] uint32
*needed
1340 /******************/
1341 /* Function: 0x1b */
1342 WERROR spoolss_SetPrinterData
(
1343 [in,ref] policy_handle
*handle,
1344 [in] [string,charset
(UTF16
)] uint16 value_name
[],
1345 [in] winreg_Type type
,
1346 [in,ref] [size_is(offered
)] uint8
*data
,
1350 /******************/
1351 /* Function: 0x1c */
1352 [todo
] WERROR spoolss_WaitForPrinterChange
(
1355 /******************/
1356 /* Function: 0x1d */
1357 [public] WERROR spoolss_ClosePrinter
(
1358 [in,out,ref] policy_handle
*handle
1361 /******************/
1362 /* Function: 0x1e */
1363 typedef [v1_enum] enum {
1364 SPOOLSS_FORM_USER
= 0,
1365 SPOOLSS_FORM_BUILTIN
= 1,
1366 SPOOLSS_FORM_PRINTER
= 2
1367 } spoolss_FormFlags
;
1381 typedef [public,gensize
] struct {
1382 spoolss_FormFlags flags
;
1383 [relative
] nstring
*form_name
;
1384 spoolss_FormSize size
;
1385 spoolss_FormArea area
;
1386 } spoolss_FormInfo1
;
1388 typedef [bitmap32bit
] bitmap
{
1389 SPOOLSS_FORM_STRING_TYPE_NONE
= 0x00000001,
1390 SPOOLSS_FORM_STRING_TYPE_MUI_DLL
= 0x00000002,
1391 SPOOLSS_FORM_STRING_TYPE_LANG_PAIR
= 0x00000004
1392 } spoolss_FormStringType
;
1394 typedef [public,gensize
] struct {
1395 spoolss_FormFlags flags
;
1396 [relative
] nstring
*form_name
;
1397 spoolss_FormSize size
;
1398 spoolss_FormArea area
;
1399 [relative
] astring
*keyword
;
1400 spoolss_FormStringType string_type
;
1401 [relative
] nstring
*mui_dll
;
1402 uint32 ressource_id
;
1403 [relative
] nstring
*display_name
;
1405 } spoolss_FormInfo2
;
1407 typedef [nodiscriminant
,relative_base
,public,gensize
,flag
(NDR_RELATIVE_REVERSE
)] union {
1408 [case(1)] spoolss_FormInfo1 info1
;
1409 [case(2)] spoolss_FormInfo2 info2
;
1414 spoolss_FormFlags flags
;
1415 [string,charset
(UTF16
)] uint16
*form_name
;
1416 spoolss_FormSize size
;
1417 spoolss_FormArea area
;
1418 } spoolss_AddFormInfo1
;
1421 spoolss_FormFlags flags
;
1422 [string,charset
(UTF16
)] uint16
*form_name
;
1423 spoolss_FormSize size
;
1424 spoolss_FormArea area
;
1425 [string,charset
(DOS
)] uint8
*keyword
;
1426 spoolss_FormStringType string_type
;
1427 [string,charset
(UTF16
)] uint16
*mui_dll
;
1428 uint32 ressource_id
;
1429 [string,charset
(UTF16
)] uint16
*display_name
;
1431 } spoolss_AddFormInfo2
;
1433 typedef [switch_type(uint32
)] union {
1434 [case(1)] spoolss_AddFormInfo1
*info1
;
1435 [case(2)] spoolss_AddFormInfo2
*info2
;
1436 } spoolss_AddFormInfo
;
1438 WERROR spoolss_AddForm
(
1439 [in,ref] policy_handle
*handle,
1441 [in,switch_is(level
)] spoolss_AddFormInfo info
1444 /******************/
1445 /* Function: 0x1f */
1446 WERROR spoolss_DeleteForm
(
1447 [in,ref] policy_handle
*handle,
1448 [in] [string,charset
(UTF16
)] uint16 form_name
[]
1451 /******************/
1452 /* Function: 0x20 */
1453 WERROR spoolss_GetForm
(
1454 [in,ref] policy_handle
*handle,
1455 [in] [string,charset
(UTF16
)] uint16 form_name
[],
1457 [in,unique] DATA_BLOB
*buffer
,
1458 [in] uint32 offered
,
1459 [out,unique,subcontext
(4),subcontext_size
(offered
),switch_is(level
)] spoolss_FormInfo
*info
,
1460 [out,ref] uint32
*needed
1463 /******************/
1464 /* Function: 0x21 */
1465 WERROR spoolss_SetForm
(
1466 [in,ref] policy_handle
*handle,
1467 [in] [string,charset
(UTF16
)] uint16 form_name
[],
1469 [in,switch_is(level
)] spoolss_AddFormInfo info
1472 /******************/
1473 /* Function: 0x22 */
1474 [public,noopnum
,noprint
] WERROR _spoolss_EnumForms
(
1475 [in,ref] policy_handle
*handle,
1477 [in,unique] DATA_BLOB
*buffer
,
1478 [in] uint32 offered
,
1479 [out,unique] DATA_BLOB
*info
,
1480 [out,ref] uint32
*needed
,
1481 [out,ref] uint32
*count
1483 [public,noopnum
,noprint
] void __spoolss_EnumForms
(
1486 [out,switch_is(level
)] spoolss_FormInfo info
[count
]
1488 [nopull
,nopush
] WERROR spoolss_EnumForms
(
1489 [in,ref] policy_handle
*handle,
1491 [in,unique] DATA_BLOB
*buffer
,
1492 [in] uint32 offered
,
1493 [out,ref] uint32
*count
,
1494 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_FormInfo
**info
,
1495 [out,ref] uint32
*needed
1499 * Special strings for the OpenPrinter() call. See the MSDN DDK
1500 * docs on the XcvDataPort() for more details.
1503 const string SPL_LOCAL_PORT
= "Local Port";
1504 const string SPL_TCPIP_PORT
= "Standard TCP/IP Port";
1505 const string SPL_XCV_MONITOR_LOCALMON
= ",XcvMonitor Local Port";
1506 const string SPL_XCV_MONITOR_TCPMON
= ",XcvMonitor Standard TCP/IP Port";
1508 typedef [public,gensize
] struct {
1509 [relative
] nstring
*port_name
;
1510 } spoolss_PortInfo1
;
1513 SPOOLSS_PORT_TYPE_WRITE
= 0x00000001,
1514 SPOOLSS_PORT_TYPE_READ
= 0x00000002,
1515 SPOOLSS_PORT_TYPE_REDIRECTED
= 0x00000004,
1516 SPOOLSS_PORT_TYPE_NET_ATTACHED
= 0x00000008
1519 typedef [public,gensize
] struct {
1520 [relative
] nstring
*port_name
;
1521 [relative
] nstring
*monitor_name
;
1522 [relative
] nstring
*description
;
1523 spoolss_PortType port_type
;
1525 } spoolss_PortInfo2
;
1527 typedef [v1_enum] enum {
1528 PORT_STATUS_CLEAR
= 0x00000000,
1529 PORT_STATUS_OFFLINE
= 0x00000001,
1530 PORT_STATUS_PAPER_JAM
= 0x00000002,
1531 PORT_STATUS_PAPER_OUT
= 0x00000003,
1532 PORT_STATUS_OUTPUT_BIN_FULL
= 0x00000004,
1533 PORT_STATUS_PAPER_PROBLEM
= 0x00000005,
1534 PORT_STATUS_NO_TONER
= 0x00000006,
1535 PORT_STATUS_DOOR_OPEN
= 0x00000007,
1536 PORT_STATUS_USER_INTERVENTION
= 0x00000008,
1537 PORT_STATUS_OUT_OF_MEMORY
= 0x00000009,
1538 PORT_STATUS_TONER_LOW
= 0x0000000A,
1539 PORT_STATUS_WARMING_UP
= 0x0000000B,
1540 PORT_STATUS_POWER_SAVE
= 0x0000000C
1541 } spoolss_PortStatus
;
1543 typedef [v1_enum] enum {
1544 PORT_STATUS_TYPE_ERROR
= 0x00000001,
1545 PORT_STATUS_TYPE_WARNING
= 0x00000002,
1546 PORT_STATUS_TYPE_INFO
= 0x00000003
1547 } spoolss_PortSeverity
;
1549 typedef [public,gensize
] struct {
1550 spoolss_PortStatus status
;
1551 [relative
] nstring
*status_string
;
1552 spoolss_PortSeverity severity
;
1553 } spoolss_PortInfo3
;
1555 typedef [public,gensize
] struct {
1556 [relative
] nstring
*port_name
;
1557 DATA_BLOB monitor_data
; /* relative ?? */
1558 } spoolss_PortInfoFF
;
1560 typedef [nodiscriminant
,relative_base
,public,flag
(NDR_RELATIVE_REVERSE
)] union {
1561 [case(1)] spoolss_PortInfo1 info1
;
1562 [case(2)] spoolss_PortInfo2 info2
;
1563 [case(3)] spoolss_PortInfo3 info3
;
1564 [case(0xff)] spoolss_PortInfoFF infoFF
;
1568 /******************/
1569 /* Function: 0x23 */
1570 [public,noopnum
,noprint
] WERROR _spoolss_EnumPorts
(
1571 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1573 [in,unique] DATA_BLOB
*buffer
,
1574 [in] uint32 offered
,
1575 [out,unique] DATA_BLOB
*info
,
1576 [out,ref] uint32
*needed
,
1577 [out,ref] uint32
*count
1579 [public,noopnum
,noprint
] void __spoolss_EnumPorts
(
1582 [out,switch_is(level
)] spoolss_PortInfo info
[count
]
1584 [nopull
,nopush
] WERROR spoolss_EnumPorts
(
1585 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1587 [in,unique] DATA_BLOB
*buffer
,
1588 [in] uint32 offered
,
1589 [out,ref] uint32
*count
,
1590 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_PortInfo
**info
,
1591 [out,ref] uint32
*needed
1594 /******************/
1595 /* Function: 0x24 */
1596 typedef [public,gensize
] struct {
1597 [relative
] nstring
*monitor_name
;
1598 } spoolss_MonitorInfo1
;
1600 typedef [public,gensize
] struct {
1601 [relative
] nstring
*monitor_name
;
1602 [relative
] nstring
*environment
;
1603 [relative
] nstring
*dll_name
;
1604 } spoolss_MonitorInfo2
;
1606 typedef [nodiscriminant
,relative_base
,public,flag
(NDR_RELATIVE_REVERSE
)] union {
1607 [case(1)] spoolss_MonitorInfo1 info1
;
1608 [case(2)] spoolss_MonitorInfo2 info2
;
1610 } spoolss_MonitorInfo
;
1612 [public,noopnum
,noprint
] WERROR _spoolss_EnumMonitors
(
1613 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1615 [in,unique] DATA_BLOB
*buffer
,
1616 [in] uint32 offered
,
1617 [out,unique] DATA_BLOB
*info
,
1618 [out,ref] uint32
*needed
,
1619 [out,ref] uint32
*count
1621 [public,noopnum
,noprint
] void __spoolss_EnumMonitors
(
1624 [out,switch_is(level
)] spoolss_MonitorInfo info
[count
]
1626 [nopull
,nopush
] WERROR spoolss_EnumMonitors
(
1627 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1629 [in,unique] DATA_BLOB
*buffer
,
1630 [in] uint32 offered
,
1631 [out,ref] uint32
*count
,
1632 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_MonitorInfo
**info
,
1633 [out,ref] uint32
*needed
1636 /******************/
1637 /* Function: 0x25 */
1638 WERROR spoolss_AddPort
(
1639 [in,unique] [string,charset
(UTF16
)] uint16
*server_name
,
1640 [in] uint32 unknown
,
1641 [in] [string,charset
(UTF16
)] uint16 monitor_name
[]
1644 /******************/
1645 /* Function: 0x26 */
1646 [todo
] WERROR spoolss_ConfigurePort
(
1649 /******************/
1650 /* Function: 0x27 */
1651 [todo
] WERROR spoolss_DeletePort
(
1654 /******************/
1655 /* Function: 0x28 */
1656 [todo
] WERROR spoolss_CreatePrinterIC
(
1659 /******************/
1660 /* Function: 0x29 */
1661 [todo
] WERROR spoolss_PlayGDIScriptOnPrinterIC
(
1664 /******************/
1665 /* Function: 0x2a */
1666 [todo
] WERROR spoolss_DeletePrinterIC
(
1669 /******************/
1670 /* Function: 0x2b */
1671 [todo
] WERROR spoolss_AddPrinterConnection
(
1674 /******************/
1675 /* Function: 0x2c */
1676 [todo
] WERROR spoolss_DeletePrinterConnection
(
1679 /******************/
1680 /* Function: 0x2d */
1681 [todo
] WERROR spoolss_PrinterMessageBox
(
1682 /* Marked as obsolete in MSDN. "Not necessary and has
1686 /******************/
1687 /* Function: 0x2e */
1688 [todo
] WERROR spoolss_AddMonitor
(
1691 /******************/
1692 /* Function: 0x2f */
1693 [todo
] WERROR spoolss_DeleteMonitor
(
1696 /******************/
1697 /* Function: 0x30 */
1698 [todo
] WERROR spoolss_DeletePrintProcessor
(
1701 /******************/
1702 /* Function: 0x31 */
1703 [todo
] WERROR spoolss_AddPrintProvidor
(
1706 /******************/
1707 /* Function: 0x32 */
1708 [todo
] WERROR spoolss_DeletePrintProvidor
(
1711 /******************/
1712 /* Function: 0x33 */
1714 typedef [public,gensize
] struct {
1715 [relative
] nstring
*name_array
;
1716 } spoolss_PrintProcDataTypesInfo1
;
1718 typedef [nodiscriminant
,relative_base
,public,flag
(NDR_RELATIVE_REVERSE
)] union {
1719 [case(1)] spoolss_PrintProcDataTypesInfo1 info1
;
1721 } spoolss_PrintProcDataTypesInfo
;
1723 [public,noopnum
,noprint
] WERROR _spoolss_EnumPrintProcDataTypes
(
1724 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1725 [in,unique] [string,charset
(UTF16
)] uint16
*print_processor_name
,
1727 [in,unique] DATA_BLOB
*buffer
,
1728 [in] uint32 offered
,
1729 [out,unique] DATA_BLOB
*info
,
1730 [out,ref] uint32
*needed
,
1731 [out,ref] uint32
*count
1733 [public,noopnum
,noprint
] void __spoolss_EnumPrintProcDataTypes
(
1736 [out,switch_is(level
)] spoolss_PrintProcDataTypesInfo info
[count
]
1738 [nopull
,nopush
] WERROR spoolss_EnumPrintProcDataTypes
(
1739 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
1740 [in,unique] [string,charset
(UTF16
)] uint16
*print_processor_name
,
1742 [in,unique] DATA_BLOB
*buffer
,
1743 [in] uint32 offered
,
1744 [out,ref] uint32
*count
,
1745 [out,ref,switch_is(level
),size_is(,*count
)] spoolss_PrintProcDataTypesInfo
**info
,
1746 [out,ref] uint32
*needed
1749 /******************/
1750 /* Function: 0x34 */
1751 WERROR spoolss_ResetPrinter
(
1752 [in,ref] policy_handle
*handle,
1753 [in,unique] [string,charset
(UTF16
)] uint16
*data_type
,
1754 [in,ref] spoolss_DevmodeContainer
*devmode_ctr
1757 /******************/
1758 /* Function: 0x35 */
1759 WERROR spoolss_GetPrinterDriver2
(
1760 [in,ref] policy_handle
*handle,
1761 [in,unique] [string,charset
(UTF16
)] uint16
*architecture
,
1763 [in,unique] DATA_BLOB
*buffer
,
1764 [in] uint32 offered
,
1765 [in] uint32 client_major_version
,
1766 [in] uint32 client_minor_version
,
1767 [out,unique,subcontext
(4),subcontext_size
(offered
),switch_is(level
)] spoolss_DriverInfo
*info
,
1768 [out,ref] uint32
*needed
,
1769 [out,ref] uint32
*server_major_version
,
1770 [out,ref] uint32
*server_minor_version
1773 /******************/
1774 /* Function: 0x36 */
1775 [todo
] WERROR spoolss_FindFirstPrinterChangeNotification
(
1778 /******************/
1779 /* Function: 0x37 */
1780 [todo
] WERROR spoolss_FindNextPrinterChangeNotification
(
1783 /******************/
1784 /* Function: 0x38 */
1785 [public] WERROR spoolss_FindClosePrinterNotify
(
1786 [in,ref] policy_handle
*handle
1789 /******************/
1790 /* Function: 0x39 */
1791 [todo
] WERROR spoolss_RouterFindFirstPrinterChangeNotificationOld
(
1794 /******************/
1795 /* Function: 0x3a */
1796 [public] WERROR spoolss_ReplyOpenPrinter
(
1797 [in,string,charset
(UTF16
)] uint16 server_name
[],
1798 [in] uint32 printer_local
,
1799 [in] winreg_Type type
,
1800 [in,range(0,512)] uint32 bufsize
,
1801 [in,unique,size_is(bufsize
)] uint8
*buffer
,
1802 [out,ref] policy_handle
*handle
1805 /******************/
1806 /* Function: 0x3b */
1808 typedef [bitmap32bit
] bitmap
{
1809 PRINTER_CHANGE_ADD_PRINTER
= 0x00000001,
1810 PRINTER_CHANGE_SET_PRINTER
= 0x00000002,
1811 PRINTER_CHANGE_DELETE_PRINTER
= 0x00000004,
1812 PRINTER_CHANGE_FAILED_CONNECTION_PRINTER
= 0x00000008,
1813 PRINTER_CHANGE_ADD_JOB
= 0x00000100,
1814 PRINTER_CHANGE_SET_JOB
= 0x00000200,
1815 PRINTER_CHANGE_DELETE_JOB
= 0x00000400,
1816 PRINTER_CHANGE_WRITE_JOB
= 0x00000800,
1817 PRINTER_CHANGE_ADD_FORM
= 0x00010000,
1818 PRINTER_CHANGE_SET_FORM
= 0x00020000,
1819 PRINTER_CHANGE_DELETE_FORM
= 0x00040000,
1820 PRINTER_CHANGE_ADD_PORT
= 0x00100000,
1821 PRINTER_CHANGE_CONFIGURE_PORT
= 0x00200000,
1822 PRINTER_CHANGE_DELETE_PORT
= 0x00400000,
1823 PRINTER_CHANGE_ADD_PRINT_PROCESSOR
= 0x01000000,
1824 PRINTER_CHANGE_DELETE_PRINT_PROCESSOR
= 0x04000000,
1825 PRINTER_CHANGE_SERVER
= 0x08000000,
1826 PRINTER_CHANGE_ADD_PRINTER_DRIVER
= 0x10000000,
1827 PRINTER_CHANGE_SET_PRINTER_DRIVER
= 0x20000000,
1828 PRINTER_CHANGE_DELETE_PRINTER_DRIVER
= 0x40000000,
1829 PRINTER_CHANGE_TIMEOUT
= 0x80000000
1830 } spoolss_PrinterChangeFlags
;
1832 const int PRINTER_CHANGE_PRINTER
= 0x000000FF;
1834 const int PRINTER_CHANGE_JOB
= 0x0000FF00;
1836 const int PRINTER_CHANGE_FORM
= (PRINTER_CHANGE_ADD_FORM |
1837 PRINTER_CHANGE_SET_FORM |
1838 PRINTER_CHANGE_DELETE_FORM
); /* 0x00070000 */
1840 const int PRINTER_CHANGE_PORT
= (PRINTER_CHANGE_ADD_PORT |
1841 PRINTER_CHANGE_CONFIGURE_PORT |
1842 PRINTER_CHANGE_DELETE_PORT
); /* 0x00700000 */
1844 const int PRINTER_CHANGE_PRINT_PROCESSOR
= 0x07000000;
1846 const int PRINTER_CHANGE_PRINTER_DRIVER
= (PRINTER_CHANGE_ADD_PRINTER_DRIVER |
1847 PRINTER_CHANGE_SET_PRINTER_DRIVER |
1848 PRINTER_CHANGE_DELETE_PRINTER_DRIVER
); /* 0x70000000 */
1850 const int PRINTER_CHANGE_ALL
= (PRINTER_CHANGE_PRINTER |
1851 PRINTER_CHANGE_JOB |
1852 PRINTER_CHANGE_FORM |
1853 PRINTER_CHANGE_PORT |
1854 PRINTER_CHANGE_PRINT_PROCESSOR |
1855 PRINTER_CHANGE_PRINTER_DRIVER
); /* 0x7777FFFF */
1856 WERROR spoolss_RouterReplyPrinter
(
1857 [in,ref] policy_handle
*handle,
1858 [in] spoolss_PrinterChangeFlags flags
,
1859 [in,range(0,512)] uint32 bufsize
,
1860 [in,unique,size_is(bufsize
)] uint8
*buffer
1863 /******************/
1864 /* Function: 0x3c */
1865 [public] WERROR spoolss_ReplyClosePrinter
(
1866 [in,out,ref] policy_handle
*handle
1869 /******************/
1870 /* Function: 0x3d */
1871 [todo
] WERROR spoolss_AddPortEx
(
1874 /******************/
1875 /* Function: 0x3e */
1876 [todo
] WERROR spoolss_RouterFindFirstPrinterChangeNotification
(
1879 /******************/
1880 /* Function: 0x3f */
1881 [todo
] WERROR spoolss_SpoolerInit
(
1884 /******************/
1885 /* Function: 0x40 */
1886 [todo
] WERROR spoolss_ResetPrinterEx
(
1889 typedef [enum16bit
,public] enum {
1890 JOB_NOTIFY_FIELD_PRINTER_NAME
= 0x00,
1891 JOB_NOTIFY_FIELD_MACHINE_NAME
= 0x01,
1892 JOB_NOTIFY_FIELD_PORT_NAME
= 0x02,
1893 JOB_NOTIFY_FIELD_USER_NAME
= 0x03,
1894 JOB_NOTIFY_FIELD_NOTIFY_NAME
= 0x04,
1895 JOB_NOTIFY_FIELD_DATATYPE
= 0x05,
1896 JOB_NOTIFY_FIELD_PRINT_PROCESSOR
= 0x06,
1897 JOB_NOTIFY_FIELD_PARAMETERS
= 0x07,
1898 JOB_NOTIFY_FIELD_DRIVER_NAME
= 0x08,
1899 JOB_NOTIFY_FIELD_DEVMODE
= 0x09,
1900 JOB_NOTIFY_FIELD_STATUS
= 0x0a,
1901 JOB_NOTIFY_FIELD_STATUS_STRING
= 0x0b,
1902 JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR
= 0x0c,
1903 JOB_NOTIFY_FIELD_DOCUMENT
= 0x0d,
1904 JOB_NOTIFY_FIELD_PRIORITY
= 0x0e,
1905 JOB_NOTIFY_FIELD_POSITION
= 0x0f,
1906 JOB_NOTIFY_FIELD_SUBMITTED
= 0x10,
1907 JOB_NOTIFY_FIELD_START_TIME
= 0x11,
1908 JOB_NOTIFY_FIELD_UNTIL_TIME
= 0x12,
1909 JOB_NOTIFY_FIELD_TIME
= 0x13,
1910 JOB_NOTIFY_FIELD_TOTAL_PAGES
= 0x14,
1911 JOB_NOTIFY_FIELD_PAGES_PRINTED
= 0x15,
1912 JOB_NOTIFY_FIELD_TOTAL_BYTES
= 0x16,
1913 JOB_NOTIFY_FIELD_BYTES_PRINTED
= 0x17
1914 } spoolss_JobNotifyField
;
1916 typedef [enum16bit
,public] enum {
1917 PRINTER_NOTIFY_FIELD_SERVER_NAME
= 0x00,
1918 PRINTER_NOTIFY_FIELD_PRINTER_NAME
= 0x01,
1919 PRINTER_NOTIFY_FIELD_SHARE_NAME
= 0x02,
1920 PRINTER_NOTIFY_FIELD_PORT_NAME
= 0x03,
1921 PRINTER_NOTIFY_FIELD_DRIVER_NAME
= 0x04,
1922 PRINTER_NOTIFY_FIELD_COMMENT
= 0x05,
1923 PRINTER_NOTIFY_FIELD_LOCATION
= 0x06,
1924 PRINTER_NOTIFY_FIELD_DEVMODE
= 0x07,
1925 PRINTER_NOTIFY_FIELD_SEPFILE
= 0x08,
1926 PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR
= 0x09,
1927 PRINTER_NOTIFY_FIELD_PARAMETERS
= 0x0a,
1928 PRINTER_NOTIFY_FIELD_DATATYPE
= 0x0b,
1929 PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR
= 0x0c,
1930 PRINTER_NOTIFY_FIELD_ATTRIBUTES
= 0x0d,
1931 PRINTER_NOTIFY_FIELD_PRIORITY
= 0x0e,
1932 PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY
= 0x0f,
1933 PRINTER_NOTIFY_FIELD_START_TIME
= 0x10,
1934 PRINTER_NOTIFY_FIELD_UNTIL_TIME
= 0x11,
1935 PRINTER_NOTIFY_FIELD_STATUS
= 0x12,
1936 PRINTER_NOTIFY_FIELD_STATUS_STRING
= 0x13,
1937 PRINTER_NOTIFY_FIELD_CJOBS
= 0x14,
1938 PRINTER_NOTIFY_FIELD_AVERAGE_PPM
= 0x15,
1939 PRINTER_NOTIFY_FIELD_TOTAL_PAGES
= 0x16,
1940 PRINTER_NOTIFY_FIELD_PAGES_PRINTED
= 0x17,
1941 PRINTER_NOTIFY_FIELD_TOTAL_BYTES
= 0x18,
1942 PRINTER_NOTIFY_FIELD_BYTES_PRINTED
= 0x19,
1943 PRINTER_NOTIFY_FIELD_OBJECT_GUID
= 0x1a,
1944 PRINTER_NOTIFY_FIELD_FRIENDLY_NAME
= 0x1b
1945 } spoolss_PrintNotifyField
;
1947 typedef [enum16bit
] enum {
1948 PRINTER_NOTIFY_TYPE
= 0x00,
1949 JOB_NOTIFY_TYPE
= 0x01
1950 } spoolss_NotifyType
;
1952 typedef [nodiscriminant
,noprint
] union {
1953 [case(PRINTER_NOTIFY_TYPE
)] uint16 field
;
1954 [case(JOB_NOTIFY_TYPE
)] uint16 field
;
1955 [default] uint16 field
;
1958 /******************/
1959 /* Function: 0x41 */
1961 spoolss_NotifyType type
;
1966 [size_is(count
),switch_is(type
)] spoolss_Field
*fields
;
1967 } spoolss_NotifyOptionType
;
1969 typedef [bitmap32bit
] bitmap
{
1970 PRINTER_NOTIFY_OPTIONS_REFRESH
= 0x00000001
1971 } spoolssNotifyOptionFlags
;
1974 [value
(2)] uint32
version;
1975 spoolssNotifyOptionFlags flags
;
1977 [size_is(count
)] spoolss_NotifyOptionType
*types
;
1978 } spoolss_NotifyOption
;
1980 [public] WERROR spoolss_RemoteFindFirstPrinterChangeNotifyEx
(
1981 [in,ref] policy_handle
*handle,
1982 [in] spoolss_PrinterChangeFlags flags
,
1983 [in] uint32 options
,
1984 [in,unique] [string,charset
(UTF16
)] uint16
*local_machine
,
1985 [in] uint32 printer_local
,
1986 [in,unique] spoolss_NotifyOption
*notify_options
1989 /******************/
1990 /* Function: 0x42 */
1994 [size_is(size
/2),unique,charset
(UTF16
)] uint16
*string;
1995 } spoolss_NotifyString
;
1997 typedef [v1_enum] enum {
1998 NOTIFY_TABLE_DWORD
= 0x0001,
1999 NOTIFY_TABLE_STRING
= 0x0002,
2000 NOTIFY_TABLE_DEVMODE
= 0x0003,
2001 NOTIFY_TABLE_TIME
= 0x0004,
2002 NOTIFY_TABLE_SECURITYDESCRIPTOR
= 0x0005
2003 } spoolss_NotifyTable
;
2005 typedef [switch_type(uint32
)] union {
2006 [case(1)] uint32 integer
[2];
2007 [case(2)] spoolss_NotifyString
string;
2008 [case(3)] spoolss_DevmodeContainer devmode
;
2009 [case(4)] spoolss_TimeCtr time
;
2010 [case(5)] sec_desc_buf sd
;
2011 } spoolss_NotifyData
;
2014 spoolss_NotifyType type
;
2015 [switch_is(type
)] spoolss_Field field
;
2016 spoolss_NotifyTable variable_type
;
2018 [switch_is(variable_type
)] spoolss_NotifyData data
;
2022 [value
(2)] uint32
version;
2025 [size_is(count
)] spoolss_Notify notifies
[];
2026 } spoolss_NotifyInfo
;
2028 typedef [switch_type(uint32
)] union {
2029 [case(0)] spoolss_NotifyInfo
*info0
;
2030 } spoolss_ReplyPrinterInfo
;
2032 typedef [bitmap32bit
] bitmap
{
2033 PRINTER_NOTIFY_INFO_DISCARDED
= 0x00000001,
2034 PRINTER_NOTIFY_INFO_DISCARDNOTED
= 0x00010000,
2035 PRINTER_NOTIFY_INFO_COLOR_MISMATCH
= 0x00080000
2036 } spoolss_PrinterNotifyFlags
;
2038 WERROR spoolss_RouterReplyPrinterEx
(
2039 [in,ref] policy_handle
*handle,
2041 [in] spoolss_PrinterChangeFlags flags
,
2042 [out,ref] spoolss_PrinterNotifyFlags
*reply_result
,
2043 [in] uint32 reply_type
,
2044 [in,switch_is(reply_type
)] spoolss_ReplyPrinterInfo info
2047 /******************/
2048 /* Function: 0x43 */
2049 [public] WERROR spoolss_RouterRefreshPrinterChangeNotify
(
2050 [in,ref] policy_handle
*handle,
2051 [in] uint32 change_low
,
2052 [in,unique] spoolss_NotifyOption
*options
,
2053 [out,ref] spoolss_NotifyInfo
**info
2056 /******************/
2057 /* Function: 0x44 */
2058 [todo
] WERROR spoolss_44
(
2063 [string,charset
(UTF16
)] uint16
*client
;
2064 [string,charset
(UTF16
)] uint16
*user
;
2066 spoolss_MajorVersion major
;
2067 spoolss_MinorVersion minor
;
2068 spoolss_ProcessorArchitecture processor
;
2069 } spoolss_UserLevel1
;
2073 } spoolss_UserLevel2
;
2079 [string,charset
(UTF16
)] uint16
*client
;
2080 [string,charset
(UTF16
)] uint16
*user
;
2082 spoolss_MajorVersion major
;
2083 spoolss_MinorVersion minor
;
2084 spoolss_ProcessorArchitecture processor
;
2086 } spoolss_UserLevel3
;
2088 typedef [switch_type(uint32
)] union {
2089 [case(1)] spoolss_UserLevel1
*level1
;
2090 [case(2)] spoolss_UserLevel2
*level2
;
2091 [case(3)] spoolss_UserLevel3
*level3
;
2092 } spoolss_UserLevel
;
2096 [switch_is(level
)] spoolss_UserLevel user_info
;
2097 } spoolss_UserLevelCtr
;
2100 SERVER_ACCESS_ADMINISTER
= 0x00000001,
2101 SERVER_ACCESS_ENUMERATE
= 0x00000002,
2102 PRINTER_ACCESS_ADMINISTER
= 0x00000004,
2103 PRINTER_ACCESS_USE
= 0x00000008,
2104 JOB_ACCESS_ADMINISTER
= 0x00000010,
2105 JOB_ACCESS_READ
= 0x00000020
2106 } spoolss_AccessRights
;
2108 /* Access rights for print servers */
2109 const int SERVER_ALL_ACCESS
= SEC_STD_REQUIRED |
2110 SERVER_ACCESS_ADMINISTER |
2111 SERVER_ACCESS_ENUMERATE
;
2113 const int SERVER_READ
= SEC_STD_READ_CONTROL |
2114 SERVER_ACCESS_ENUMERATE
;
2116 const int SERVER_WRITE
= STANDARD_RIGHTS_WRITE_ACCESS |
2117 SERVER_ACCESS_ADMINISTER |
2118 SERVER_ACCESS_ENUMERATE
;
2120 const int SERVER_EXECUTE
= SEC_STD_READ_CONTROL |
2121 SERVER_ACCESS_ENUMERATE
;
2123 /* Access rights for printers */
2124 const int PRINTER_ALL_ACCESS
= SEC_STD_REQUIRED |
2125 PRINTER_ACCESS_ADMINISTER |
2128 const int PRINTER_READ
= SEC_STD_READ_CONTROL |
2131 const int PRINTER_WRITE
= STANDARD_RIGHTS_WRITE_ACCESS |
2134 const int PRINTER_EXECUTE
= SEC_STD_READ_CONTROL |
2137 /* Access rights for jobs */
2138 const int JOB_ALL_ACCESS
= SEC_STD_REQUIRED |
2139 JOB_ACCESS_ADMINISTER
;
2141 const int JOB_READ
= SEC_STD_READ_CONTROL |
2142 JOB_ACCESS_ADMINISTER
;
2144 const int JOB_WRITE
= STANDARD_RIGHTS_WRITE_ACCESS |
2145 JOB_ACCESS_ADMINISTER
;
2147 const int JOB_EXECUTE
= SEC_STD_READ_CONTROL |
2148 JOB_ACCESS_ADMINISTER
;
2150 /* ACE masks for various print permissions */
2151 const int PRINTER_ACE_FULL_CONTROL
= SEC_GENERIC_ALL |
2154 const int PRINTER_ACE_MANAGE_DOCUMENTS
= SEC_GENERIC_ALL |
2155 READ_CONTROL_ACCESS
;
2157 const int PRINTER_ACE_PRINT
= GENERIC_EXECUTE_ACCESS |
2158 READ_CONTROL_ACCESS |
2161 /******************/
2162 /* Function: 0x45 */
2163 [public] WERROR spoolss_OpenPrinterEx
(
2164 [in,unique] [string,charset
(UTF16
)] uint16
*printername
,
2165 [in,unique] [string,charset
(UTF16
)] uint16
*datatype
,
2166 [in] spoolss_DevmodeContainer devmode_ctr
,
2167 [in] spoolss_AccessRights access_mask
,
2169 [in,switch_is(level
)] spoolss_UserLevel userlevel
,
2170 [out,ref] policy_handle
*handle
2173 /******************/
2174 /* Function: 0x46 */
2175 WERROR spoolss_AddPrinterEx
(
2176 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
2177 [in,ref] spoolss_SetPrinterInfoCtr
*info_ctr
,
2178 [in,ref] spoolss_DevmodeContainer
*devmode_ctr
,
2179 [in,ref] sec_desc_buf
*secdesc_ctr
,
2180 [in,ref] spoolss_UserLevelCtr
*userlevel_ctr
,
2181 [out,ref] policy_handle
*handle
2184 /******************/
2185 /* Function: 0x47 */
2186 [todo
] WERROR spoolss_47
(
2189 /******************/
2190 /* Function: 0x48 */
2191 WERROR spoolss_EnumPrinterData
(
2192 [in,ref] policy_handle
*handle,
2193 [in] uint32 enum_index
,
2194 [out,size_is(value_offered
/2),charset
(UTF16
)] uint16 value_name
[],
2195 [in] uint32 value_offered
,
2196 [out,ref] uint32
*value_needed
,
2197 [out,ref] winreg_Type
*type
,
2198 [out,ref,size_is(data_offered
),flag
(LIBNDR_PRINT_ARRAY_HEX
)] uint8
*data
,
2199 [in] uint32 data_offered
,
2200 [out,ref] uint32
*data_needed
2203 /******************/
2204 /* Function: 0x49 */
2205 WERROR spoolss_DeletePrinterData
(
2206 [in,ref] policy_handle
*handle,
2207 [in] [string,charset
(UTF16
)] uint16 value_name
[]
2210 /******************/
2211 /* Function: 0x4a */
2212 [todo
] WERROR spoolss_4a
(
2215 /******************/
2216 /* Function: 0x4b */
2217 [todo
] WERROR spoolss_4b
(
2220 /******************/
2221 /* Function: 0x4c */
2222 [todo
] WERROR spoolss_4c
(
2225 /******************/
2226 /* Function: 0x4d */
2227 WERROR spoolss_SetPrinterDataEx
(
2228 [in,ref] policy_handle
*handle,
2229 [in] [string,charset
(UTF16
)] uint16 key_name
[],
2230 [in] [string,charset
(UTF16
)] uint16 value_name
[],
2231 [in] winreg_Type type
,
2232 [in,ref] [size_is(offered
)] uint8
*data
,
2236 /******************/
2237 /* Function: 0x4e */
2238 WERROR spoolss_GetPrinterDataEx
(
2239 [in,ref] policy_handle
*handle,
2240 [in] [string,charset
(UTF16
)] uint16 key_name
[],
2241 [in] [string,charset
(UTF16
)] uint16 value_name
[],
2242 [out,ref] winreg_Type
*type
,
2243 [out,ref] [size_is(offered
)] uint8
*data
,
2244 [in] uint32 offered
,
2245 [out,ref] uint32
*needed
2248 /******************/
2249 /* Function: 0x4f */
2251 typedef [relative_base
,public,gensize
] struct {
2252 [relative
] nstring
*value_name
;
2253 [value
(2*strlen_m_term
(value_name
))] uint32 value_name_len
;
2255 [relative
,subcontext
(0),subcontext_size
(data_length
),flag
(NDR_REMAINING
)] DATA_BLOB
*data
;
2256 [value
(data
->length
)] uint32 data_length
;
2257 } spoolss_PrinterEnumValues
;
2259 [public,noopnum
,noprint
] WERROR _spoolss_EnumPrinterDataEx
(
2260 [in,ref] policy_handle
*handle,
2261 [in] [string,charset
(UTF16
)] uint16 key_name
[],
2262 [out] DATA_BLOB info
,
2263 [in] uint32 offered
,
2264 [out,ref] uint32
*needed
,
2265 [out,ref] uint32
*count
2267 [public,noopnum
,noprint
] void __spoolss_EnumPrinterDataEx
(
2269 [out] spoolss_PrinterEnumValues info
[count
]
2271 [nopull
,nopush
] WERROR spoolss_EnumPrinterDataEx
(
2272 [in,ref] policy_handle
*handle,
2273 [in] [string,charset
(UTF16
)] uint16 key_name
[],
2274 [in] uint32 offered
,
2275 [out,ref] uint32
*count
,
2276 [out,ref,size_is(,*count
)] spoolss_PrinterEnumValues
**info
,
2277 [out,ref] uint32
*needed
2280 typedef [nodiscriminant
] union {
2283 [default] nstring_array string_array
;
2286 /******************/
2287 /* Function: 0x50 */
2288 [public] WERROR spoolss_EnumPrinterKey
(
2289 [in, ref] policy_handle
*handle,
2290 [in] [string,charset
(UTF16
)] uint16 key_name
[],
2291 [out,ref] uint32
*_ndr_size
,
2292 [out,ref,subcontext
(0),subcontext_size
(*_ndr_size
*2),switch_is(*_ndr_size
)] spoolss_KeyNames
*key_buffer
,
2293 [in] uint32 offered
,
2294 [out,ref] uint32
*needed
2297 /******************/
2298 /* Function: 0x51 */
2299 WERROR spoolss_DeletePrinterDataEx
(
2300 [in,ref] policy_handle
*handle,
2301 [in] [string,charset
(UTF16
)] uint16 key_name
[],
2302 [in] [string,charset
(UTF16
)] uint16 value_name
[]
2305 /******************/
2306 /* Function: 0x52 */
2307 WERROR spoolss_DeletePrinterKey
(
2308 [in,ref] policy_handle
*handle,
2309 [in] [string,charset
(UTF16
)] uint16 key_name
[]
2312 /******************/
2313 /* Function: 0x53 */
2314 [todo
] WERROR spoolss_53
(
2317 /******************/
2318 /* Function: 0x54 */
2319 typedef [public,bitmap32bit
] bitmap
{
2320 DPD_DELETE_UNUSED_FILES
= 0x00000001,
2321 DPD_DELETE_SPECIFIC_VERSION
= 0x00000002,
2322 DPD_DELETE_ALL_FILES
= 0x00000004
2323 } spoolss_DeleteDriverFlags
;
2325 WERROR spoolss_DeletePrinterDriverEx
(
2326 [in,unique] [string,charset
(UTF16
)] uint16
*server
,
2327 [in] [string,charset
(UTF16
)] uint16 architecture
[],
2328 [in] [string,charset
(UTF16
)] uint16 driver
[],
2329 [in] spoolss_DeleteDriverFlags delete_flags
,
2333 /******************/
2334 /* Function: 0x55 */
2335 [todo
] WERROR spoolss_55
(
2338 /******************/
2339 /* Function: 0x56 */
2340 [todo
] WERROR spoolss_56
(
2343 /******************/
2344 /* Function: 0x57 */
2345 [todo
] WERROR spoolss_57
(
2348 /******************/
2349 /* Function: 0x58 */
2351 typedef [v1_enum] enum {
2352 PROTOCOL_RAWTCP_TYPE
= 1,
2353 PROTOCOL_LPR_TYPE
= 2
2354 } spoolss_PortProtocol
;
2356 typedef [public] struct {
2357 [charset
(UTF16
)] uint16 portname
[64];
2358 [value
(0x00000001)] uint32
version;
2359 spoolss_PortProtocol protocol
;
2360 [value
(sizeof
(r
))] uint32 size
;
2362 [charset
(UTF16
)] uint16 hostaddress
[49];
2363 [charset
(UTF16
)] uint16 snmpcommunity
[33];
2365 [charset
(UTF16
)] uint16 queue
[33];
2366 [charset
(UTF16
)] uint16 ip_address
[16]; /* s3 had 17 */
2367 [charset
(UTF16
)] uint16 hardware_address
[13];
2368 [charset
(UTF16
)] uint16 device_type
[257];
2370 boolean32 snmp_enabled
;
2371 uint32 snmp_dev_index
;
2372 } spoolss_PortData1
;
2374 typedef [public] struct {
2375 [charset
(UTF16
)] uint16 portname
[64];
2376 [value
(0x00000002)] uint32
version;
2377 spoolss_PortProtocol protocol
;
2378 [value
(sizeof
(r
))] uint32 size
;
2380 [charset
(UTF16
)] uint16 hostaddress
[128];
2381 [charset
(UTF16
)] uint16 snmpcommunity
[33];
2383 [charset
(UTF16
)] uint16 queue
[33];
2384 [charset
(UTF16
)] uint16 device_type
[257];
2386 boolean32 snmp_enabled
;
2387 uint32 snmp_dev_index
;
2388 uint32 port_monitor_mib_index
;
2389 } spoolss_PortData2
;
2391 typedef [public] struct {
2393 } spoolss_MonitorUi
;
2395 WERROR spoolss_XcvData
(
2396 [in,ref] policy_handle
*handle,
2397 [in] [string,charset
(UTF16
)] uint16 function_name
[],
2398 [in] DATA_BLOB in_data
,
2399 [in,value
(r
->in.in_data.length
)] uint32 _in_data_length
,
2400 [out,ref] [size_is(out_data_size
)] uint8
*out_data
,
2401 [in] uint32 out_data_size
,
2402 [out,ref] uint32
*needed
,
2403 [in,out,ref] uint32
*status_code
2406 /******************/
2407 /* Function: 0x59 */
2409 typedef [bitmap32bit
] bitmap
{
2410 APD_STRICT_UPGRADE
= 0x00000001,
2411 APD_STRICT_DOWNGRADE
= 0x00000002,
2412 APD_COPY_ALL_FILES
= 0x00000004,
2413 APD_COPY_NEW_FILES
= 0x00000008,
2414 APD_COPY_FROM_DIRECTORY
= 0x00000010,
2415 APD_DONT_COPY_FILES_TO_CLUSTER
= 0x00001000,
2416 APD_COPY_TO_ALL_SPOOLERS
= 0x00002000,
2417 APD_RETURN_BLOCKING_STATUS_CODE
= 0x00010000
2418 } spoolss_AddPrinterDriverExFlags
;
2420 [public] WERROR spoolss_AddPrinterDriverEx
(
2421 [in,unique] [string,charset
(UTF16
)] uint16
*servername
,
2422 [in,ref] spoolss_AddDriverInfoCtr
*info_ctr
,
2423 [in] spoolss_AddPrinterDriverExFlags flags
2426 /******************/
2427 /* Function: 0x5a */
2428 [todo
] WERROR spoolss_5a
(
2431 /******************/
2432 /* Function: 0x5b */
2433 [todo
] WERROR spoolss_5b
(
2436 /******************/
2437 /* Function: 0x5c */
2438 [todo
] WERROR spoolss_5c
(
2441 /******************/
2442 /* Function: 0x5d */
2443 [todo
] WERROR spoolss_5d
(
2446 /******************/
2447 /* Function: 0x5e */
2448 [todo
] WERROR spoolss_5e
(
2451 /******************/
2452 /* Function: 0x5f */
2453 [todo
] WERROR spoolss_5f
(