4 spoolss interface definitions
6 import "misc.idl", "security.idl", "winreg.idl";
8 [ uuid("12345678-1234-abcd-ef00-0123456789ab"),
10 endpoint("ncacn_np:[\\pipe\\spoolss]"),
11 pointer_default(unique),
12 helpstring("Spooler SubSystem"),
13 helper("../librpc/ndr/ndr_spoolss_buf.h")
16 typedef [v1_enum] enum winreg_Type winreg_Type;
17 typedef [gensize] struct {
29 [value(ndr_size_spoolss_Time(time, ndr->iconv_convenience, ndr->flags))] uint32 size;
30 [unique] spoolss_Time *time;
34 PROCESSOR_ARCHITECTURE_INTEL = 0x0000,
35 PROCESSOR_ARCHITECTURE_IA64 = 0x0006,
36 PROCESSOR_ARCHITECTURE_AMD64 = 0x0009
37 } spoolss_ProcessorArchitecture;
39 typedef [v1_enum] enum {
40 PROCESSOR_INTEL_386 = 0x00000182,
41 PROCESSOR_INTEL_486 = 0x000001E6,
42 PROCESSOR_INTEL_PENTIUM = 0x0000024A,
43 PROCESSOR_INTEL_IA64 = 0x00000898,
44 PROCESSOR_AMD_X8664 = 0x000022A0
45 } spoolss_ProcessorType;
47 typedef [v1_enum] enum {
48 /* Windows 95, Windows 98, Windows Me, Windows NT4 */
49 SPOOLSS_MAJOR_VERSION_NT4_95_98_ME = 0x00000004,
50 /* Windows 2000, Windows 2003, Windows XP */
51 SPOOLSS_MAJOR_VERSION_2000_2003_XP = 0x00000005,
52 /* Windows Vista, Windows 2008 */
53 SPOOLSS_MAJOR_VERSION_2008_VISTA = 0x00000006
54 } spoolss_MajorVersion;
56 typedef [v1_enum] enum {
57 /* Windows 2008, Windows Vista, Windows 2000, Windows NT4, Windows 95 */
58 SPOOLSS_MINOR_VERSION_0 = 0x00000000,
60 SPOOLSS_MINOR_VERSION_XP = 0x00000001,
61 /* Windows 2003, Windows XP x64 */
62 SPOOLSS_MINOR_VERSION_2003_XP64 = 0x00000002,
64 SPOOLSS_MINOR_VERSION_98 = 0x0000000a,
66 SPOOLSS_MINOR_VERSION_ME = 0x0000005a
67 } spoolss_MinorVersion;
70 [relative] nstring *printername;
71 [relative] nstring *servername;
76 uint32 global_counter;
82 uint32 session_counter;
83 uint32 num_error_out_of_paper;
84 uint32 num_error_not_ready;
86 uint32 number_of_processors;
87 spoolss_ProcessorType processor_type;
88 uint32 high_part_total_bytes;
92 uint32 enumerate_network_printers;
94 spoolss_ProcessorArchitecture processor_architecture;
95 uint16 processor_level;
99 } spoolss_PrinterInfo0;
101 typedef [bitmap32bit] bitmap {
102 DEVMODE_ORIENTATION = 0x00000001,
103 DEVMODE_PAPERSIZE = 0x00000002,
104 DEVMODE_PAPERLENGTH = 0x00000004,
105 DEVMODE_PAPERWIDTH = 0x00000008,
106 DEVMODE_SCALE = 0x00000010,
107 DEVMODE_POSITION = 0x00000020,
108 DEVMODE_NUP = 0x00000040,
109 DEVMODE_COPIES = 0x00000100,
110 DEVMODE_DEFAULTSOURCE = 0x00000200,
111 DEVMODE_PRINTQUALITY = 0x00000400,
112 DEVMODE_COLOR = 0x00000800,
113 DEVMODE_DUPLEX = 0x00001000,
114 DEVMODE_YRESOLUTION = 0x00002000,
115 DEVMODE_TTOPTION = 0x00004000,
116 DEVMODE_COLLATE = 0x00008000,
117 DEVMODE_FORMNAME = 0x00010000,
118 DEVMODE_LOGPIXELS = 0x00020000,
119 DEVMODE_BITSPERPEL = 0x00040000,
120 DEVMODE_PELSWIDTH = 0x00080000,
121 DEVMODE_PELSHEIGHT = 0x00100000,
122 DEVMODE_DISPLAYFLAGS = 0x00200000,
123 DEVMODE_DISPLAYFREQUENCY = 0x00400000,
124 DEVMODE_ICMMETHOD = 0x00800000,
125 DEVMODE_ICMINTENT = 0x01000000,
126 DEVMODE_MEDIATYPE = 0x02000000,
127 DEVMODE_DITHERTYPE = 0x04000000,
128 DEVMODE_PANNINGWIDTH = 0x08000000,
129 DEVMODE_PANNINGHEIGHT = 0x10000000
130 } spoolss_DeviceModeFields;
132 typedef [public,gensize] struct {
133 [charset(UTF16)] uint16 devicename[32];
135 uint16 driverversion;
137 [value(r->driverextra_data.length)] uint16 __driverextra_length;
138 spoolss_DeviceModeFields fields;
145 uint16 defaultsource;
152 [charset(UTF16)] uint16 formname[32];
158 uint32 displayfrequency;
166 uint32 panningheight;
167 [subcontext_size(__driverextra_length),subcontext(0),flag(NDR_REMAINING)] DATA_BLOB driverextra_data;
168 } spoolss_DeviceMode;
170 typedef [public] bitmap {
171 PRINTER_ENUM_DEFAULT = 0x00000001,
172 PRINTER_ENUM_LOCAL = 0x00000002,
173 PRINTER_ENUM_CONNECTIONS = 0x00000004,
174 PRINTER_ENUM_FAVORITE = 0x00000004,
175 PRINTER_ENUM_NAME = 0x00000008,
176 PRINTER_ENUM_REMOTE = 0x00000010,
177 PRINTER_ENUM_SHARED = 0x00000020,
178 PRINTER_ENUM_NETWORK = 0x00000040,
179 PRINTER_ENUM_EXPAND = 0x00004000,
180 PRINTER_ENUM_CONTAINER = 0x00008000,
181 PRINTER_ENUM_ICON1 = 0x00010000,
182 PRINTER_ENUM_ICON2 = 0x00020000,
183 PRINTER_ENUM_ICON3 = 0x00040000,
184 PRINTER_ENUM_ICON4 = 0x00080000,
185 PRINTER_ENUM_ICON5 = 0x00100000,
186 PRINTER_ENUM_ICON6 = 0x00200000,
187 PRINTER_ENUM_ICON7 = 0x00400000,
188 PRINTER_ENUM_ICON8 = 0x00800000,
189 PRINTER_ENUM_HIDE = 0x01000000
190 } spoolss_EnumPrinterFlags;
192 const int PRINTER_ENUM_ICONMASK = (PRINTER_ENUM_ICON1 |
199 PRINTER_ENUM_ICON8); /* 0x00ff0000 */
202 spoolss_EnumPrinterFlags flags;
203 [relative] nstring *name;
204 [relative] nstring *description;
205 [relative] nstring *comment;
206 } spoolss_PrinterInfo1;
209 PRINTER_ATTRIBUTE_QUEUED = 0x00000001,
210 PRINTER_ATTRIBUTE_DIRECT = 0x00000002,
211 PRINTER_ATTRIBUTE_DEFAULT = 0x00000004,
212 PRINTER_ATTRIBUTE_SHARED = 0x00000008,
213 PRINTER_ATTRIBUTE_NETWORK = 0x00000010,
214 PRINTER_ATTRIBUTE_HIDDEN = 0x00000020,
215 PRINTER_ATTRIBUTE_LOCAL = 0x00000040,
216 PRINTER_ATTRIBUTE_ENABLE_DEVQ = 0x00000080,
217 PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS = 0x00000100,
218 PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST = 0x00000200,
219 PRINTER_ATTRIBUTE_WORK_OFFLINE = 0x00000400,
220 PRINTER_ATTRIBUTE_ENABLE_BIDI = 0x00000800,
221 PRINTER_ATTRIBUTE_RAW_ONLY = 0x00001000,
222 PRINTER_ATTRIBUTE_PUBLISHED = 0x00002000,
223 PRINTER_ATTRIBUTE_FAX = 0x00004000,
224 PRINTER_ATTRIBUTE_TS = 0x00008000
225 } spoolss_PrinterAttributes;
228 PRINTER_STATUS_PAUSED = 0x00000001,
229 PRINTER_STATUS_ERROR = 0x00000002,
230 PRINTER_STATUS_PENDING_DELETION = 0x00000004,
231 PRINTER_STATUS_PAPER_JAM = 0x00000008,
232 PRINTER_STATUS_PAPER_OUT = 0x00000010,
233 PRINTER_STATUS_MANUAL_FEED = 0x00000020,
234 PRINTER_STATUS_PAPER_PROBLEM = 0x00000040,
235 PRINTER_STATUS_OFFLINE = 0x00000080,
236 PRINTER_STATUS_IO_ACTIVE = 0x00000100,
237 PRINTER_STATUS_BUSY = 0x00000200,
238 PRINTER_STATUS_PRINTING = 0x00000400,
239 PRINTER_STATUS_OUTPUT_BIN_FULL = 0x00000800,
240 PRINTER_STATUS_NOT_AVAILABLE = 0x00001000,
241 PRINTER_STATUS_WAITING = 0x00002000,
242 PRINTER_STATUS_PROCESSING = 0x00004000,
243 PRINTER_STATUS_INITIALIZING = 0x00008000,
244 PRINTER_STATUS_WARMING_UP = 0x00010000,
245 PRINTER_STATUS_TONER_LOW = 0x00020000,
246 PRINTER_STATUS_NO_TONER = 0x00040000,
247 PRINTER_STATUS_PAGE_PUNT = 0x00080000,
248 PRINTER_STATUS_USER_INTERVENTION= 0x00100000,
249 PRINTER_STATUS_OUT_OF_MEMORY = 0x00200000,
250 PRINTER_STATUS_DOOR_OPEN = 0x00400000,
251 PRINTER_STATUS_SERVER_UNKNOWN = 0x00800000,
252 PRINTER_STATUS_POWER_SAVE = 0x01000000
253 } spoolss_PrinterStatus;
256 [relative] nstring *servername;
257 [relative] nstring *printername;
258 [relative] nstring *sharename;
259 [relative] nstring *portname;
260 [relative] nstring *drivername;
261 [relative] nstring *comment;
262 [relative] nstring *location;
263 [relative,subcontext(0)] spoolss_DeviceMode *devmode;
264 [relative] nstring *sepfile;
265 [relative] nstring *printprocessor;
266 [relative] nstring *datatype;
267 [relative] nstring *parameters;
268 [relative,subcontext(0)] security_descriptor *secdesc;
269 spoolss_PrinterAttributes attributes;
271 uint32 defaultpriority;
274 spoolss_PrinterStatus status;
277 } spoolss_PrinterInfo2;
280 [relative,subcontext(0)] security_descriptor *secdesc;
281 } spoolss_PrinterInfo3;
284 [relative] nstring *printername;
285 [relative] nstring *servername;
286 spoolss_PrinterAttributes attributes;
287 } spoolss_PrinterInfo4;
290 [relative] nstring *printername;
291 [relative] nstring *portname;
292 spoolss_PrinterAttributes attributes;
293 uint32 device_not_selected_timeout;
294 uint32 transmission_retry_timeout;
295 } spoolss_PrinterInfo5;
298 spoolss_PrinterStatus status;
299 } spoolss_PrinterInfo6;
302 DSPRINT_PUBLISH = 0x00000001,
303 DSPRINT_UPDATE = 0x00000002,
304 DSPRINT_UNPUBLISH = 0x00000004,
305 DSPRINT_REPUBLISH = 0x00000008,
306 DSPRINT_PENDING = 0x80000000
307 } spoolss_DsPrintAction;
310 [relative] nstring *guid; /* text form of printer guid */
311 spoolss_DsPrintAction action;
312 } spoolss_PrinterInfo7;
315 [relative,subcontext(0)] spoolss_DeviceMode *devmode;
316 } spoolss_DeviceModeInfo;
318 typedef [nodiscriminant,relative_base,public] union {
319 [case(0)] spoolss_PrinterInfo0 info0;
320 [case(1)] spoolss_PrinterInfo1 info1;
321 [case(2)] spoolss_PrinterInfo2 info2;
322 [case(3)] spoolss_PrinterInfo3 info3;
323 [case(4)] spoolss_PrinterInfo4 info4;
324 [case(5)] spoolss_PrinterInfo5 info5;
325 [case(6)] spoolss_PrinterInfo6 info6;
326 [case(7)] spoolss_PrinterInfo7 info7;
327 [case(8)] spoolss_DeviceModeInfo info8;
328 [case(9)] spoolss_DeviceModeInfo info9;
330 } spoolss_PrinterInfo;
334 /* we are using this as internal parsing code */
335 [public,noopnum,noprint] WERROR _spoolss_EnumPrinters(
336 [in] spoolss_EnumPrinterFlags flags,
337 [in,unique] [string,charset(UTF16)] uint16 *server,
339 [in,unique] DATA_BLOB *buffer,
341 [out,unique] DATA_BLOB *info,
342 [out,ref] uint32 *needed,
343 [out,ref] uint32 *count
345 [public,noopnum,noprint] void __spoolss_EnumPrinters(
348 [out,switch_is(level)] spoolss_PrinterInfo info[count]
350 [nopull,nopush] WERROR spoolss_EnumPrinters(
351 [in] spoolss_EnumPrinterFlags flags,
352 [in,unique] [string,charset(UTF16)] uint16 *server,
354 [in,unique] DATA_BLOB *buffer,
356 /* what we have here is a subcontext containing an array of no discriminant unions
357 * and the array has no size in front
359 [out,ref] uint32 *count,
360 [out,unique,switch_is(level),size_is(*count)] spoolss_PrinterInfo *info,
361 [out,ref] uint32 *needed
367 [value(_ndr_size_spoolss_DeviceMode(devmode, ndr->iconv_convenience, ndr->flags))] uint32 _ndr_size;
368 [subcontext(4),subcontext_size(_ndr_size)] spoolss_DeviceMode *devmode;
369 } spoolss_DevmodeContainer;
371 [public] WERROR spoolss_OpenPrinter(
372 [in,unique] [string,charset(UTF16)] uint16 *printername,
373 [in,unique] [string,charset(UTF16)] uint16 *datatype,
374 [in] spoolss_DevmodeContainer devmode_ctr,
375 [in] spoolss_AccessRights access_mask,
376 [out,ref] policy_handle *handle
383 [relative] nstring *printer_name;
384 [relative] nstring *server_name;
385 [relative] nstring *user_name;
386 [relative] nstring *document_name;
387 [relative] nstring *data_type;
388 [relative] nstring *text_status;
393 uint32 pages_printed;
397 typedef [nodiscriminant,relative_base,public] union {
398 [case(1)] spoolss_JobInfo1 info1;
399 [case(2)]; /* TODO */
400 [case(3)]; /* TODO */
406 [switch_is(level)] spoolss_JobInfo info;
407 } spoolss_JobInfoContainer;
409 typedef [v1_enum] enum {
410 SPOOLSS_JOB_CONTROL_PAUSE = 1,
411 SPOOLSS_JOB_CONTROL_RESUME = 2,
412 SPOOLSS_JOB_CONTROL_CANCEL = 3,
413 SPOOLSS_JOB_CONTROL_RESTART = 4,
414 SPOOLSS_JOB_CONTROL_DELETE = 5,
415 SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER = 6,
416 SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED = 7
417 } spoolss_JobControl;
419 WERROR spoolss_SetJob(
420 [in,ref] policy_handle *handle,
422 [in,unique] spoolss_JobInfoContainer *ctr,
423 [in] spoolss_JobControl command
428 WERROR spoolss_GetJob(
429 [in,ref] policy_handle *handle,
432 [in,unique] DATA_BLOB *buffer,
434 [out,unique,subcontext(4),subcontext_size(offered),switch_is(level)] spoolss_JobInfo *info,
435 [out,ref] uint32 *needed
440 [public,noopnum,noprint] WERROR _spoolss_EnumJobs(
441 [in,ref] policy_handle *handle,
442 [in] uint32 firstjob,
445 [in,unique] DATA_BLOB *buffer,
447 [out,unique] DATA_BLOB *info,
448 [out,ref] uint32 *needed,
449 [out,ref] uint32 *count
451 [public,noopnum,noprint] void __spoolss_EnumJobs(
454 [out,switch_is(level)] spoolss_JobInfo info[count]
456 [nopull,nopush] WERROR spoolss_EnumJobs(
457 [in,ref] policy_handle *handle,
458 [in] uint32 firstjob,
461 [in,unique] DATA_BLOB *buffer,
463 [out,ref] uint32 *count,
464 [out,unique,switch_is(level),size_is(*count)] spoolss_JobInfo *info,
465 [out,ref] uint32 *needed
470 [todo] WERROR spoolss_AddPrinter(
471 /* This function is not implemented in Samba 3 as no
472 clients have been observed using it. */
477 WERROR spoolss_DeletePrinter(
478 [in] policy_handle *handle
483 typedef [v1_enum] enum {
484 SPOOLSS_PRINTER_CONTROL_UNPAUSE = 0,
485 SPOOLSS_PRINTER_CONTROL_PAUSE = 1,
486 SPOOLSS_PRINTER_CONTROL_RESUME = 2,
487 SPOOLSS_PRINTER_CONTROL_PURGE = 3,
488 SPOOLSS_PRINTER_CONTROL_SET_STATUS = 4
489 } spoolss_PrinterControl;
492 [string,charset(UTF16)] uint16 *servername;
493 [string,charset(UTF16)] uint16 *printername;
498 uint32 global_counter;
504 uint32 session_counter;
505 uint32 num_error_out_of_paper;
506 uint32 num_error_not_ready;
508 uint32 number_of_processors;
509 spoolss_ProcessorType processor_type;
510 uint32 high_part_total_bytes;
514 uint32 enumerate_network_printers;
516 spoolss_ProcessorArchitecture processor_architecture;
517 uint16 processor_level;
521 } spoolss_SetPrinterInfo0;
524 spoolss_EnumPrinterFlags flags;
525 [string,charset(UTF16)] uint16 *name;
526 [string,charset(UTF16)] uint16 *description;
527 [string,charset(UTF16)] uint16 *comment;
528 } spoolss_SetPrinterInfo1;
531 [string,charset(UTF16)] uint16 *servername;
532 [string,charset(UTF16)] uint16 *printername;
533 [string,charset(UTF16)] uint16 *sharename;
534 [string,charset(UTF16)] uint16 *portname;
535 [string,charset(UTF16)] uint16 *drivername;
536 [string,charset(UTF16)] uint16 *comment;
537 [string,charset(UTF16)] uint16 *location;
538 [subcontext(0)] spoolss_DeviceMode *devmode;
539 [string,charset(UTF16)] uint16 *sepfile;
540 [string,charset(UTF16)] uint16 *printprocessor;
541 [string,charset(UTF16)] uint16 *datatype;
542 [string,charset(UTF16)] uint16 *parameters;
543 [subcontext(0)] security_descriptor *secdesc;
544 spoolss_PrinterAttributes attributes;
546 uint32 defaultpriority;
549 spoolss_PrinterStatus status;
552 } spoolss_SetPrinterInfo2;
555 security_descriptor *secdesc;
556 } spoolss_SetPrinterInfo3;
559 [string,charset(UTF16)] uint16 *printername;
560 [string,charset(UTF16)] uint16 *servername;
561 spoolss_PrinterAttributes attributes;
562 } spoolss_SetPrinterInfo4;
565 [string,charset(UTF16)] uint16 *printername;
566 [string,charset(UTF16)] uint16 *portname;
567 spoolss_PrinterAttributes attributes;
568 uint32 device_not_selected_timeout;
569 uint32 transmission_retry_timeout;
570 } spoolss_SetPrinterInfo5;
573 spoolss_PrinterStatus status;
574 } spoolss_SetPrinterInfo6;
577 [string,charset(UTF16)] uint16 *guid; /* text form of printer guid */
578 spoolss_DsPrintAction action;
579 } spoolss_SetPrinterInfo7;
581 typedef [switch_type(uint32)] union {
582 [case(0)] spoolss_SetPrinterInfo0 *info0;
583 [case(1)] spoolss_SetPrinterInfo1 *info1;
584 [case(2)] spoolss_SetPrinterInfo2 *info2;
585 [case(3)] spoolss_SetPrinterInfo3 *info3;
586 [case(4)] spoolss_SetPrinterInfo4 *info4;
587 [case(5)] spoolss_SetPrinterInfo5 *info5;
588 [case(6)] spoolss_SetPrinterInfo6 *info6;
589 [case(7)] spoolss_SetPrinterInfo7 *info7;
590 [case(8)] spoolss_DeviceModeInfo *info8;
591 [case(9)] spoolss_DeviceModeInfo *info9;
593 } spoolss_SetPrinterInfo;
597 [switch_is(level)] spoolss_SetPrinterInfo info;
598 } spoolss_SetPrinterInfoCtr;
600 WERROR spoolss_SetPrinter(
601 [in,ref] policy_handle *handle,
602 [in,ref] spoolss_SetPrinterInfoCtr *info_ctr,
603 [in,ref] spoolss_DevmodeContainer *devmode_ctr,
604 [in,ref] sec_desc_buf *secdesc_ctr,
605 [in] spoolss_PrinterControl command
610 [public] WERROR spoolss_GetPrinter(
611 [in,ref] policy_handle *handle,
613 [in,unique] DATA_BLOB *buffer,
615 [out,unique,subcontext(4),subcontext_size(offered),switch_is(level)] spoolss_PrinterInfo *info,
616 [out,ref] uint32 *needed
622 typedef [public] struct {
623 [value((ndr_size_spoolss_StringArray(r, ndr->iconv_convenience, ndr->flags)-4)/2)] uint32 _ndr_size;
624 /*[subcontext(0),subcontext_size(_ndr_size*2)]*/ nstring_array string;
625 } spoolss_StringArray;
628 [string,charset(UTF16)] uint16 *driver_name;
629 } spoolss_AddDriverInfo1;
631 typedef [v1_enum] enum {
632 SPOOLSS_DRIVER_VERSION_9X = 0,
633 SPOOLSS_DRIVER_VERSION_NT35 = 1,
634 SPOOLSS_DRIVER_VERSION_NT4 = 2,
635 SPOOLSS_DRIVER_VERSION_200X = 3
636 } spoolss_DriverOSVersion;
639 spoolss_DriverOSVersion version;
640 [string,charset(UTF16)] uint16 *driver_name;
641 [string,charset(UTF16)] uint16 *architecture;
642 [string,charset(UTF16)] uint16 *driver_path;
643 [string,charset(UTF16)] uint16 *data_file;
644 [string,charset(UTF16)] uint16 *config_file;
645 } spoolss_AddDriverInfo2;
648 spoolss_DriverOSVersion version;
649 [string,charset(UTF16)] uint16 *driver_name;
650 [string,charset(UTF16)] uint16 *architecture;
651 [string,charset(UTF16)] uint16 *driver_path;
652 [string,charset(UTF16)] uint16 *data_file;
653 [string,charset(UTF16)] uint16 *config_file;
654 [string,charset(UTF16)] uint16 *help_file;
655 [string,charset(UTF16)] uint16 *monitor_name;
656 [string,charset(UTF16)] uint16 *default_datatype;
657 [value(((ndr_size_spoolss_StringArray(dependent_files, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_dependent_files;
658 spoolss_StringArray *dependent_files;
659 } spoolss_AddDriverInfo3;
662 spoolss_DriverOSVersion version;
663 [string,charset(UTF16)] uint16 *driver_name;
664 [string,charset(UTF16)] uint16 *architecture;
665 [string,charset(UTF16)] uint16 *driver_path;
666 [string,charset(UTF16)] uint16 *data_file;
667 [string,charset(UTF16)] uint16 *config_file;
668 [string,charset(UTF16)] uint16 *help_file;
669 [string,charset(UTF16)] uint16 *monitor_name;
670 [string,charset(UTF16)] uint16 *default_datatype;
671 [value(((ndr_size_spoolss_StringArray(dependent_files, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_dependent_files;
672 spoolss_StringArray *dependent_files;
673 [value(((ndr_size_spoolss_StringArray(previous_names, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_previous_names;
674 spoolss_StringArray *previous_names;
675 } spoolss_AddDriverInfo4;
678 spoolss_DriverOSVersion version;
679 [string,charset(UTF16)] uint16 *driver_name;
680 [string,charset(UTF16)] uint16 *architecture;
681 [string,charset(UTF16)] uint16 *driver_path;
682 [string,charset(UTF16)] uint16 *data_file;
683 [string,charset(UTF16)] uint16 *config_file;
684 uint32 driver_attributes;
685 uint32 config_version;
686 uint32 driver_version;
687 } spoolss_AddDriverInfo5;
690 spoolss_DriverOSVersion version;
691 [string,charset(UTF16)] uint16 *driver_name;
692 [string,charset(UTF16)] uint16 *architecture;
693 [string,charset(UTF16)] uint16 *driver_path;
694 [string,charset(UTF16)] uint16 *data_file;
695 [string,charset(UTF16)] uint16 *config_file;
696 [string,charset(UTF16)] uint16 *help_file;
697 [string,charset(UTF16)] uint16 *monitor_name;
698 [string,charset(UTF16)] uint16 *default_datatype;
699 [value(((ndr_size_spoolss_StringArray(dependent_files, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_dependent_files;
700 spoolss_StringArray *dependent_files;
701 [value(((ndr_size_spoolss_StringArray(previous_names, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_previous_names;
702 spoolss_StringArray *previous_names;
704 hyper driver_version;
705 [string,charset(UTF16)] uint16 *manufacturer_name;
706 [string,charset(UTF16)] uint16 *manufacturer_url;
707 [string,charset(UTF16)] uint16 *hardware_id;
708 [string,charset(UTF16)] uint16 *provider;
709 } spoolss_AddDriverInfo6;
712 spoolss_DriverOSVersion version;
713 [string,charset(UTF16)] uint16 *driver_name;
714 [string,charset(UTF16)] uint16 *architecture;
715 [string,charset(UTF16)] uint16 *driver_path;
716 [string,charset(UTF16)] uint16 *data_file;
717 [string,charset(UTF16)] uint16 *config_file;
718 [string,charset(UTF16)] uint16 *help_file;
719 [string,charset(UTF16)] uint16 *monitor_name;
720 [string,charset(UTF16)] uint16 *default_datatype;
721 [value(((ndr_size_spoolss_StringArray(dependent_files, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_dependent_files;
722 spoolss_StringArray *dependent_files;
723 [value(((ndr_size_spoolss_StringArray(previous_names, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_previous_names;
724 spoolss_StringArray *previous_names;
726 hyper driver_version;
727 [string,charset(UTF16)] uint16 *manufacturer_name;
728 [string,charset(UTF16)] uint16 *manufacturer_url;
729 [string,charset(UTF16)] uint16 *hardware_id;
730 [string,charset(UTF16)] uint16 *provider;
731 [string,charset(UTF16)] uint16 *print_processor;
732 [string,charset(UTF16)] uint16 *vendor_setup;
733 [value(((ndr_size_spoolss_StringArray(color_profiles, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_color_profiles;
734 spoolss_StringArray *color_profiles;
735 [string,charset(UTF16)] uint16 *inf_path;
736 uint32 printer_driver_attributes;
737 [value(((ndr_size_spoolss_StringArray(core_driver_dependencies, ndr->iconv_convenience, ndr->flags)-4)/2))] uint32 _ndr_size_core_driver_dependencies;
738 spoolss_StringArray *core_driver_dependencies;
739 NTTIME min_inbox_driver_ver_date;
740 hyper min_inbox_driver_ver_version;
741 } spoolss_AddDriverInfo8;
743 typedef [switch_type(uint32)] union {
744 [case(1)] spoolss_AddDriverInfo1 *info1;
745 [case(2)] spoolss_AddDriverInfo2 *info2;
746 [case(3)] spoolss_AddDriverInfo3 *info3;
747 [case(4)] spoolss_AddDriverInfo4 *info4;
748 [case(6)] spoolss_AddDriverInfo6 *info6;
749 [case(8)] spoolss_AddDriverInfo8 *info8;
750 } spoolss_AddDriverInfo;
754 [switch_is(level)] spoolss_AddDriverInfo info;
755 } spoolss_AddDriverInfoCtr;
757 WERROR spoolss_AddPrinterDriver(
758 [in,unique] [string,charset(UTF16)] uint16 *servername,
759 [in,ref] spoolss_AddDriverInfoCtr *info_ctr
762 typedef [public,gensize] struct {
763 [relative] nstring *driver_name;
764 } spoolss_DriverInfo1;
766 typedef [public,gensize] struct {
767 spoolss_DriverOSVersion version;
768 [relative] nstring *driver_name;
769 [relative] nstring *architecture;
770 [relative] nstring *driver_path;
771 [relative] nstring *data_file;
772 [relative] nstring *config_file;
773 } spoolss_DriverInfo2;
775 typedef [public,gensize] struct {
776 spoolss_DriverOSVersion version;
777 [relative] nstring *driver_name;
778 [relative] nstring *architecture;
779 [relative] nstring *driver_path;
780 [relative] nstring *data_file;
781 [relative] nstring *config_file;
782 [relative] nstring *help_file;
783 [relative] nstring_array *dependent_files;
784 [relative] nstring *monitor_name;
785 [relative] nstring *default_datatype;
786 } spoolss_DriverInfo3;
788 typedef [public,gensize] struct {
789 spoolss_DriverOSVersion version;
790 [relative] nstring *driver_name;
791 [relative] nstring *architecture;
792 [relative] nstring *driver_path;
793 [relative] nstring *data_file;
794 [relative] nstring *config_file;
795 [relative] nstring *help_file;
796 [relative] nstring_array *dependent_files;
797 [relative] nstring *monitor_name;
798 [relative] nstring *default_datatype;
799 [relative] nstring_array *previous_names;
800 } spoolss_DriverInfo4;
802 typedef [public,gensize] struct {
803 spoolss_DriverOSVersion version;
804 [relative] nstring *driver_name;
805 [relative] nstring *architecture;
806 [relative] nstring *driver_path;
807 [relative] nstring *data_file;
808 [relative] nstring *config_file;
809 uint32 driver_attributes;
810 uint32 config_version;
811 uint32 driver_version;
812 } spoolss_DriverInfo5;
814 typedef [public,gensize] struct {
815 spoolss_DriverOSVersion version;
816 [relative] nstring *driver_name;
817 [relative] nstring *architecture;
818 [relative] nstring *driver_path;
819 [relative] nstring *data_file;
820 [relative] nstring *config_file;
821 [relative] nstring *help_file;
822 [relative] nstring_array *dependent_files;
823 [relative] nstring *monitor_name;
824 [relative] nstring *default_datatype;
825 [relative] nstring_array *previous_names;
827 hyper driver_version;
828 [relative] nstring *manufacturer_name;
829 [relative] nstring *manufacturer_url;
830 [relative] nstring *hardware_id;
831 [relative] nstring *provider;
832 } spoolss_DriverInfo6;
834 typedef [public,gensize] struct {
835 spoolss_DriverOSVersion version;
836 [relative] nstring *driver_name;
837 [relative] nstring *architecture;
838 [relative] nstring *driver_path;
839 [relative] nstring *data_file;
840 [relative] nstring *config_file;
841 [relative] nstring *help_file;
842 [relative] nstring *monitor_name;
843 [relative] nstring *default_datatype;
844 [relative] nstring_array *dependent_files;
845 [relative] nstring_array *previous_names;
847 hyper driver_version;
848 [relative] nstring *manufacturer_name;
849 [relative] nstring *manufacturer_url;
850 [relative] nstring *hardware_id;
851 [relative] nstring *provider;
852 [relative] nstring *print_processor;
853 [relative] nstring *vendor_setup;
854 [relative] nstring_array *color_profiles;
855 [relative] nstring *inf_path;
856 uint32 printer_driver_attributes;
857 [relative] nstring_array *core_driver_dependencies;
858 NTTIME min_inbox_driver_ver_date;
859 hyper min_inbox_driver_ver_version;
860 } spoolss_DriverInfo8;
862 typedef [nodiscriminant,relative_base,public] union {
863 [case(1)] spoolss_DriverInfo1 info1;
864 [case(2)] spoolss_DriverInfo2 info2;
865 [case(3)] spoolss_DriverInfo3 info3;
866 [case(4)] spoolss_DriverInfo4 info4;
867 [case(5)] spoolss_DriverInfo5 info5;
868 [case(6)] spoolss_DriverInfo6 info6;
869 [case(8)] spoolss_DriverInfo8 info8;
871 } spoolss_DriverInfo;
875 [public,noopnum,noprint] WERROR _spoolss_EnumPrinterDrivers(
876 [in,unique] [string,charset(UTF16)] uint16 *server,
877 [in,unique] [string,charset(UTF16)] uint16 *environment,
879 [in,unique] DATA_BLOB *buffer,
881 [out,unique] DATA_BLOB *info,
882 [out,ref] uint32 *needed,
883 [out,ref] uint32 *count
885 [public,noopnum,noprint] void __spoolss_EnumPrinterDrivers(
888 [out,switch_is(level)] spoolss_DriverInfo info[count]
890 [nopull,nopush] WERROR spoolss_EnumPrinterDrivers(
891 [in,unique] [string,charset(UTF16)] uint16 *server,
892 [in,unique] [string,charset(UTF16)] uint16 *environment,
894 [in,unique] DATA_BLOB *buffer,
896 [out,ref] uint32 *count,
897 [out,unique,switch_is(level),size_is(*count)] spoolss_DriverInfo *info,
898 [out,ref] uint32 *needed
903 [todo] WERROR spoolss_GetPrinterDriver(
908 typedef [public,gensize] struct {
909 nstring directory_name;
910 } spoolss_DriverDirectoryInfo1;
912 /* NOTE: it's seems that w2k3 completly ignores the level
915 typedef [nodiscriminant,relative_base,gensize,public] union {
916 [case(1)] spoolss_DriverDirectoryInfo1 info1;
917 [default] spoolss_DriverDirectoryInfo1 info1;
918 } spoolss_DriverDirectoryInfo;
920 [public] WERROR spoolss_GetPrinterDriverDirectory(
921 [in,unique] [string,charset(UTF16)] uint16 *server,
922 [in,unique] [string,charset(UTF16)] uint16 *environment,
924 [in,unique] DATA_BLOB *buffer,
926 [out,unique,subcontext(4),subcontext_size(offered),switch_is(level)] spoolss_DriverDirectoryInfo *info,
927 [out,ref] uint32 *needed
932 WERROR spoolss_DeletePrinterDriver(
933 [in,unique] [string,charset(UTF16)] uint16 *server,
934 [in] [string,charset(UTF16)] uint16 architecture[],
935 [in] [string,charset(UTF16)] uint16 driver[]
940 WERROR spoolss_AddPrintProcessor(
941 [in,unique] [string,charset(UTF16)] uint16 *server,
942 [in] [string,charset(UTF16)] uint16 architecture[],
943 [in] [string,charset(UTF16)] uint16 path_name[],
944 [in] [string,charset(UTF16)] uint16 print_processor_name[]
950 [relative] nstring *print_processor_name;
951 } spoolss_PrintProcessorInfo1;
953 typedef [nodiscriminant,relative_base,public] union {
954 [case(1)] spoolss_PrintProcessorInfo1 info1;
956 } spoolss_PrintProcessorInfo;
958 [public,noopnum,noprint] WERROR _spoolss_EnumPrintProcessors(
959 [in,unique] [string,charset(UTF16)] uint16 *servername,
960 [in,unique] [string,charset(UTF16)] uint16 *environment,
962 [in,unique] DATA_BLOB *buffer,
964 [out,unique] DATA_BLOB *info,
965 [out,ref] uint32 *needed,
966 [out,ref] uint32 *count
968 [public,noopnum,noprint] void __spoolss_EnumPrintProcessors(
971 [out,switch_is(level)] spoolss_PrintProcessorInfo info[count]
973 [nopull,nopush] WERROR spoolss_EnumPrintProcessors(
974 [in,unique] [string,charset(UTF16)] uint16 *servername,
975 [in,unique] [string,charset(UTF16)] uint16 *environment,
977 [in,unique] DATA_BLOB *buffer,
979 [out,ref] uint32 *count,
980 [out,unique,switch_is(level),size_is(*count)] spoolss_PrintProcessorInfo *info,
981 [out,ref] uint32 *needed
986 typedef [public,gensize] struct {
987 nstring directory_name;
988 } spoolss_PrintProcessorDirectoryInfo1;
990 typedef [nodiscriminant,relative_base,gensize,public] union {
991 [case(1)] spoolss_PrintProcessorDirectoryInfo1 info1;
993 } spoolss_PrintProcessorDirectoryInfo;
995 WERROR spoolss_GetPrintProcessorDirectory(
996 [in,unique] [string,charset(UTF16)] uint16 *server,
997 [in,unique] [string,charset(UTF16)] uint16 *environment,
999 [in,unique] DATA_BLOB *buffer,
1000 [in] uint32 offered,
1001 [out,unique,subcontext(4),subcontext_size(offered),switch_is(level)] spoolss_PrintProcessorDirectoryInfo *info,
1002 [out,ref] uint32 *needed
1005 /******************/
1006 /* Function: 0x11 */
1008 [string,charset(UTF16)] uint16 *document_name;
1009 [string,charset(UTF16)] uint16 *output_file;
1010 [string,charset(UTF16)] uint16 *datatype;
1011 } spoolss_DocumentInfo1;
1013 typedef [switch_type(uint32)] union {
1014 [case(1)] spoolss_DocumentInfo1 *info1;
1015 [case(2)]; /* TODO */
1016 [case(3)]; /* TODO */
1018 } spoolss_DocumentInfo;
1020 WERROR spoolss_StartDocPrinter(
1021 [in,ref] policy_handle *handle,
1023 [in,switch_is(level)] spoolss_DocumentInfo info,
1024 [out,ref] uint32 *job_id
1027 /******************/
1028 /* Function: 0x12 */
1029 WERROR spoolss_StartPagePrinter(
1030 [in,ref] policy_handle *handle
1033 /******************/
1034 /* Function: 0x13 */
1035 WERROR spoolss_WritePrinter(
1036 [in,ref] policy_handle *handle,
1037 [in] DATA_BLOB data,
1038 [in,value(r->in.data.length)] uint32 _data_size,
1039 [out,ref] uint32 *num_written
1042 /******************/
1043 /* Function: 0x14 */
1044 WERROR spoolss_EndPagePrinter(
1045 [in,ref] policy_handle *handle
1048 /******************/
1049 /* Function: 0x15 */
1050 WERROR spoolss_AbortPrinter(
1051 [in,ref] policy_handle *handle
1054 /******************/
1055 /* Function: 0x16 */
1056 WERROR spoolss_ReadPrinter(
1057 [in,ref] policy_handle *handle,
1058 [out,ref] [size_is(data_size)] uint8 *data,
1059 [in] uint32 data_size,
1060 [out,ref] uint32 *_data_size
1063 /******************/
1064 /* Function: 0x17 */
1065 WERROR spoolss_EndDocPrinter(
1066 [in,ref] policy_handle *handle
1069 /******************/
1070 /* Function: 0x18 */
1071 WERROR spoolss_AddJob(
1072 [in,ref] policy_handle *handle,
1074 [in,out,unique] [size_is(offered)] uint8 *buffer,
1075 [in] uint32 offered,
1076 [out,ref] uint32 *needed
1079 /******************/
1080 /* Function: 0x19 */
1081 WERROR spoolss_ScheduleJob(
1082 [in,ref] policy_handle *handle,
1086 /******************/
1087 /* Function: 0x1a */
1088 const string SPOOLSS_ARCHITECTURE_NT_X86 = "Windows NT x86";
1090 typedef [public,gensize] struct {
1091 [value(ndr_size_spoolss_OSVersion(r,ndr->iconv_convenience,ndr->flags))] uint32 _ndr_size;
1095 [value(2)] uint32 unknown;
1096 [subcontext(0),subcontext_size(256)] nstring extra_string;
1097 } spoolss_OSVersion;
1099 typedef [public,gensize] struct {
1100 [value(ndr_size_spoolss_OSVersionEx(r,ndr->iconv_convenience,ndr->flags))] uint32 _ndr_size;
1104 [value(2)] uint32 unknown1;
1105 [subcontext(0),subcontext_size(256)] nstring extra_string;
1106 uint32 unknown2;/* service pack number? I saw 0 from w2k3 and 1 from winxp sp1*/
1107 uint32 unknown3;/* hmm? w2k3: 131346(0x20112) winxp sp1: 503382272 0x1E010100 */
1108 } spoolss_OSVersionEx;
1110 typedef [v1_enum] enum {
1111 SPOOLSS_PRINTER_DATA_TYPE_NULL = 0,
1112 SPOOLSS_PRINTER_DATA_TYPE_STRING = 1,
1113 SPOOLSS_PRINTER_DATA_TYPE_BINARY = 3,
1114 SPOOLSS_PRINTER_DATA_TYPE_UINT32 = 4,
1115 SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY = 7
1116 } spoolss_PrinterDataType;
1118 typedef [nodiscriminant,public,gensize] union {
1119 [case(SPOOLSS_PRINTER_DATA_TYPE_NULL)];
1120 [case(SPOOLSS_PRINTER_DATA_TYPE_STRING)] nstring string;
1121 [case(SPOOLSS_PRINTER_DATA_TYPE_BINARY),flag(NDR_REMAINING)] DATA_BLOB binary;
1122 [case(SPOOLSS_PRINTER_DATA_TYPE_UINT32)] uint32 value;
1123 [case(SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY)] nstring_array string_array;
1124 [default,flag(NDR_REMAINING)] DATA_BLOB data;
1125 } spoolss_PrinterData;
1127 [noopnum,noprint,public] WERROR _spoolss_GetPrinterData(
1128 [in,ref] policy_handle *handle,
1129 [in] [string,charset(UTF16)] uint16 value_name[],
1130 [in] uint32 offered,
1131 [out,ref] spoolss_PrinterDataType *type,
1132 [out] DATA_BLOB data,
1133 [out,ref] uint32 *needed
1135 [noopnum,noprint,public] void __spoolss_GetPrinterData(
1136 [in] spoolss_PrinterDataType type,
1137 [out,switch_is(type)] spoolss_PrinterData data
1139 [nopull,nopush,public] WERROR spoolss_GetPrinterData(
1140 [in,ref] policy_handle *handle,
1141 [in] [string,charset(UTF16)] uint16 value_name[],
1142 [in] uint32 offered,
1143 [out,ref] spoolss_PrinterDataType *type,
1144 [out,subcontext(4),subcontext_size(offered),switch_is(*type)] spoolss_PrinterData data,
1145 [out,ref] uint32 *needed
1148 /******************/
1149 /* Function: 0x1b */
1150 [noopnum,nopull,noprint,public] WERROR _spoolss_SetPrinterData(
1151 [in,ref] policy_handle *handle,
1152 [in] [string,charset(UTF16)] uint16 value_name[],
1153 [in] spoolss_PrinterDataType type,
1154 [in] DATA_BLOB data,
1155 [in] uint32 _offered
1157 [noopnum,nopull,noprint,public] void __spoolss_SetPrinterData(
1158 [in] spoolss_PrinterDataType type,
1159 [out,switch_is(type)] spoolss_PrinterData data
1161 [nopush] WERROR spoolss_SetPrinterData(
1162 [in,ref] policy_handle *handle,
1163 [in] [string,charset(UTF16)] uint16 value_name[],
1164 [in] spoolss_PrinterDataType type,
1165 [in,subcontext(4),switch_is(type)] spoolss_PrinterData data,
1166 [in,value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] uint32 _offered
1169 /******************/
1170 /* Function: 0x1c */
1171 [todo] WERROR spoolss_WaitForPrinterChange(
1174 /******************/
1175 /* Function: 0x1d */
1176 [public] WERROR spoolss_ClosePrinter(
1177 [in,out,ref] policy_handle *handle
1180 /******************/
1181 /* Function: 0x1e */
1182 typedef [v1_enum] enum {
1183 SPOOLSS_FORM_USER = 0,
1184 SPOOLSS_FORM_BUILTIN = 1,
1185 SPOOLSS_FORM_PRINTER = 2
1186 } spoolss_FormFlags;
1201 spoolss_FormFlags flags;
1202 [relative] nstring *form_name;
1203 spoolss_FormSize size;
1204 spoolss_FormArea area;
1205 } spoolss_FormInfo1;
1207 typedef [nodiscriminant,relative_base,public,gensize] union {
1208 [case(1)] spoolss_FormInfo1 info1;
1213 spoolss_FormFlags flags;
1214 [string,charset(UTF16)] uint16 *form_name;
1215 spoolss_FormSize size;
1216 spoolss_FormArea area;
1217 } spoolss_AddFormInfo1;
1219 typedef [switch_type(uint32)] union {
1220 [case(1)] spoolss_AddFormInfo1 *info1;
1221 } spoolss_AddFormInfo;
1223 WERROR spoolss_AddForm(
1224 [in,ref] policy_handle *handle,
1226 [in,switch_is(level)] spoolss_AddFormInfo info
1229 /******************/
1230 /* Function: 0x1f */
1231 WERROR spoolss_DeleteForm(
1232 [in,ref] policy_handle *handle,
1233 [in] [string,charset(UTF16)] uint16 form_name[]
1236 /******************/
1237 /* Function: 0x20 */
1238 WERROR spoolss_GetForm(
1239 [in,ref] policy_handle *handle,
1240 [in] [string,charset(UTF16)] uint16 form_name[],
1242 [in,unique] DATA_BLOB *buffer,
1243 [in] uint32 offered,
1244 [out,unique,subcontext(4),subcontext_size(offered),switch_is(level)] spoolss_FormInfo *info,
1245 [out,ref] uint32 *needed
1248 /******************/
1249 /* Function: 0x21 */
1250 WERROR spoolss_SetForm(
1251 [in,ref] policy_handle *handle,
1252 [in] [string,charset(UTF16)] uint16 form_name[],
1254 [in,switch_is(level)] spoolss_AddFormInfo info
1257 /******************/
1258 /* Function: 0x22 */
1259 [public,noopnum,noprint] WERROR _spoolss_EnumForms(
1260 [in,ref] policy_handle *handle,
1262 [in,unique] DATA_BLOB *buffer,
1263 [in] uint32 offered,
1264 [out,unique] DATA_BLOB *info,
1265 [out,ref] uint32 *needed,
1266 [out,ref] uint32 *count
1268 [public,noopnum,noprint] void __spoolss_EnumForms(
1271 [out,switch_is(level)] spoolss_FormInfo info[count]
1273 [nopull,nopush] WERROR spoolss_EnumForms(
1274 [in,ref] policy_handle *handle,
1276 [in,unique] DATA_BLOB *buffer,
1277 [in] uint32 offered,
1278 [out,ref] uint32 *count,
1279 [out,unique,switch_is(level),size_is(*count)] spoolss_FormInfo *info,
1280 [out,ref] uint32 *needed
1284 [relative] nstring *port_name;
1285 } spoolss_PortInfo1;
1288 SPOOLSS_PORT_TYPE_WRITE = 0x00000001,
1289 SPOOLSS_PORT_TYPE_READ = 0x00000002,
1290 SPOOLSS_PORT_TYPE_REDIRECTED = 0x00000004,
1291 SPOOLSS_PORT_TYPE_NET_ATTACHED = 0x00000008
1295 [relative] nstring *port_name;
1296 [relative] nstring *monitor_name;
1297 [relative] nstring *description;
1298 spoolss_PortType port_type;
1300 } spoolss_PortInfo2;
1302 typedef [nodiscriminant,relative_base,public] union {
1303 [case(1)] spoolss_PortInfo1 info1;
1304 [case(2)] spoolss_PortInfo2 info2;
1305 [case(3)]; /* TODO */
1309 /******************/
1310 /* Function: 0x23 */
1311 [public,noopnum,noprint] WERROR _spoolss_EnumPorts(
1312 [in,unique] [string,charset(UTF16)] uint16 *servername,
1314 [in,unique] DATA_BLOB *buffer,
1315 [in] uint32 offered,
1316 [out,unique] DATA_BLOB *info,
1317 [out,ref] uint32 *needed,
1318 [out,ref] uint32 *count
1320 [public,noopnum,noprint] void __spoolss_EnumPorts(
1323 [out,switch_is(level)] spoolss_PortInfo info[count]
1325 [nopull,nopush] WERROR spoolss_EnumPorts(
1326 [in,unique] [string,charset(UTF16)] uint16 *servername,
1328 [in,unique] DATA_BLOB *buffer,
1329 [in] uint32 offered,
1330 [out,ref] uint32 *count,
1331 [out,unique,switch_is(level),size_is(*count)] spoolss_PortInfo *info,
1332 [out,ref] uint32 *needed
1335 /******************/
1336 /* Function: 0x24 */
1338 [relative] nstring *monitor_name;
1339 } spoolss_MonitorInfo1;
1342 [relative] nstring *monitor_name;
1343 [relative] nstring *environment;
1344 [relative] nstring *dll_name;
1345 } spoolss_MonitorInfo2;
1347 typedef [nodiscriminant,relative_base,public] union {
1348 [case(1)] spoolss_MonitorInfo1 info1;
1349 [case(2)] spoolss_MonitorInfo2 info2;
1351 } spoolss_MonitorInfo;
1353 [public,noopnum,noprint] WERROR _spoolss_EnumMonitors(
1354 [in,unique] [string,charset(UTF16)] uint16 *servername,
1356 [in,unique] DATA_BLOB *buffer,
1357 [in] uint32 offered,
1358 [out,unique] DATA_BLOB *info,
1359 [out,ref] uint32 *needed,
1360 [out,ref] uint32 *count
1362 [public,noopnum,noprint] void __spoolss_EnumMonitors(
1365 [out,switch_is(level)] spoolss_MonitorInfo info[count]
1367 [nopull,nopush] WERROR spoolss_EnumMonitors(
1368 [in,unique] [string,charset(UTF16)] uint16 *servername,
1370 [in,unique] DATA_BLOB *buffer,
1371 [in] uint32 offered,
1372 [out,ref] uint32 *count,
1373 [out,unique,switch_is(level),size_is(*count)] spoolss_MonitorInfo *info,
1374 [out,ref] uint32 *needed
1377 /******************/
1378 /* Function: 0x25 */
1379 WERROR spoolss_AddPort(
1380 [in,unique] [string,charset(UTF16)] uint16 *server_name,
1381 [in] uint32 unknown,
1382 [in] [string,charset(UTF16)] uint16 monitor_name[]
1385 /******************/
1386 /* Function: 0x26 */
1387 [todo] WERROR spoolss_ConfigurePort(
1390 /******************/
1391 /* Function: 0x27 */
1392 [todo] WERROR spoolss_DeletePort(
1395 /******************/
1396 /* Function: 0x28 */
1397 [todo] WERROR spoolss_CreatePrinterIC(
1400 /******************/
1401 /* Function: 0x29 */
1402 [todo] WERROR spoolss_PlayGDIScriptOnPrinterIC(
1405 /******************/
1406 /* Function: 0x2a */
1407 [todo] WERROR spoolss_DeletePrinterIC(
1410 /******************/
1411 /* Function: 0x2b */
1412 [todo] WERROR spoolss_AddPrinterConnection(
1415 /******************/
1416 /* Function: 0x2c */
1417 [todo] WERROR spoolss_DeletePrinterConnection(
1420 /******************/
1421 /* Function: 0x2d */
1422 [todo] WERROR spoolss_PrinterMessageBox(
1423 /* Marked as obsolete in MSDN. "Not necessary and has
1427 /******************/
1428 /* Function: 0x2e */
1429 [todo] WERROR spoolss_AddMonitor(
1432 /******************/
1433 /* Function: 0x2f */
1434 [todo] WERROR spoolss_DeleteMonitor(
1437 /******************/
1438 /* Function: 0x30 */
1439 [todo] WERROR spoolss_DeletePrintProcessor(
1442 /******************/
1443 /* Function: 0x31 */
1444 [todo] WERROR spoolss_AddPrintProvidor(
1447 /******************/
1448 /* Function: 0x32 */
1449 [todo] WERROR spoolss_DeletePrintProvidor(
1452 /******************/
1453 /* Function: 0x33 */
1454 [todo] WERROR spoolss_EnumPrintProcDataTypes(
1457 /******************/
1458 /* Function: 0x34 */
1459 WERROR spoolss_ResetPrinter(
1460 [in,ref] policy_handle *handle,
1461 [in,unique] [string,charset(UTF16)] uint16 *data_type,
1462 [in,ref] spoolss_DevmodeContainer *devmode_ctr
1465 /******************/
1466 /* Function: 0x35 */
1467 WERROR spoolss_GetPrinterDriver2(
1468 [in,ref] policy_handle *handle,
1469 [in,unique] [string,charset(UTF16)] uint16 *architecture,
1471 [in,unique] DATA_BLOB *buffer,
1472 [in] uint32 offered,
1473 [in] uint32 client_major_version,
1474 [in] uint32 client_minor_version,
1475 [out,unique] DATA_BLOB *info,
1476 [out,ref] uint32 *needed,
1477 [out,ref] uint32 *server_major_version,
1478 [out,ref] uint32 *server_minor_version
1481 /******************/
1482 /* Function: 0x36 */
1483 [todo] WERROR spoolss_FindFirstPrinterChangeNotification(
1486 /******************/
1487 /* Function: 0x37 */
1488 [todo] WERROR spoolss_FindNextPrinterChangeNotification(
1491 /******************/
1492 /* Function: 0x38 */
1493 [public] WERROR spoolss_FindClosePrinterNotify(
1494 [in,ref] policy_handle *handle
1497 /******************/
1498 /* Function: 0x39 */
1499 [todo] WERROR spoolss_RouterFindFirstPrinterChangeNotificationOld(
1502 /******************/
1503 /* Function: 0x3a */
1504 [public] WERROR spoolss_ReplyOpenPrinter(
1505 [in,string,charset(UTF16)] uint16 server_name[],
1506 [in] uint32 printer_local,
1507 [in] winreg_Type type,
1508 [in,range(0,512)] uint32 bufsize,
1509 [in,unique,size_is(bufsize)] uint8 *buffer,
1510 [out,ref] policy_handle *handle
1513 /******************/
1514 /* Function: 0x3b */
1516 typedef [bitmap32bit] bitmap {
1517 PRINTER_CHANGE_ADD_PRINTER = 0x00000001,
1518 PRINTER_CHANGE_SET_PRINTER = 0x00000002,
1519 PRINTER_CHANGE_DELETE_PRINTER = 0x00000004,
1520 PRINTER_CHANGE_FAILED_CONNECTION_PRINTER = 0x00000008,
1521 PRINTER_CHANGE_ADD_JOB = 0x00000100,
1522 PRINTER_CHANGE_SET_JOB = 0x00000200,
1523 PRINTER_CHANGE_DELETE_JOB = 0x00000400,
1524 PRINTER_CHANGE_WRITE_JOB = 0x00000800,
1525 PRINTER_CHANGE_ADD_FORM = 0x00010000,
1526 PRINTER_CHANGE_SET_FORM = 0x00020000,
1527 PRINTER_CHANGE_DELETE_FORM = 0x00040000,
1528 PRINTER_CHANGE_ADD_PORT = 0x00100000,
1529 PRINTER_CHANGE_CONFIGURE_PORT = 0x00200000,
1530 PRINTER_CHANGE_DELETE_PORT = 0x00400000,
1531 PRINTER_CHANGE_ADD_PRINT_PROCESSOR = 0x01000000,
1532 PRINTER_CHANGE_DELETE_PRINT_PROCESSOR = 0x04000000,
1533 PRINTER_CHANGE_SERVER = 0x08000000,
1534 PRINTER_CHANGE_ADD_PRINTER_DRIVER = 0x10000000,
1535 PRINTER_CHANGE_SET_PRINTER_DRIVER = 0x20000000,
1536 PRINTER_CHANGE_DELETE_PRINTER_DRIVER = 0x40000000,
1537 PRINTER_CHANGE_TIMEOUT = 0x80000000
1538 } spoolss_PrinterChangeFlags;
1540 const int PRINTER_CHANGE_PRINTER = 0x000000FF;
1542 const int PRINTER_CHANGE_JOB = 0x0000FF00;
1544 const int PRINTER_CHANGE_FORM = (PRINTER_CHANGE_ADD_FORM |
1545 PRINTER_CHANGE_SET_FORM |
1546 PRINTER_CHANGE_DELETE_FORM); /* 0x00070000 */
1548 const int PRINTER_CHANGE_PORT = (PRINTER_CHANGE_ADD_PORT |
1549 PRINTER_CHANGE_CONFIGURE_PORT |
1550 PRINTER_CHANGE_DELETE_PORT); /* 0x00700000 */
1552 const int PRINTER_CHANGE_PRINT_PROCESSOR = 0x07000000;
1554 const int PRINTER_CHANGE_PRINTER_DRIVER = (PRINTER_CHANGE_ADD_PRINTER_DRIVER |
1555 PRINTER_CHANGE_SET_PRINTER_DRIVER |
1556 PRINTER_CHANGE_DELETE_PRINTER_DRIVER); /* 0x70000000 */
1558 const int PRINTER_CHANGE_ALL = (PRINTER_CHANGE_PRINTER |
1559 PRINTER_CHANGE_JOB |
1560 PRINTER_CHANGE_FORM |
1561 PRINTER_CHANGE_PORT |
1562 PRINTER_CHANGE_PRINT_PROCESSOR |
1563 PRINTER_CHANGE_PRINTER_DRIVER); /* 0x7777FFFF */
1564 WERROR spoolss_RouterReplyPrinter(
1565 [in,ref] policy_handle *handle,
1566 [in] spoolss_PrinterChangeFlags flags,
1567 [in,range(0,512)] uint32 bufsize,
1568 [in,unique,size_is(bufsize)] uint8 *buffer
1571 /******************/
1572 /* Function: 0x3c */
1573 [public] WERROR spoolss_ReplyClosePrinter(
1574 [in,out,ref] policy_handle *handle
1577 /******************/
1578 /* Function: 0x3d */
1579 [todo] WERROR spoolss_AddPortEx(
1582 /******************/
1583 /* Function: 0x3e */
1584 [todo] WERROR spoolss_RouterFindFirstPrinterChangeNotification(
1587 /******************/
1588 /* Function: 0x3f */
1589 [todo] WERROR spoolss_SpoolerInit(
1592 /******************/
1593 /* Function: 0x40 */
1594 [todo] WERROR spoolss_ResetPrinterEx(
1597 typedef [enum16bit] enum {
1598 SPOOLSS_FIELD_SERVER_NAME = 0,
1599 SPOOLSS_FIELD_PRINTER_NAME = 1,
1600 SPOOLSS_FIELD_SHARE_NAME = 2,
1601 SPOOLSS_FIELD_PORT_NAME = 3,
1602 SPOOLSS_FIELD_DRIVER_NAME = 4,
1603 SPOOLSS_FIELD_COMMENT = 5,
1604 SPOOLSS_FIELD_LOCATION = 6,
1605 SPOOLSS_FIELD_DEVMODE = 7,
1606 SPOOLSS_FIELD_SEPFILE = 8,
1607 SPOOLSS_FIELD_PRINT_PROCESSOR = 9,
1608 SPOOLSS_FIELD_PARAMETERS = 10,
1609 SPOOLSS_FIELD_DATATYPE = 11,
1610 SPOOLSS_FIELD_SECURITY_DESCRIPTOR=12,
1611 SPOOLSS_FIELD_ATTRIBUTES = 13,
1612 SPOOLSS_FIELD_PRIORITY = 14,
1613 SPOOLSS_FIELD_DEFAULT_PRIORITY = 15,
1614 SPOOLSS_FIELD_START_TIME = 16,
1615 SPOOLSS_FIELD_UNTIL_TIME = 17,
1616 SPOOLSS_FIELD_STATUS = 18,
1617 SPOOLSS_FIELD_STATUS_STRING = 19,
1618 SPOOLSS_FIELD_CJOBS = 20,
1619 SPOOLSS_FIELD_AVERAGE_PPM = 21,
1620 SPOOLSS_FIELD_TOTAL_PAGES = 22,
1621 SPOOLSS_FIELD_PAGES_PRINTED = 23,
1622 SPOOLSS_FIELD_TOTAL_BYTES = 24,
1623 SPOOLSS_FIELD_BYTES_PRINTED = 25
1626 typedef [enum16bit] enum {
1627 SPOOLSS_NOTIFY_PRINTER = 0,
1628 SPOOLSS_NOTIFY_JOB = 1
1629 } spoolss_NotifyType;
1631 /******************/
1632 /* Function: 0x41 */
1634 spoolss_NotifyType type;
1639 [size_is(count)] spoolss_Field *fields;
1640 } spoolss_NotifyOptionType;
1642 typedef [bitmap32bit] bitmap {
1643 PRINTER_NOTIFY_OPTIONS_REFRESH = 0x00000001
1644 } spoolssNotifyOptionFlags;
1647 [value(2)] uint32 version;
1648 spoolssNotifyOptionFlags flags;
1650 [size_is(count)] spoolss_NotifyOptionType *types;
1651 } spoolss_NotifyOption;
1653 [public] WERROR spoolss_RemoteFindFirstPrinterChangeNotifyEx(
1654 [in,ref] policy_handle *handle,
1655 [in] spoolss_PrinterChangeFlags flags,
1656 [in] uint32 options,
1657 [in,unique] [string,charset(UTF16)] uint16 *local_machine,
1658 [in] uint32 printer_local,
1659 [in,unique] spoolss_NotifyOption *notify_options
1662 /******************/
1663 /* Function: 0x42 */
1667 [size_is(size/2),unique,charset(UTF16)] uint16 *string;
1668 } spoolss_NotifyString;
1670 typedef [v1_enum] enum {
1671 NOTIFY_TABLE_DWORD = 0x0001,
1672 NOTIFY_TABLE_STRING = 0x0002,
1673 NOTIFY_TABLE_DEVMODE = 0x0003,
1674 NOTIFY_TABLE_TIME = 0x0004,
1675 NOTIFY_TABLE_SECURITYDESCRIPTOR = 0x0005
1676 } spoolss_NotifyTable;
1678 typedef [switch_type(uint32)] union {
1679 [case(1)] uint32 integer[2];
1680 [case(2)] spoolss_NotifyString string;
1681 [case(3)] spoolss_DevmodeContainer devmode;
1682 [case(4)] spoolss_TimeCtr time;
1683 [case(5)] sec_desc_buf sd;
1684 } spoolss_NotifyData;
1687 spoolss_NotifyType type;
1688 spoolss_Field field;
1689 spoolss_NotifyTable variable_type;
1691 [switch_is(variable_type)] spoolss_NotifyData data;
1695 [value(2)] uint32 version;
1698 [size_is(count)] spoolss_Notify notifies[];
1699 } spoolss_NotifyInfo;
1701 typedef [switch_type(uint32)] union {
1702 [case(0)] spoolss_NotifyInfo *info0;
1703 } spoolss_ReplyPrinterInfo;
1705 typedef [bitmap32bit] bitmap {
1706 PRINTER_NOTIFY_INFO_DISCARDED = 0x00000001,
1707 PRINTER_NOTIFY_INFO_DISCARDNOTED = 0x00010000,
1708 PRINTER_NOTIFY_INFO_COLOR_MISMATCH = 0x00080000
1709 } spoolss_PrinterNotifyFlags;
1711 WERROR spoolss_RouterReplyPrinterEx(
1712 [in,ref] policy_handle *handle,
1714 [in] spoolss_PrinterChangeFlags flags,
1715 [out,ref] spoolss_PrinterNotifyFlags *reply_result,
1716 [in] uint32 reply_type,
1717 [in,switch_is(reply_type)] spoolss_ReplyPrinterInfo info
1720 /******************/
1721 /* Function: 0x43 */
1722 [public] WERROR spoolss_RouterRefreshPrinterChangeNotify(
1723 [in,ref] policy_handle *handle,
1724 [in] uint32 change_low,
1725 [in,unique] spoolss_NotifyOption *options,
1726 [out,ref] spoolss_NotifyInfo **info
1729 /******************/
1730 /* Function: 0x44 */
1731 [todo] WERROR spoolss_44(
1736 [string,charset(UTF16)] uint16 *client;
1737 [string,charset(UTF16)] uint16 *user;
1739 spoolss_MajorVersion major;
1740 spoolss_MinorVersion minor;
1741 spoolss_ProcessorArchitecture processor;
1742 } spoolss_UserLevel1;
1746 } spoolss_UserLevel2;
1752 [string,charset(UTF16)] uint16 *client;
1753 [string,charset(UTF16)] uint16 *user;
1755 spoolss_MajorVersion major;
1756 spoolss_MinorVersion minor;
1757 spoolss_ProcessorArchitecture processor;
1759 } spoolss_UserLevel3;
1761 typedef [switch_type(uint32)] union {
1762 [case(1)] spoolss_UserLevel1 *level1;
1763 [case(2)] spoolss_UserLevel2 *level2;
1764 [case(3)] spoolss_UserLevel3 *level3;
1765 } spoolss_UserLevel;
1769 [switch_is(level)] spoolss_UserLevel user_info;
1770 } spoolss_UserLevelCtr;
1773 SERVER_ACCESS_ADMINISTER = 0x00000001,
1774 SERVER_ACCESS_ENUMERATE = 0x00000002,
1775 PRINTER_ACCESS_ADMINISTER = 0x00000004,
1776 PRINTER_ACCESS_USE = 0x00000008,
1777 JOB_ACCESS_ADMINISTER = 0x00000010
1778 } spoolss_AccessRights;
1780 /* Access rights for print servers */
1781 const int SERVER_ALL_ACCESS = SEC_STD_REQUIRED |
1782 SERVER_ACCESS_ADMINISTER |
1783 SERVER_ACCESS_ENUMERATE;
1785 const int SERVER_READ = SEC_STD_READ_CONTROL |
1786 SERVER_ACCESS_ENUMERATE;
1788 const int SERVER_WRITE = STANDARD_RIGHTS_WRITE_ACCESS |
1789 SERVER_ACCESS_ADMINISTER |
1790 SERVER_ACCESS_ENUMERATE;
1792 const int SERVER_EXECUTE = SEC_STD_READ_CONTROL |
1793 SERVER_ACCESS_ENUMERATE;
1795 /* Access rights for printers */
1796 const int PRINTER_ALL_ACCESS = SEC_STD_REQUIRED |
1797 PRINTER_ACCESS_ADMINISTER |
1800 const int PRINTER_READ = SEC_STD_READ_CONTROL |
1803 const int PRINTER_WRITE = STANDARD_RIGHTS_WRITE_ACCESS |
1806 const int PRINTER_EXECUTE = SEC_STD_READ_CONTROL |
1809 /* Access rights for jobs */
1810 const int JOB_ALL_ACCESS = SEC_STD_REQUIRED |
1811 JOB_ACCESS_ADMINISTER;
1813 const int JOB_READ = SEC_STD_READ_CONTROL |
1814 JOB_ACCESS_ADMINISTER;
1816 const int JOB_WRITE = STANDARD_RIGHTS_WRITE_ACCESS |
1817 JOB_ACCESS_ADMINISTER;
1819 const int JOB_EXECUTE = SEC_STD_READ_CONTROL |
1820 JOB_ACCESS_ADMINISTER;
1822 /* ACE masks for various print permissions */
1823 const int PRINTER_ACE_FULL_CONTROL = SEC_GENERIC_ALL |
1826 const int PRINTER_ACE_MANAGE_DOCUMENTS = SEC_GENERIC_ALL |
1827 READ_CONTROL_ACCESS;
1829 const int PRINTER_ACE_PRINT = GENERIC_EXECUTE_ACCESS |
1830 READ_CONTROL_ACCESS |
1833 /******************/
1834 /* Function: 0x45 */
1835 [public] WERROR spoolss_OpenPrinterEx(
1836 [in,unique] [string,charset(UTF16)] uint16 *printername,
1837 [in,unique] [string,charset(UTF16)] uint16 *datatype,
1838 [in] spoolss_DevmodeContainer devmode_ctr,
1839 [in] spoolss_AccessRights access_mask,
1841 [in,switch_is(level)] spoolss_UserLevel userlevel,
1842 [out,ref] policy_handle *handle
1845 /******************/
1846 /* Function: 0x46 */
1847 WERROR spoolss_AddPrinterEx(
1848 [in,unique] [string,charset(UTF16)] uint16 *server,
1849 [in,ref] spoolss_SetPrinterInfoCtr *info_ctr,
1850 [in,ref] spoolss_DevmodeContainer *devmode_ctr,
1851 [in,ref] sec_desc_buf *secdesc_ctr,
1852 [in,ref] spoolss_UserLevelCtr *userlevel_ctr,
1853 [out,ref] policy_handle *handle
1856 /******************/
1857 /* Function: 0x47 */
1858 [todo] WERROR spoolss_47(
1861 /******************/
1862 /* Function: 0x48 */
1863 WERROR spoolss_EnumPrinterData(
1864 [in,ref] policy_handle *handle,
1865 [in] uint32 enum_index,
1866 [out,size_is(value_offered/2),charset(UTF16)] uint16 value_name[],
1867 [in] uint32 value_offered,
1868 [out,ref] uint32 *value_needed,
1869 [out,ref] uint32 *printerdata_type,
1870 [out,ref] DATA_BLOB *buffer,
1871 [in] uint32 data_offered,
1872 [out,ref] uint32 *data_needed
1875 /******************/
1876 /* Function: 0x49 */
1877 WERROR spoolss_DeletePrinterData(
1878 [in,ref] policy_handle *handle,
1879 [in] [string,charset(UTF16)] uint16 value_name[]
1882 /******************/
1883 /* Function: 0x4a */
1884 [todo] WERROR spoolss_4a(
1887 /******************/
1888 /* Function: 0x4b */
1889 [todo] WERROR spoolss_4b(
1892 /******************/
1893 /* Function: 0x4c */
1894 [todo] WERROR spoolss_4c(
1897 /******************/
1898 /* Function: 0x4d */
1899 WERROR spoolss_SetPrinterDataEx(
1900 [in,ref] policy_handle *handle,
1901 [in] [string,charset(UTF16)] uint16 key_name[],
1902 [in] [string,charset(UTF16)] uint16 value_name[],
1904 [in,ref] [size_is(offered)] uint8 *buffer,
1908 /******************/
1909 /* Function: 0x4e */
1910 WERROR spoolss_GetPrinterDataEx(
1911 [in,ref] policy_handle *handle,
1912 [in] [string,charset(UTF16)] uint16 key_name[],
1913 [in] [string,charset(UTF16)] uint16 value_name[],
1914 [out,ref] uint32 *type,
1915 [out,ref] [size_is(offered)] uint8 *buffer,
1916 [in] uint32 offered,
1917 [out,ref] uint32 *needed
1920 /******************/
1921 /* Function: 0x4f */
1922 [public] WERROR spoolss_EnumPrinterDataEx(
1923 [in,ref] policy_handle *handle,
1924 [in] [string,charset(UTF16)] uint16 key_name[],
1925 [out,ref] [size_is(offered)] uint8 *buffer,
1926 [in] uint32 offered,
1927 [out,ref] uint32 *needed,
1928 [out,ref] uint32 *count
1931 /******************/
1932 /* Function: 0x50 */
1933 [public] WERROR spoolss_EnumPrinterKey(
1934 [in, ref] policy_handle *handle,
1935 [in] [string,charset(UTF16)] uint16 key_name[],
1936 [out,ref] [size_is(key_buffer_size/2)] uint16 *key_buffer,
1937 [in] uint32 key_buffer_size,
1938 [out,ref] uint32 *needed
1941 /******************/
1942 /* Function: 0x51 */
1943 WERROR spoolss_DeletePrinterDataEx(
1944 [in,ref] policy_handle *handle,
1945 [in] [string,charset(UTF16)] uint16 key_name[],
1946 [in] [string,charset(UTF16)] uint16 value_name[]
1949 /******************/
1950 /* Function: 0x52 */
1951 WERROR spoolss_DeletePrinterKey(
1952 [in,ref] policy_handle *handle,
1953 [in] [string,charset(UTF16)] uint16 key_name[]
1956 /******************/
1957 /* Function: 0x53 */
1958 [todo] WERROR spoolss_53(
1961 /******************/
1962 /* Function: 0x54 */
1963 typedef [public,bitmap32bit] bitmap {
1964 DPD_DELETE_UNUSED_FILES = 0x00000001,
1965 DPD_DELETE_SPECIFIC_VERSION = 0x00000002,
1966 DPD_DELETE_ALL_FILES = 0x00000004
1967 } spoolss_DeleteDriverFlags;
1969 WERROR spoolss_DeletePrinterDriverEx(
1970 [in,unique] [string,charset(UTF16)] uint16 *server,
1971 [in] [string,charset(UTF16)] uint16 architecture[],
1972 [in] [string,charset(UTF16)] uint16 driver[],
1973 [in] spoolss_DeleteDriverFlags delete_flags,
1977 /******************/
1978 /* Function: 0x55 */
1979 [todo] WERROR spoolss_55(
1982 /******************/
1983 /* Function: 0x56 */
1984 [todo] WERROR spoolss_56(
1987 /******************/
1988 /* Function: 0x57 */
1989 [todo] WERROR spoolss_57(
1992 /******************/
1993 /* Function: 0x58 */
1995 typedef [v1_enum] enum {
1996 PROTOCOL_RAWTCP_TYPE = 1,
1997 PROTOCOL_LPR_TYPE = 2
1998 } spoolss_PortProtocol;
2000 typedef [public] struct {
2001 [charset(UTF16)] uint16 portname[64];
2002 [value(0x00000001)] uint32 version;
2003 spoolss_PortProtocol protocol;
2004 [value(sizeof(r))] uint32 size;
2006 [charset(UTF16)] uint16 hostaddress[49];
2007 [charset(UTF16)] uint16 snmpcommunity[33];
2009 [charset(UTF16)] uint16 queue[33];
2010 [charset(UTF16)] uint16 ip_address[16]; /* s3 had 17 */
2011 [charset(UTF16)] uint16 hardware_address[13];
2012 [charset(UTF16)] uint16 device_type[257];
2014 boolean32 snmp_enabled;
2015 uint32 snmp_dev_index;
2016 } spoolss_PortData1;
2018 typedef [public] struct {
2019 [charset(UTF16)] uint16 portname[64];
2020 [value(0x00000002)] uint32 version;
2021 spoolss_PortProtocol protocol;
2022 [value(sizeof(r))] uint32 size;
2024 [charset(UTF16)] uint16 hostaddress[128];
2025 [charset(UTF16)] uint16 snmpcommunity[33];
2027 [charset(UTF16)] uint16 queue[33];
2028 [charset(UTF16)] uint16 device_type[257];
2030 boolean32 snmp_enabled;
2031 uint32 snmp_dev_index;
2032 uint32 port_monitor_mib_index;
2033 } spoolss_PortData2;
2035 typedef [public] struct {
2037 } spoolss_MonitorUi;
2039 WERROR spoolss_XcvData(
2040 [in,ref] policy_handle *handle,
2041 [in] [string,charset(UTF16)] uint16 function_name[],
2042 [in] DATA_BLOB in_data,
2043 [in,value(r->in.in_data.length)] uint32 _in_data_length,
2044 [out,ref] [size_is(out_data_size)] uint8 *out_data,
2045 [in] uint32 out_data_size,
2046 [out,ref] uint32 *needed,
2047 [in,out,ref] uint32 *status_code
2050 /******************/
2051 /* Function: 0x59 */
2053 typedef [bitmap32bit] bitmap {
2054 APD_STRICT_UPGRADE = 0x00000001,
2055 APD_STRICT_DOWNGRADE = 0x00000002,
2056 APD_COPY_ALL_FILES = 0x00000004,
2057 APD_COPY_NEW_FILES = 0x00000008,
2058 APD_COPY_FROM_DIRECTORY = 0x00000010,
2059 APD_DONT_COPY_FILES_TO_CLUSTER = 0x00001000,
2060 APD_COPY_TO_ALL_SPOOLERS = 0x00002000,
2061 APD_RETURN_BLOCKING_STATUS_CODE = 0x00010000
2062 } spoolss_AddPrinterDriverExFlags;
2064 [public] WERROR spoolss_AddPrinterDriverEx(
2065 [in,unique] [string,charset(UTF16)] uint16 *servername,
2066 [in,ref] spoolss_AddDriverInfoCtr *info_ctr,
2067 [in] spoolss_AddPrinterDriverExFlags flags
2070 /******************/
2071 /* Function: 0x5a */
2072 [todo] WERROR spoolss_5a(
2075 /******************/
2076 /* Function: 0x5b */
2077 [todo] WERROR spoolss_5b(
2080 /******************/
2081 /* Function: 0x5c */
2082 [todo] WERROR spoolss_5c(
2085 /******************/
2086 /* Function: 0x5d */
2087 [todo] WERROR spoolss_5d(
2090 /******************/
2091 /* Function: 0x5e */
2092 [todo] WERROR spoolss_5e(
2095 /******************/
2096 /* Function: 0x5f */
2097 [todo] WERROR spoolss_5f(