s3: re-run make samba3-idl.
[jra/samba/.git] / librpc / gen_ndr / spoolss.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "librpc/gen_ndr/misc.h"
6 #include "librpc/gen_ndr/security.h"
7 #include "librpc/gen_ndr/winreg.h"
8 #ifndef _HEADER_spoolss
9 #define _HEADER_spoolss
10
11 #define PRINTER_ENUM_ICONMASK   ( (PRINTER_ENUM_ICON1|PRINTER_ENUM_ICON2|PRINTER_ENUM_ICON3|PRINTER_ENUM_ICON4|PRINTER_ENUM_ICON5|PRINTER_ENUM_ICON6|PRINTER_ENUM_ICON7|PRINTER_ENUM_ICON8) )
12 #define SPOOLSS_ARCHITECTURE_NT_X86     ( "Windows NT x86" )
13 #define PRINTER_CHANGE_PRINTER  ( 0x000000FF )
14 #define PRINTER_CHANGE_JOB      ( 0x0000FF00 )
15 #define PRINTER_CHANGE_FORM     ( (PRINTER_CHANGE_ADD_FORM|PRINTER_CHANGE_SET_FORM|PRINTER_CHANGE_DELETE_FORM) )
16 #define PRINTER_CHANGE_PORT     ( (PRINTER_CHANGE_ADD_PORT|PRINTER_CHANGE_CONFIGURE_PORT|PRINTER_CHANGE_DELETE_PORT) )
17 #define PRINTER_CHANGE_PRINT_PROCESSOR  ( 0x07000000 )
18 #define PRINTER_CHANGE_PRINTER_DRIVER   ( (PRINTER_CHANGE_ADD_PRINTER_DRIVER|PRINTER_CHANGE_SET_PRINTER_DRIVER|PRINTER_CHANGE_DELETE_PRINTER_DRIVER) )
19 #define PRINTER_CHANGE_ALL      ( (PRINTER_CHANGE_PRINTER|PRINTER_CHANGE_JOB|PRINTER_CHANGE_FORM|PRINTER_CHANGE_PORT|PRINTER_CHANGE_PRINT_PROCESSOR|PRINTER_CHANGE_PRINTER_DRIVER) )
20 #define SERVER_ALL_ACCESS       ( SEC_STD_REQUIRED|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
21 #define SERVER_READ     ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
22 #define SERVER_WRITE    ( STANDARD_RIGHTS_WRITE_ACCESS|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
23 #define SERVER_EXECUTE  ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
24 #define PRINTER_ALL_ACCESS      ( SEC_STD_REQUIRED|PRINTER_ACCESS_ADMINISTER|PRINTER_ACCESS_USE )
25 #define PRINTER_READ    ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
26 #define PRINTER_WRITE   ( STANDARD_RIGHTS_WRITE_ACCESS|PRINTER_ACCESS_USE )
27 #define PRINTER_EXECUTE ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
28 #define JOB_ALL_ACCESS  ( SEC_STD_REQUIRED|JOB_ACCESS_ADMINISTER )
29 #define JOB_READ        ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
30 #define JOB_WRITE       ( STANDARD_RIGHTS_WRITE_ACCESS|JOB_ACCESS_ADMINISTER )
31 #define JOB_EXECUTE     ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
32 #define PRINTER_ACE_FULL_CONTROL        ( SEC_GENERIC_ALL|PRINTER_ALL_ACCESS )
33 #define PRINTER_ACE_MANAGE_DOCUMENTS    ( SEC_GENERIC_ALL|READ_CONTROL_ACCESS )
34 #define PRINTER_ACE_PRINT       ( GENERIC_EXECUTE_ACCESS|READ_CONTROL_ACCESS|PRINTER_ACCESS_USE )
35 struct spoolss_Time {
36         uint16_t year;
37         uint16_t month;
38         uint16_t day_of_week;
39         uint16_t day;
40         uint16_t hour;
41         uint16_t minute;
42         uint16_t second;
43         uint16_t millisecond;
44 }/* [gensize] */;
45
46 struct spoolss_TimeCtr {
47         uint32_t size;/* [value(ndr_size_spoolss_Time(time,ndr->iconv_convenience,ndr->flags))] */
48         struct spoolss_Time *time;/* [unique] */
49 };
50
51 enum spoolss_ProcessorArchitecture
52 #ifndef USE_UINT_ENUMS
53  {
54         PROCESSOR_ARCHITECTURE_INTEL=0x0000,
55         PROCESSOR_ARCHITECTURE_IA64=0x0006,
56         PROCESSOR_ARCHITECTURE_AMD64=0x0009
57 }
58 #else
59  { __donnot_use_enum_spoolss_ProcessorArchitecture=0x7FFFFFFF}
60 #define PROCESSOR_ARCHITECTURE_INTEL ( 0x0000 )
61 #define PROCESSOR_ARCHITECTURE_IA64 ( 0x0006 )
62 #define PROCESSOR_ARCHITECTURE_AMD64 ( 0x0009 )
63 #endif
64 ;
65
66 enum spoolss_ProcessorType
67 #ifndef USE_UINT_ENUMS
68  {
69         PROCESSOR_INTEL_386=0x00000182,
70         PROCESSOR_INTEL_486=0x000001E6,
71         PROCESSOR_INTEL_PENTIUM=0x0000024A,
72         PROCESSOR_INTEL_IA64=0x00000898,
73         PROCESSOR_AMD_X8664=0x000022A0
74 }
75 #else
76  { __donnot_use_enum_spoolss_ProcessorType=0x7FFFFFFF}
77 #define PROCESSOR_INTEL_386 ( 0x00000182 )
78 #define PROCESSOR_INTEL_486 ( 0x000001E6 )
79 #define PROCESSOR_INTEL_PENTIUM ( 0x0000024A )
80 #define PROCESSOR_INTEL_IA64 ( 0x00000898 )
81 #define PROCESSOR_AMD_X8664 ( 0x000022A0 )
82 #endif
83 ;
84
85 enum spoolss_MajorVersion
86 #ifndef USE_UINT_ENUMS
87  {
88         SPOOLSS_MAJOR_VERSION_NT4_95_98_ME=0x00000004,
89         SPOOLSS_MAJOR_VERSION_2000_2003_XP=0x00000005,
90         SPOOLSS_MAJOR_VERSION_2008_VISTA=0x00000006
91 }
92 #else
93  { __donnot_use_enum_spoolss_MajorVersion=0x7FFFFFFF}
94 #define SPOOLSS_MAJOR_VERSION_NT4_95_98_ME ( 0x00000004 )
95 #define SPOOLSS_MAJOR_VERSION_2000_2003_XP ( 0x00000005 )
96 #define SPOOLSS_MAJOR_VERSION_2008_VISTA ( 0x00000006 )
97 #endif
98 ;
99
100 enum spoolss_MinorVersion
101 #ifndef USE_UINT_ENUMS
102  {
103         SPOOLSS_MINOR_VERSION_0=0x00000000,
104         SPOOLSS_MINOR_VERSION_XP=0x00000001,
105         SPOOLSS_MINOR_VERSION_2003_XP64=0x00000002,
106         SPOOLSS_MINOR_VERSION_98=0x0000000a,
107         SPOOLSS_MINOR_VERSION_ME=0x0000005a
108 }
109 #else
110  { __donnot_use_enum_spoolss_MinorVersion=0x7FFFFFFF}
111 #define SPOOLSS_MINOR_VERSION_0 ( 0x00000000 )
112 #define SPOOLSS_MINOR_VERSION_XP ( 0x00000001 )
113 #define SPOOLSS_MINOR_VERSION_2003_XP64 ( 0x00000002 )
114 #define SPOOLSS_MINOR_VERSION_98 ( 0x0000000a )
115 #define SPOOLSS_MINOR_VERSION_ME ( 0x0000005a )
116 #endif
117 ;
118
119 struct spoolss_PrinterInfo0 {
120         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
121         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
122         uint32_t cjobs;
123         uint32_t total_jobs;
124         uint32_t total_bytes;
125         struct spoolss_Time time;
126         uint32_t global_counter;
127         uint32_t total_pages;
128         uint32_t version;
129         uint32_t free_build;
130         uint32_t spooling;
131         uint32_t max_spooling;
132         uint32_t session_counter;
133         uint32_t num_error_out_of_paper;
134         uint32_t num_error_not_ready;
135         uint32_t job_error;
136         uint32_t number_of_processors;
137         enum spoolss_ProcessorType processor_type;
138         uint32_t high_part_total_bytes;
139         uint32_t change_id;
140         WERROR last_error;
141         uint32_t status;
142         uint32_t enumerate_network_printers;
143         uint32_t c_setprinter;
144         enum spoolss_ProcessorArchitecture processor_architecture;
145         uint16_t processor_level;
146         uint32_t ref_ic;
147         uint32_t reserved2;
148         uint32_t reserved3;
149 };
150
151 /* bitmap spoolss_DeviceModeFields */
152 #define DEVMODE_ORIENTATION ( 0x00000001 )
153 #define DEVMODE_PAPERSIZE ( 0x00000002 )
154 #define DEVMODE_PAPERLENGTH ( 0x00000004 )
155 #define DEVMODE_PAPERWIDTH ( 0x00000008 )
156 #define DEVMODE_SCALE ( 0x00000010 )
157 #define DEVMODE_POSITION ( 0x00000020 )
158 #define DEVMODE_NUP ( 0x00000040 )
159 #define DEVMODE_COPIES ( 0x00000100 )
160 #define DEVMODE_DEFAULTSOURCE ( 0x00000200 )
161 #define DEVMODE_PRINTQUALITY ( 0x00000400 )
162 #define DEVMODE_COLOR ( 0x00000800 )
163 #define DEVMODE_DUPLEX ( 0x00001000 )
164 #define DEVMODE_YRESOLUTION ( 0x00002000 )
165 #define DEVMODE_TTOPTION ( 0x00004000 )
166 #define DEVMODE_COLLATE ( 0x00008000 )
167 #define DEVMODE_FORMNAME ( 0x00010000 )
168 #define DEVMODE_LOGPIXELS ( 0x00020000 )
169 #define DEVMODE_BITSPERPEL ( 0x00040000 )
170 #define DEVMODE_PELSWIDTH ( 0x00080000 )
171 #define DEVMODE_PELSHEIGHT ( 0x00100000 )
172 #define DEVMODE_DISPLAYFLAGS ( 0x00200000 )
173 #define DEVMODE_DISPLAYFREQUENCY ( 0x00400000 )
174 #define DEVMODE_ICMMETHOD ( 0x00800000 )
175 #define DEVMODE_ICMINTENT ( 0x01000000 )
176 #define DEVMODE_MEDIATYPE ( 0x02000000 )
177 #define DEVMODE_DITHERTYPE ( 0x04000000 )
178 #define DEVMODE_PANNINGWIDTH ( 0x08000000 )
179 #define DEVMODE_PANNINGHEIGHT ( 0x10000000 )
180
181 struct spoolss_DeviceMode {
182         const char *devicename;/* [charset(UTF16)] */
183         uint16_t specversion;
184         uint16_t driverversion;
185         uint16_t size;
186         uint16_t __driverextra_length;/* [value(r->driverextra_data.length)] */
187         uint32_t fields;
188         uint16_t orientation;
189         uint16_t papersize;
190         uint16_t paperlength;
191         uint16_t paperwidth;
192         uint16_t scale;
193         uint16_t copies;
194         uint16_t defaultsource;
195         uint16_t printquality;
196         uint16_t color;
197         uint16_t duplex;
198         uint16_t yresolution;
199         uint16_t ttoption;
200         uint16_t collate;
201         const char *formname;/* [charset(UTF16)] */
202         uint16_t logpixels;
203         uint32_t bitsperpel;
204         uint32_t pelswidth;
205         uint32_t pelsheight;
206         uint32_t displayflags;
207         uint32_t displayfrequency;
208         uint32_t icmmethod;
209         uint32_t icmintent;
210         uint32_t mediatype;
211         uint32_t dithertype;
212         uint32_t reserved1;
213         uint32_t reserved2;
214         uint32_t panningwidth;
215         uint32_t panningheight;
216         DATA_BLOB driverextra_data;/* [subcontext_size(__driverextra_length),subcontext(0),flag(LIBNDR_FLAG_REMAINING)] */
217 }/* [gensize,public] */;
218
219 /* bitmap spoolss_EnumPrinterFlags */
220 #define PRINTER_ENUM_DEFAULT ( 0x00000001 )
221 #define PRINTER_ENUM_LOCAL ( 0x00000002 )
222 #define PRINTER_ENUM_CONNECTIONS ( 0x00000004 )
223 #define PRINTER_ENUM_FAVORITE ( 0x00000004 )
224 #define PRINTER_ENUM_NAME ( 0x00000008 )
225 #define PRINTER_ENUM_REMOTE ( 0x00000010 )
226 #define PRINTER_ENUM_SHARED ( 0x00000020 )
227 #define PRINTER_ENUM_NETWORK ( 0x00000040 )
228 #define PRINTER_ENUM_EXPAND ( 0x00004000 )
229 #define PRINTER_ENUM_CONTAINER ( 0x00008000 )
230 #define PRINTER_ENUM_ICON1 ( 0x00010000 )
231 #define PRINTER_ENUM_ICON2 ( 0x00020000 )
232 #define PRINTER_ENUM_ICON3 ( 0x00040000 )
233 #define PRINTER_ENUM_ICON4 ( 0x00080000 )
234 #define PRINTER_ENUM_ICON5 ( 0x00100000 )
235 #define PRINTER_ENUM_ICON6 ( 0x00200000 )
236 #define PRINTER_ENUM_ICON7 ( 0x00400000 )
237 #define PRINTER_ENUM_ICON8 ( 0x00800000 )
238 #define PRINTER_ENUM_HIDE ( 0x01000000 )
239
240 struct spoolss_PrinterInfo1 {
241         uint32_t flags;
242         const char * name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
243         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
244         const char * comment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
245 };
246
247 /* bitmap spoolss_PrinterAttributes */
248 #define PRINTER_ATTRIBUTE_QUEUED ( 0x00000001 )
249 #define PRINTER_ATTRIBUTE_DIRECT ( 0x00000002 )
250 #define PRINTER_ATTRIBUTE_DEFAULT ( 0x00000004 )
251 #define PRINTER_ATTRIBUTE_SHARED ( 0x00000008 )
252 #define PRINTER_ATTRIBUTE_NETWORK ( 0x00000010 )
253 #define PRINTER_ATTRIBUTE_HIDDEN ( 0x00000020 )
254 #define PRINTER_ATTRIBUTE_LOCAL ( 0x00000040 )
255 #define PRINTER_ATTRIBUTE_ENABLE_DEVQ ( 0x00000080 )
256 #define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS ( 0x00000100 )
257 #define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST ( 0x00000200 )
258 #define PRINTER_ATTRIBUTE_WORK_OFFLINE ( 0x00000400 )
259 #define PRINTER_ATTRIBUTE_ENABLE_BIDI ( 0x00000800 )
260 #define PRINTER_ATTRIBUTE_RAW_ONLY ( 0x00001000 )
261 #define PRINTER_ATTRIBUTE_PUBLISHED ( 0x00002000 )
262 #define PRINTER_ATTRIBUTE_FAX ( 0x00004000 )
263 #define PRINTER_ATTRIBUTE_TS ( 0x00008000 )
264
265 /* bitmap spoolss_PrinterStatus */
266 #define PRINTER_STATUS_PAUSED ( 0x00000001 )
267 #define PRINTER_STATUS_ERROR ( 0x00000002 )
268 #define PRINTER_STATUS_PENDING_DELETION ( 0x00000004 )
269 #define PRINTER_STATUS_PAPER_JAM ( 0x00000008 )
270 #define PRINTER_STATUS_PAPER_OUT ( 0x00000010 )
271 #define PRINTER_STATUS_MANUAL_FEED ( 0x00000020 )
272 #define PRINTER_STATUS_PAPER_PROBLEM ( 0x00000040 )
273 #define PRINTER_STATUS_OFFLINE ( 0x00000080 )
274 #define PRINTER_STATUS_IO_ACTIVE ( 0x00000100 )
275 #define PRINTER_STATUS_BUSY ( 0x00000200 )
276 #define PRINTER_STATUS_PRINTING ( 0x00000400 )
277 #define PRINTER_STATUS_OUTPUT_BIN_FULL ( 0x00000800 )
278 #define PRINTER_STATUS_NOT_AVAILABLE ( 0x00001000 )
279 #define PRINTER_STATUS_WAITING ( 0x00002000 )
280 #define PRINTER_STATUS_PROCESSING ( 0x00004000 )
281 #define PRINTER_STATUS_INITIALIZING ( 0x00008000 )
282 #define PRINTER_STATUS_WARMING_UP ( 0x00010000 )
283 #define PRINTER_STATUS_TONER_LOW ( 0x00020000 )
284 #define PRINTER_STATUS_NO_TONER ( 0x00040000 )
285 #define PRINTER_STATUS_PAGE_PUNT ( 0x00080000 )
286 #define PRINTER_STATUS_USER_INTERVENTION ( 0x00100000 )
287 #define PRINTER_STATUS_OUT_OF_MEMORY ( 0x00200000 )
288 #define PRINTER_STATUS_DOOR_OPEN ( 0x00400000 )
289 #define PRINTER_STATUS_SERVER_UNKNOWN ( 0x00800000 )
290 #define PRINTER_STATUS_POWER_SAVE ( 0x01000000 )
291
292 struct spoolss_PrinterInfo2 {
293         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
294         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
295         const char * sharename;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
296         const char * portname;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
297         const char * drivername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
298         const char * comment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
299         const char * location;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
300         struct spoolss_DeviceMode *devmode;/* [relative,subcontext(0)] */
301         const char * sepfile;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
302         const char * printprocessor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
303         const char * datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
304         const char * parameters;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
305         struct security_descriptor *secdesc;/* [relative,subcontext(0)] */
306         uint32_t attributes;
307         uint32_t priority;
308         uint32_t defaultpriority;
309         uint32_t starttime;
310         uint32_t untiltime;
311         uint32_t status;
312         uint32_t cjobs;
313         uint32_t averageppm;
314 };
315
316 struct spoolss_PrinterInfo3 {
317         struct security_descriptor *secdesc;/* [relative,subcontext(0)] */
318 };
319
320 struct spoolss_PrinterInfo4 {
321         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
322         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
323         uint32_t attributes;
324 };
325
326 struct spoolss_PrinterInfo5 {
327         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
328         const char * portname;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
329         uint32_t attributes;
330         uint32_t device_not_selected_timeout;
331         uint32_t transmission_retry_timeout;
332 };
333
334 struct spoolss_PrinterInfo6 {
335         uint32_t status;
336 };
337
338 /* bitmap spoolss_DsPrintAction */
339 #define DSPRINT_PUBLISH ( 0x00000001 )
340 #define DSPRINT_UPDATE ( 0x00000002 )
341 #define DSPRINT_UNPUBLISH ( 0x00000004 )
342 #define DSPRINT_REPUBLISH ( 0x00000008 )
343 #define DSPRINT_PENDING ( 0x80000000 )
344
345 struct spoolss_PrinterInfo7 {
346         const char * guid;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
347         uint32_t action;
348 };
349
350 struct spoolss_DeviceModeInfo {
351         struct spoolss_DeviceMode *devmode;/* [relative,subcontext(0)] */
352 };
353
354 union spoolss_PrinterInfo {
355         struct spoolss_PrinterInfo0 info0;/* [case(0)] */
356         struct spoolss_PrinterInfo1 info1;/* [case] */
357         struct spoolss_PrinterInfo2 info2;/* [case(2)] */
358         struct spoolss_PrinterInfo3 info3;/* [case(3)] */
359         struct spoolss_PrinterInfo4 info4;/* [case(4)] */
360         struct spoolss_PrinterInfo5 info5;/* [case(5)] */
361         struct spoolss_PrinterInfo6 info6;/* [case(6)] */
362         struct spoolss_PrinterInfo7 info7;/* [case(7)] */
363         struct spoolss_DeviceModeInfo info8;/* [case(8)] */
364         struct spoolss_DeviceModeInfo info9;/* [case(9)] */
365 }/* [relative_base,nodiscriminant,public] */;
366
367 struct spoolss_DevmodeContainer {
368         uint32_t _ndr_size;/* [value(_ndr_size_spoolss_DeviceMode(devmode,ndr->iconv_convenience,ndr->flags))] */
369         struct spoolss_DeviceMode *devmode;/* [unique,subcontext_size(_ndr_size),subcontext(4)] */
370 };
371
372 struct spoolss_JobInfo1 {
373         uint32_t job_id;
374         const char * printer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
375         const char * server_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
376         const char * user_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
377         const char * document_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
378         const char * data_type;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
379         const char * text_status;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
380         uint32_t status;
381         uint32_t priority;
382         uint32_t position;
383         uint32_t total_pages;
384         uint32_t pages_printed;
385         struct spoolss_Time time;
386 };
387
388 union spoolss_JobInfo {
389         struct spoolss_JobInfo1 info1;/* [case] */
390 }/* [relative_base,nodiscriminant,public] */;
391
392 struct spoolss_JobInfoContainer {
393         uint32_t level;
394         union spoolss_JobInfo info;/* [switch_is(level)] */
395 };
396
397 enum spoolss_JobControl
398 #ifndef USE_UINT_ENUMS
399  {
400         SPOOLSS_JOB_CONTROL_PAUSE=1,
401         SPOOLSS_JOB_CONTROL_RESUME=2,
402         SPOOLSS_JOB_CONTROL_CANCEL=3,
403         SPOOLSS_JOB_CONTROL_RESTART=4,
404         SPOOLSS_JOB_CONTROL_DELETE=5,
405         SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER=6,
406         SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED=7
407 }
408 #else
409  { __donnot_use_enum_spoolss_JobControl=0x7FFFFFFF}
410 #define SPOOLSS_JOB_CONTROL_PAUSE ( 1 )
411 #define SPOOLSS_JOB_CONTROL_RESUME ( 2 )
412 #define SPOOLSS_JOB_CONTROL_CANCEL ( 3 )
413 #define SPOOLSS_JOB_CONTROL_RESTART ( 4 )
414 #define SPOOLSS_JOB_CONTROL_DELETE ( 5 )
415 #define SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER ( 6 )
416 #define SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED ( 7 )
417 #endif
418 ;
419
420 enum spoolss_PrinterControl
421 #ifndef USE_UINT_ENUMS
422  {
423         SPOOLSS_PRINTER_CONTROL_UNPAUSE=0,
424         SPOOLSS_PRINTER_CONTROL_PAUSE=1,
425         SPOOLSS_PRINTER_CONTROL_RESUME=2,
426         SPOOLSS_PRINTER_CONTROL_PURGE=3,
427         SPOOLSS_PRINTER_CONTROL_SET_STATUS=4
428 }
429 #else
430  { __donnot_use_enum_spoolss_PrinterControl=0x7FFFFFFF}
431 #define SPOOLSS_PRINTER_CONTROL_UNPAUSE ( 0 )
432 #define SPOOLSS_PRINTER_CONTROL_PAUSE ( 1 )
433 #define SPOOLSS_PRINTER_CONTROL_RESUME ( 2 )
434 #define SPOOLSS_PRINTER_CONTROL_PURGE ( 3 )
435 #define SPOOLSS_PRINTER_CONTROL_SET_STATUS ( 4 )
436 #endif
437 ;
438
439 struct spoolss_SetPrinterInfo0 {
440         const char *servername;/* [unique,charset(UTF16)] */
441         const char *printername;/* [unique,charset(UTF16)] */
442         uint32_t cjobs;
443         uint32_t total_jobs;
444         uint32_t total_bytes;
445         struct spoolss_Time time;
446         uint32_t global_counter;
447         uint32_t total_pages;
448         uint32_t version;
449         uint32_t free_build;
450         uint32_t spooling;
451         uint32_t max_spooling;
452         uint32_t session_counter;
453         uint32_t num_error_out_of_paper;
454         uint32_t num_error_not_ready;
455         uint32_t job_error;
456         uint32_t number_of_processors;
457         enum spoolss_ProcessorType processor_type;
458         uint32_t high_part_total_bytes;
459         uint32_t change_id;
460         WERROR last_error;
461         uint32_t status;
462         uint32_t enumerate_network_printers;
463         uint32_t c_setprinter;
464         enum spoolss_ProcessorArchitecture processor_architecture;
465         uint16_t processor_level;
466         uint32_t ref_ic;
467         uint32_t reserved2;
468         uint32_t reserved3;
469 };
470
471 struct spoolss_SetPrinterInfo1 {
472         uint32_t flags;
473         const char *name;/* [unique,charset(UTF16)] */
474         const char *description;/* [unique,charset(UTF16)] */
475         const char *comment;/* [unique,charset(UTF16)] */
476 };
477
478 struct spoolss_SetPrinterInfo2 {
479         const char *servername;/* [unique,charset(UTF16)] */
480         const char *printername;/* [unique,charset(UTF16)] */
481         const char *sharename;/* [unique,charset(UTF16)] */
482         const char *portname;/* [unique,charset(UTF16)] */
483         const char *drivername;/* [unique,charset(UTF16)] */
484         const char *comment;/* [unique,charset(UTF16)] */
485         const char *location;/* [unique,charset(UTF16)] */
486         struct spoolss_DeviceMode *devmode;/* [unique,subcontext(0)] */
487         const char *sepfile;/* [unique,charset(UTF16)] */
488         const char *printprocessor;/* [unique,charset(UTF16)] */
489         const char *datatype;/* [unique,charset(UTF16)] */
490         const char *parameters;/* [unique,charset(UTF16)] */
491         struct security_descriptor *secdesc;/* [unique,subcontext(0)] */
492         uint32_t attributes;
493         uint32_t priority;
494         uint32_t defaultpriority;
495         uint32_t starttime;
496         uint32_t untiltime;
497         uint32_t status;
498         uint32_t cjobs;
499         uint32_t averageppm;
500 };
501
502 struct spoolss_SetPrinterInfo3 {
503         struct security_descriptor *secdesc;/* [unique] */
504 };
505
506 struct spoolss_SetPrinterInfo4 {
507         const char *printername;/* [unique,charset(UTF16)] */
508         const char *servername;/* [unique,charset(UTF16)] */
509         uint32_t attributes;
510 };
511
512 struct spoolss_SetPrinterInfo5 {
513         const char *printername;/* [unique,charset(UTF16)] */
514         const char *portname;/* [unique,charset(UTF16)] */
515         uint32_t attributes;
516         uint32_t device_not_selected_timeout;
517         uint32_t transmission_retry_timeout;
518 };
519
520 struct spoolss_SetPrinterInfo6 {
521         uint32_t status;
522 };
523
524 struct spoolss_SetPrinterInfo7 {
525         const char *guid;/* [unique,charset(UTF16)] */
526         uint32_t action;
527 };
528
529 union spoolss_SetPrinterInfo {
530         struct spoolss_SetPrinterInfo0 *info0;/* [unique,case(0)] */
531         struct spoolss_SetPrinterInfo1 *info1;/* [unique,case] */
532         struct spoolss_SetPrinterInfo2 *info2;/* [unique,case(2)] */
533         struct spoolss_SetPrinterInfo3 *info3;/* [unique,case(3)] */
534         struct spoolss_SetPrinterInfo4 *info4;/* [unique,case(4)] */
535         struct spoolss_SetPrinterInfo5 *info5;/* [unique,case(5)] */
536         struct spoolss_SetPrinterInfo6 *info6;/* [unique,case(6)] */
537         struct spoolss_SetPrinterInfo7 *info7;/* [unique,case(7)] */
538         struct spoolss_DeviceModeInfo *info8;/* [unique,case(8)] */
539         struct spoolss_DeviceModeInfo *info9;/* [unique,case(9)] */
540 }/* [switch_type(uint32)] */;
541
542 struct spoolss_SetPrinterInfoCtr {
543         uint32_t level;
544         union spoolss_SetPrinterInfo info;/* [switch_is(level)] */
545 };
546
547 struct spoolss_StringArray {
548         uint32_t _ndr_size;/* [value((ndr_size_spoolss_StringArray(r,ndr->iconv_convenience,ndr->flags)-4)/2)] */
549         const char ** string;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
550 }/* [public] */;
551
552 struct spoolss_AddDriverInfo1 {
553         const char *driver_name;/* [unique,charset(UTF16)] */
554 };
555
556 enum spoolss_DriverOSVersion
557 #ifndef USE_UINT_ENUMS
558  {
559         SPOOLSS_DRIVER_VERSION_9X=0,
560         SPOOLSS_DRIVER_VERSION_NT35=1,
561         SPOOLSS_DRIVER_VERSION_NT4=2,
562         SPOOLSS_DRIVER_VERSION_200X=3
563 }
564 #else
565  { __donnot_use_enum_spoolss_DriverOSVersion=0x7FFFFFFF}
566 #define SPOOLSS_DRIVER_VERSION_9X ( 0 )
567 #define SPOOLSS_DRIVER_VERSION_NT35 ( 1 )
568 #define SPOOLSS_DRIVER_VERSION_NT4 ( 2 )
569 #define SPOOLSS_DRIVER_VERSION_200X ( 3 )
570 #endif
571 ;
572
573 struct spoolss_AddDriverInfo2 {
574         enum spoolss_DriverOSVersion version;
575         const char *driver_name;/* [unique,charset(UTF16)] */
576         const char *architecture;/* [unique,charset(UTF16)] */
577         const char *driver_path;/* [unique,charset(UTF16)] */
578         const char *data_file;/* [unique,charset(UTF16)] */
579         const char *config_file;/* [unique,charset(UTF16)] */
580 };
581
582 struct spoolss_AddDriverInfo3 {
583         enum spoolss_DriverOSVersion version;
584         const char *driver_name;/* [unique,charset(UTF16)] */
585         const char *architecture;/* [unique,charset(UTF16)] */
586         const char *driver_path;/* [unique,charset(UTF16)] */
587         const char *data_file;/* [unique,charset(UTF16)] */
588         const char *config_file;/* [unique,charset(UTF16)] */
589         const char *help_file;/* [unique,charset(UTF16)] */
590         const char *monitor_name;/* [unique,charset(UTF16)] */
591         const char *default_datatype;/* [unique,charset(UTF16)] */
592         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
593         struct spoolss_StringArray *dependent_files;/* [unique] */
594 };
595
596 struct spoolss_AddDriverInfo4 {
597         enum spoolss_DriverOSVersion version;
598         const char *driver_name;/* [unique,charset(UTF16)] */
599         const char *architecture;/* [unique,charset(UTF16)] */
600         const char *driver_path;/* [unique,charset(UTF16)] */
601         const char *data_file;/* [unique,charset(UTF16)] */
602         const char *config_file;/* [unique,charset(UTF16)] */
603         const char *help_file;/* [unique,charset(UTF16)] */
604         const char *monitor_name;/* [unique,charset(UTF16)] */
605         const char *default_datatype;/* [unique,charset(UTF16)] */
606         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
607         struct spoolss_StringArray *dependent_files;/* [unique] */
608         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
609         struct spoolss_StringArray *previous_names;/* [unique] */
610 };
611
612 struct spoolss_AddDriverInfo5 {
613         enum spoolss_DriverOSVersion version;
614         const char *driver_name;/* [unique,charset(UTF16)] */
615         const char *architecture;/* [unique,charset(UTF16)] */
616         const char *driver_path;/* [unique,charset(UTF16)] */
617         const char *data_file;/* [unique,charset(UTF16)] */
618         const char *config_file;/* [unique,charset(UTF16)] */
619         uint32_t driver_attributes;
620         uint32_t config_version;
621         uint32_t driver_version;
622 };
623
624 struct spoolss_AddDriverInfo6 {
625         enum spoolss_DriverOSVersion version;
626         const char *driver_name;/* [unique,charset(UTF16)] */
627         const char *architecture;/* [unique,charset(UTF16)] */
628         const char *driver_path;/* [unique,charset(UTF16)] */
629         const char *data_file;/* [unique,charset(UTF16)] */
630         const char *config_file;/* [unique,charset(UTF16)] */
631         const char *help_file;/* [unique,charset(UTF16)] */
632         const char *monitor_name;/* [unique,charset(UTF16)] */
633         const char *default_datatype;/* [unique,charset(UTF16)] */
634         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
635         struct spoolss_StringArray *dependent_files;/* [unique] */
636         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
637         struct spoolss_StringArray *previous_names;/* [unique] */
638         NTTIME driver_data;
639         uint64_t driver_version;
640         const char *manufacturer_name;/* [unique,charset(UTF16)] */
641         const char *manufacturer_url;/* [unique,charset(UTF16)] */
642         const char *hardware_id;/* [unique,charset(UTF16)] */
643         const char *provider;/* [unique,charset(UTF16)] */
644 };
645
646 struct spoolss_AddDriverInfo8 {
647         enum spoolss_DriverOSVersion version;
648         const char *driver_name;/* [unique,charset(UTF16)] */
649         const char *architecture;/* [unique,charset(UTF16)] */
650         const char *driver_path;/* [unique,charset(UTF16)] */
651         const char *data_file;/* [unique,charset(UTF16)] */
652         const char *config_file;/* [unique,charset(UTF16)] */
653         const char *help_file;/* [unique,charset(UTF16)] */
654         const char *monitor_name;/* [unique,charset(UTF16)] */
655         const char *default_datatype;/* [unique,charset(UTF16)] */
656         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
657         struct spoolss_StringArray *dependent_files;/* [unique] */
658         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
659         struct spoolss_StringArray *previous_names;/* [unique] */
660         NTTIME driver_data;
661         uint64_t driver_version;
662         const char *manufacturer_name;/* [unique,charset(UTF16)] */
663         const char *manufacturer_url;/* [unique,charset(UTF16)] */
664         const char *hardware_id;/* [unique,charset(UTF16)] */
665         const char *provider;/* [unique,charset(UTF16)] */
666         const char *print_processor;/* [unique,charset(UTF16)] */
667         const char *vendor_setup;/* [unique,charset(UTF16)] */
668         uint32_t _ndr_size_color_profiles;/* [value(((ndr_size_spoolss_StringArray(color_profiles,ndr->iconv_convenience,ndr->flags)-4)/2))] */
669         struct spoolss_StringArray *color_profiles;/* [unique] */
670         const char *inf_path;/* [unique,charset(UTF16)] */
671         uint32_t printer_driver_attributes;
672         uint32_t _ndr_size_core_driver_dependencies;/* [value(((ndr_size_spoolss_StringArray(core_driver_dependencies,ndr->iconv_convenience,ndr->flags)-4)/2))] */
673         struct spoolss_StringArray *core_driver_dependencies;/* [unique] */
674         NTTIME min_inbox_driver_ver_date;
675         uint64_t min_inbox_driver_ver_version;
676 };
677
678 union spoolss_AddDriverInfo {
679         struct spoolss_AddDriverInfo1 *info1;/* [unique,case] */
680         struct spoolss_AddDriverInfo2 *info2;/* [unique,case(2)] */
681         struct spoolss_AddDriverInfo3 *info3;/* [unique,case(3)] */
682         struct spoolss_AddDriverInfo4 *info4;/* [unique,case(4)] */
683         struct spoolss_AddDriverInfo6 *info6;/* [unique,case(6)] */
684         struct spoolss_AddDriverInfo8 *info8;/* [unique,case(8)] */
685 }/* [switch_type(uint32)] */;
686
687 struct spoolss_AddDriverInfoCtr {
688         uint32_t level;
689         union spoolss_AddDriverInfo info;/* [switch_is(level)] */
690 };
691
692 struct spoolss_DriverInfo1 {
693         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
694 };
695
696 struct spoolss_DriverInfo2 {
697         enum spoolss_DriverOSVersion version;
698         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
699         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
700         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
701         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
702         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
703 };
704
705 struct spoolss_DriverInfo3 {
706         enum spoolss_DriverOSVersion version;
707         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
708         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
709         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
710         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
711         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
712         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
713         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
714         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
715         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
716 };
717
718 struct spoolss_DriverInfo4 {
719         enum spoolss_DriverOSVersion version;
720         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
721         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
722         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
723         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
724         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
725         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
726         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
727         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
728         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
729         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
730 };
731
732 struct spoolss_DriverInfo5 {
733         enum spoolss_DriverOSVersion version;
734         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
735         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
736         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
737         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
738         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
739         uint32_t driver_attributes;
740         uint32_t config_version;
741         uint32_t driver_version;
742 };
743
744 struct spoolss_DriverInfo6 {
745         enum spoolss_DriverOSVersion version;
746         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
747         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
748         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
749         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
750         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
751         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
752         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
753         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
754         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
755         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
756         NTTIME driver_data;
757         uint64_t driver_version;
758         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
759         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
760         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
761         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
762 };
763
764 struct spoolss_DriverInfo8 {
765         enum spoolss_DriverOSVersion version;
766         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
767         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
768         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
769         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
770         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
771         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
772         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
773         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
774         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
775         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
776         NTTIME driver_data;
777         uint64_t driver_version;
778         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
779         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
780         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
781         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
782         const char * print_processor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
783         const char * vendor_setup;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
784         const char ** color_profiles;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
785         const char * inf_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
786         uint32_t printer_driver_attributes;
787         const char ** core_driver_dependencies;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
788         NTTIME min_inbox_driver_ver_date;
789         uint64_t min_inbox_driver_ver_version;
790 };
791
792 union spoolss_DriverInfo {
793         struct spoolss_DriverInfo1 info1;/* [case] */
794         struct spoolss_DriverInfo2 info2;/* [case(2)] */
795         struct spoolss_DriverInfo3 info3;/* [case(3)] */
796         struct spoolss_DriverInfo4 info4;/* [case(4)] */
797         struct spoolss_DriverInfo5 info5;/* [case(5)] */
798         struct spoolss_DriverInfo6 info6;/* [case(6)] */
799         struct spoolss_DriverInfo8 info8;/* [case(8)] */
800 }/* [relative_base,nodiscriminant,public] */;
801
802 struct spoolss_DriverDirectoryInfo1 {
803         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
804 }/* [gensize,public] */;
805
806 union spoolss_DriverDirectoryInfo {
807         struct spoolss_DriverDirectoryInfo1 info1;/* [case] */
808 }/* [gensize,relative_base,nodiscriminant,public] */;
809
810 struct spoolss_PrintProcessorInfo1 {
811         const char * print_processor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
812 };
813
814 union spoolss_PrintProcessorInfo {
815         struct spoolss_PrintProcessorInfo1 info1;/* [case] */
816 }/* [relative_base,nodiscriminant,public] */;
817
818 struct spoolss_PrintProcessorDirectoryInfo1 {
819         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
820 }/* [gensize,public] */;
821
822 union spoolss_PrintProcessorDirectoryInfo {
823         struct spoolss_PrintProcessorDirectoryInfo1 info1;/* [case] */
824 }/* [gensize,relative_base,nodiscriminant,public] */;
825
826 struct spoolss_DocumentInfo1 {
827         const char *document_name;/* [unique,charset(UTF16)] */
828         const char *output_file;/* [unique,charset(UTF16)] */
829         const char *datatype;/* [unique,charset(UTF16)] */
830 };
831
832 union spoolss_DocumentInfo {
833         struct spoolss_DocumentInfo1 *info1;/* [unique,case] */
834 }/* [switch_type(uint32)] */;
835
836 struct spoolss_OSVersion {
837         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersion(r,ndr->iconv_convenience,ndr->flags))] */
838         uint32_t major;
839         uint32_t minor;
840         uint32_t build;
841         uint32_t unknown;/* [value(2)] */
842         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
843 }/* [gensize,public] */;
844
845 struct spoolss_OSVersionEx {
846         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersionEx(r,ndr->iconv_convenience,ndr->flags))] */
847         uint32_t major;
848         uint32_t minor;
849         uint32_t build;
850         uint32_t unknown1;/* [value(2)] */
851         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
852         uint32_t unknown2;
853         uint32_t unknown3;
854 }/* [gensize,public] */;
855
856 enum spoolss_PrinterDataType
857 #ifndef USE_UINT_ENUMS
858  {
859         SPOOLSS_PRINTER_DATA_TYPE_NULL=0,
860         SPOOLSS_PRINTER_DATA_TYPE_STRING=1,
861         SPOOLSS_PRINTER_DATA_TYPE_BINARY=3,
862         SPOOLSS_PRINTER_DATA_TYPE_UINT32=4,
863         SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY=7
864 }
865 #else
866  { __donnot_use_enum_spoolss_PrinterDataType=0x7FFFFFFF}
867 #define SPOOLSS_PRINTER_DATA_TYPE_NULL ( 0 )
868 #define SPOOLSS_PRINTER_DATA_TYPE_STRING ( 1 )
869 #define SPOOLSS_PRINTER_DATA_TYPE_BINARY ( 3 )
870 #define SPOOLSS_PRINTER_DATA_TYPE_UINT32 ( 4 )
871 #define SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY ( 7 )
872 #endif
873 ;
874
875 union spoolss_PrinterData {
876         const char * string;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(SPOOLSS_PRINTER_DATA_TYPE_STRING)] */
877         DATA_BLOB binary;/* [flag(LIBNDR_FLAG_REMAINING),case(SPOOLSS_PRINTER_DATA_TYPE_BINARY)] */
878         uint32_t value;/* [case(SPOOLSS_PRINTER_DATA_TYPE_UINT32)] */
879         const char ** string_array;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY)] */
880         DATA_BLOB data;/* [flag(LIBNDR_FLAG_REMAINING),default] */
881 }/* [gensize,public,nodiscriminant] */;
882
883 enum spoolss_FormFlags
884 #ifndef USE_UINT_ENUMS
885  {
886         SPOOLSS_FORM_USER=0,
887         SPOOLSS_FORM_BUILTIN=1,
888         SPOOLSS_FORM_PRINTER=2
889 }
890 #else
891  { __donnot_use_enum_spoolss_FormFlags=0x7FFFFFFF}
892 #define SPOOLSS_FORM_USER ( 0 )
893 #define SPOOLSS_FORM_BUILTIN ( 1 )
894 #define SPOOLSS_FORM_PRINTER ( 2 )
895 #endif
896 ;
897
898 struct spoolss_FormSize {
899         uint32_t width;
900         uint32_t height;
901 };
902
903 struct spoolss_FormArea {
904         uint32_t left;
905         uint32_t top;
906         uint32_t right;
907         uint32_t bottom;
908 };
909
910 struct spoolss_FormInfo1 {
911         enum spoolss_FormFlags flags;
912         const char * form_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
913         struct spoolss_FormSize size;
914         struct spoolss_FormArea area;
915 };
916
917 union spoolss_FormInfo {
918         struct spoolss_FormInfo1 info1;/* [case] */
919 }/* [relative_base,gensize,public,nodiscriminant] */;
920
921 struct spoolss_AddFormInfo1 {
922         enum spoolss_FormFlags flags;
923         const char *form_name;/* [unique,charset(UTF16)] */
924         struct spoolss_FormSize size;
925         struct spoolss_FormArea area;
926 };
927
928 union spoolss_AddFormInfo {
929         struct spoolss_AddFormInfo1 *info1;/* [unique,case] */
930 }/* [switch_type(uint32)] */;
931
932 struct spoolss_PortInfo1 {
933         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
934 };
935
936 /* bitmap spoolss_PortType */
937 #define SPOOLSS_PORT_TYPE_WRITE ( 0x00000001 )
938 #define SPOOLSS_PORT_TYPE_READ ( 0x00000002 )
939 #define SPOOLSS_PORT_TYPE_REDIRECTED ( 0x00000004 )
940 #define SPOOLSS_PORT_TYPE_NET_ATTACHED ( 0x00000008 )
941
942 struct spoolss_PortInfo2 {
943         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
944         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
945         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
946         uint32_t port_type;
947         uint32_t reserved;
948 };
949
950 union spoolss_PortInfo {
951         struct spoolss_PortInfo1 info1;/* [case] */
952         struct spoolss_PortInfo2 info2;/* [case(2)] */
953 }/* [relative_base,nodiscriminant,public] */;
954
955 struct spoolss_MonitorInfo1 {
956         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
957 };
958
959 struct spoolss_MonitorInfo2 {
960         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
961         const char * environment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
962         const char * dll_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
963 };
964
965 union spoolss_MonitorInfo {
966         struct spoolss_MonitorInfo1 info1;/* [case] */
967         struct spoolss_MonitorInfo2 info2;/* [case(2)] */
968 }/* [relative_base,nodiscriminant,public] */;
969
970 /* bitmap spoolss_PrinterChangeFlags */
971 #define PRINTER_CHANGE_ADD_PRINTER ( 0x00000001 )
972 #define PRINTER_CHANGE_SET_PRINTER ( 0x00000002 )
973 #define PRINTER_CHANGE_DELETE_PRINTER ( 0x00000004 )
974 #define PRINTER_CHANGE_FAILED_CONNECTION_PRINTER ( 0x00000008 )
975 #define PRINTER_CHANGE_ADD_JOB ( 0x00000100 )
976 #define PRINTER_CHANGE_SET_JOB ( 0x00000200 )
977 #define PRINTER_CHANGE_DELETE_JOB ( 0x00000400 )
978 #define PRINTER_CHANGE_WRITE_JOB ( 0x00000800 )
979 #define PRINTER_CHANGE_ADD_FORM ( 0x00010000 )
980 #define PRINTER_CHANGE_SET_FORM ( 0x00020000 )
981 #define PRINTER_CHANGE_DELETE_FORM ( 0x00040000 )
982 #define PRINTER_CHANGE_ADD_PORT ( 0x00100000 )
983 #define PRINTER_CHANGE_CONFIGURE_PORT ( 0x00200000 )
984 #define PRINTER_CHANGE_DELETE_PORT ( 0x00400000 )
985 #define PRINTER_CHANGE_ADD_PRINT_PROCESSOR ( 0x01000000 )
986 #define PRINTER_CHANGE_DELETE_PRINT_PROCESSOR ( 0x04000000 )
987 #define PRINTER_CHANGE_SERVER ( 0x08000000 )
988 #define PRINTER_CHANGE_ADD_PRINTER_DRIVER ( 0x10000000 )
989 #define PRINTER_CHANGE_SET_PRINTER_DRIVER ( 0x20000000 )
990 #define PRINTER_CHANGE_DELETE_PRINTER_DRIVER ( 0x40000000 )
991 #define PRINTER_CHANGE_TIMEOUT ( 0x80000000 )
992
993 enum spoolss_Field
994 #ifndef USE_UINT_ENUMS
995  {
996         SPOOLSS_FIELD_SERVER_NAME=0,
997         SPOOLSS_FIELD_PRINTER_NAME=1,
998         SPOOLSS_FIELD_SHARE_NAME=2,
999         SPOOLSS_FIELD_PORT_NAME=3,
1000         SPOOLSS_FIELD_DRIVER_NAME=4,
1001         SPOOLSS_FIELD_COMMENT=5,
1002         SPOOLSS_FIELD_LOCATION=6,
1003         SPOOLSS_FIELD_DEVMODE=7,
1004         SPOOLSS_FIELD_SEPFILE=8,
1005         SPOOLSS_FIELD_PRINT_PROCESSOR=9,
1006         SPOOLSS_FIELD_PARAMETERS=10,
1007         SPOOLSS_FIELD_DATATYPE=11,
1008         SPOOLSS_FIELD_SECURITY_DESCRIPTOR=12,
1009         SPOOLSS_FIELD_ATTRIBUTES=13,
1010         SPOOLSS_FIELD_PRIORITY=14,
1011         SPOOLSS_FIELD_DEFAULT_PRIORITY=15,
1012         SPOOLSS_FIELD_START_TIME=16,
1013         SPOOLSS_FIELD_UNTIL_TIME=17,
1014         SPOOLSS_FIELD_STATUS=18,
1015         SPOOLSS_FIELD_STATUS_STRING=19,
1016         SPOOLSS_FIELD_CJOBS=20,
1017         SPOOLSS_FIELD_AVERAGE_PPM=21,
1018         SPOOLSS_FIELD_TOTAL_PAGES=22,
1019         SPOOLSS_FIELD_PAGES_PRINTED=23,
1020         SPOOLSS_FIELD_TOTAL_BYTES=24,
1021         SPOOLSS_FIELD_BYTES_PRINTED=25
1022 }
1023 #else
1024  { __donnot_use_enum_spoolss_Field=0x7FFFFFFF}
1025 #define SPOOLSS_FIELD_SERVER_NAME ( 0 )
1026 #define SPOOLSS_FIELD_PRINTER_NAME ( 1 )
1027 #define SPOOLSS_FIELD_SHARE_NAME ( 2 )
1028 #define SPOOLSS_FIELD_PORT_NAME ( 3 )
1029 #define SPOOLSS_FIELD_DRIVER_NAME ( 4 )
1030 #define SPOOLSS_FIELD_COMMENT ( 5 )
1031 #define SPOOLSS_FIELD_LOCATION ( 6 )
1032 #define SPOOLSS_FIELD_DEVMODE ( 7 )
1033 #define SPOOLSS_FIELD_SEPFILE ( 8 )
1034 #define SPOOLSS_FIELD_PRINT_PROCESSOR ( 9 )
1035 #define SPOOLSS_FIELD_PARAMETERS ( 10 )
1036 #define SPOOLSS_FIELD_DATATYPE ( 11 )
1037 #define SPOOLSS_FIELD_SECURITY_DESCRIPTOR ( 12 )
1038 #define SPOOLSS_FIELD_ATTRIBUTES ( 13 )
1039 #define SPOOLSS_FIELD_PRIORITY ( 14 )
1040 #define SPOOLSS_FIELD_DEFAULT_PRIORITY ( 15 )
1041 #define SPOOLSS_FIELD_START_TIME ( 16 )
1042 #define SPOOLSS_FIELD_UNTIL_TIME ( 17 )
1043 #define SPOOLSS_FIELD_STATUS ( 18 )
1044 #define SPOOLSS_FIELD_STATUS_STRING ( 19 )
1045 #define SPOOLSS_FIELD_CJOBS ( 20 )
1046 #define SPOOLSS_FIELD_AVERAGE_PPM ( 21 )
1047 #define SPOOLSS_FIELD_TOTAL_PAGES ( 22 )
1048 #define SPOOLSS_FIELD_PAGES_PRINTED ( 23 )
1049 #define SPOOLSS_FIELD_TOTAL_BYTES ( 24 )
1050 #define SPOOLSS_FIELD_BYTES_PRINTED ( 25 )
1051 #endif
1052 ;
1053
1054 enum spoolss_NotifyType
1055 #ifndef USE_UINT_ENUMS
1056  {
1057         SPOOLSS_NOTIFY_PRINTER=0,
1058         SPOOLSS_NOTIFY_JOB=1
1059 }
1060 #else
1061  { __donnot_use_enum_spoolss_NotifyType=0x7FFFFFFF}
1062 #define SPOOLSS_NOTIFY_PRINTER ( 0 )
1063 #define SPOOLSS_NOTIFY_JOB ( 1 )
1064 #endif
1065 ;
1066
1067 struct spoolss_NotifyOptionType {
1068         enum spoolss_NotifyType type;
1069         uint16_t u1;
1070         uint32_t u2;
1071         uint32_t u3;
1072         uint32_t count;
1073         enum spoolss_Field *fields;/* [unique,size_is(count)] */
1074 };
1075
1076 /* bitmap spoolssNotifyOptionFlags */
1077 #define PRINTER_NOTIFY_OPTIONS_REFRESH ( 0x00000001 )
1078
1079 struct spoolss_NotifyOption {
1080         uint32_t version;/* [value(2)] */
1081         uint32_t flags;
1082         uint32_t count;
1083         struct spoolss_NotifyOptionType *types;/* [unique,size_is(count)] */
1084 };
1085
1086 struct spoolss_NotifyString {
1087         uint32_t size;
1088         const char *string;/* [unique,charset(UTF16),size_is(size/2)] */
1089 };
1090
1091 enum spoolss_NotifyTable
1092 #ifndef USE_UINT_ENUMS
1093  {
1094         NOTIFY_TABLE_DWORD=0x0001,
1095         NOTIFY_TABLE_STRING=0x0002,
1096         NOTIFY_TABLE_DEVMODE=0x0003,
1097         NOTIFY_TABLE_TIME=0x0004,
1098         NOTIFY_TABLE_SECURITYDESCRIPTOR=0x0005
1099 }
1100 #else
1101  { __donnot_use_enum_spoolss_NotifyTable=0x7FFFFFFF}
1102 #define NOTIFY_TABLE_DWORD ( 0x0001 )
1103 #define NOTIFY_TABLE_STRING ( 0x0002 )
1104 #define NOTIFY_TABLE_DEVMODE ( 0x0003 )
1105 #define NOTIFY_TABLE_TIME ( 0x0004 )
1106 #define NOTIFY_TABLE_SECURITYDESCRIPTOR ( 0x0005 )
1107 #endif
1108 ;
1109
1110 union spoolss_NotifyData {
1111         uint32_t integer[2];/* [case] */
1112         struct spoolss_NotifyString string;/* [case(2)] */
1113         struct spoolss_DevmodeContainer devmode;/* [case(3)] */
1114         struct spoolss_TimeCtr time;/* [case(4)] */
1115         struct sec_desc_buf sd;/* [case(5)] */
1116 }/* [switch_type(uint32)] */;
1117
1118 struct spoolss_Notify {
1119         enum spoolss_NotifyType type;
1120         enum spoolss_Field field;
1121         enum spoolss_NotifyTable variable_type;
1122         uint32_t job_id;
1123         union spoolss_NotifyData data;/* [switch_is(variable_type)] */
1124 };
1125
1126 struct spoolss_NotifyInfo {
1127         uint32_t version;/* [value(2)] */
1128         uint32_t flags;
1129         uint32_t count;
1130         struct spoolss_Notify *notifies;/* [size_is(count)] */
1131 };
1132
1133 union spoolss_ReplyPrinterInfo {
1134         struct spoolss_NotifyInfo *info0;/* [unique,case(0)] */
1135 }/* [switch_type(uint32)] */;
1136
1137 /* bitmap spoolss_PrinterNotifyFlags */
1138 #define PRINTER_NOTIFY_INFO_DISCARDED ( 0x00000001 )
1139 #define PRINTER_NOTIFY_INFO_DISCARDNOTED ( 0x00010000 )
1140 #define PRINTER_NOTIFY_INFO_COLOR_MISMATCH ( 0x00080000 )
1141
1142 struct spoolss_UserLevel1 {
1143         uint32_t size;
1144         const char *client;/* [unique,charset(UTF16)] */
1145         const char *user;/* [unique,charset(UTF16)] */
1146         uint32_t build;
1147         enum spoolss_MajorVersion major;
1148         enum spoolss_MinorVersion minor;
1149         enum spoolss_ProcessorArchitecture processor;
1150 };
1151
1152 struct spoolss_UserLevel2 {
1153         uint32_t not_used;
1154 };
1155
1156 struct spoolss_UserLevel3 {
1157         uint32_t size;
1158         uint32_t flags;
1159         uint32_t size2;
1160         const char *client;/* [unique,charset(UTF16)] */
1161         const char *user;/* [unique,charset(UTF16)] */
1162         uint32_t build;
1163         enum spoolss_MajorVersion major;
1164         enum spoolss_MinorVersion minor;
1165         enum spoolss_ProcessorArchitecture processor;
1166         uint64_t reserved;
1167 };
1168
1169 union spoolss_UserLevel {
1170         struct spoolss_UserLevel1 *level1;/* [unique,case] */
1171         struct spoolss_UserLevel2 *level2;/* [unique,case(2)] */
1172         struct spoolss_UserLevel3 *level3;/* [unique,case(3)] */
1173 }/* [switch_type(uint32)] */;
1174
1175 struct spoolss_UserLevelCtr {
1176         uint32_t level;
1177         union spoolss_UserLevel user_info;/* [switch_is(level)] */
1178 };
1179
1180 /* bitmap spoolss_AccessRights */
1181 #define SERVER_ACCESS_ADMINISTER ( 0x00000001 )
1182 #define SERVER_ACCESS_ENUMERATE ( 0x00000002 )
1183 #define PRINTER_ACCESS_ADMINISTER ( 0x00000004 )
1184 #define PRINTER_ACCESS_USE ( 0x00000008 )
1185 #define JOB_ACCESS_ADMINISTER ( 0x00000010 )
1186
1187 /* bitmap spoolss_DeleteDriverFlags */
1188 #define DPD_DELETE_UNUSED_FILES ( 0x00000001 )
1189 #define DPD_DELETE_SPECIFIC_VERSION ( 0x00000002 )
1190 #define DPD_DELETE_ALL_FILES ( 0x00000004 )
1191
1192 enum spoolss_PortProtocol
1193 #ifndef USE_UINT_ENUMS
1194  {
1195         PROTOCOL_RAWTCP_TYPE=1,
1196         PROTOCOL_LPR_TYPE=2
1197 }
1198 #else
1199  { __donnot_use_enum_spoolss_PortProtocol=0x7FFFFFFF}
1200 #define PROTOCOL_RAWTCP_TYPE ( 1 )
1201 #define PROTOCOL_LPR_TYPE ( 2 )
1202 #endif
1203 ;
1204
1205 struct spoolss_PortData1 {
1206         const char *portname;/* [charset(UTF16)] */
1207         uint32_t version;/* [value(0x00000001)] */
1208         enum spoolss_PortProtocol protocol;
1209         uint32_t size;/* [value(sizeof(r))] */
1210         uint32_t reserved;
1211         const char *hostaddress;/* [charset(UTF16)] */
1212         const char *snmpcommunity;/* [charset(UTF16)] */
1213         uint32_t dblspool;
1214         const char *queue;/* [charset(UTF16)] */
1215         const char *ip_address;/* [charset(UTF16)] */
1216         const char *hardware_address;/* [charset(UTF16)] */
1217         const char *device_type;/* [charset(UTF16)] */
1218         uint32_t port_number;
1219         uint32_t snmp_enabled;
1220         uint32_t snmp_dev_index;
1221 }/* [public] */;
1222
1223 struct spoolss_PortData2 {
1224         const char *portname;/* [charset(UTF16)] */
1225         uint32_t version;/* [value(0x00000002)] */
1226         enum spoolss_PortProtocol protocol;
1227         uint32_t size;/* [value(sizeof(r))] */
1228         uint32_t reserved;
1229         const char *hostaddress;/* [charset(UTF16)] */
1230         const char *snmpcommunity;/* [charset(UTF16)] */
1231         uint32_t dblspool;
1232         const char *queue;/* [charset(UTF16)] */
1233         const char *device_type;/* [charset(UTF16)] */
1234         uint32_t port_number;
1235         uint32_t snmp_enabled;
1236         uint32_t snmp_dev_index;
1237         uint32_t port_monitor_mib_index;
1238 }/* [public] */;
1239
1240 struct spoolss_MonitorUi {
1241         const char * dll_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1242 }/* [public] */;
1243
1244 /* bitmap spoolss_AddPrinterDriverExFlags */
1245 #define APD_STRICT_UPGRADE ( 0x00000001 )
1246 #define APD_STRICT_DOWNGRADE ( 0x00000002 )
1247 #define APD_COPY_ALL_FILES ( 0x00000004 )
1248 #define APD_COPY_NEW_FILES ( 0x00000008 )
1249 #define APD_COPY_FROM_DIRECTORY ( 0x00000010 )
1250 #define APD_DONT_COPY_FILES_TO_CLUSTER ( 0x00001000 )
1251 #define APD_COPY_TO_ALL_SPOOLERS ( 0x00002000 )
1252 #define APD_RETURN_BLOCKING_STATUS_CODE ( 0x00010000 )
1253
1254
1255 struct _spoolss_EnumPrinters {
1256         struct {
1257                 uint32_t flags;
1258                 const char *server;/* [unique,charset(UTF16)] */
1259                 uint32_t level;
1260                 DATA_BLOB *buffer;/* [unique] */
1261                 uint32_t offered;
1262         } in;
1263
1264         struct {
1265                 DATA_BLOB *info;/* [unique] */
1266                 uint32_t *needed;/* [ref] */
1267                 uint32_t *count;/* [ref] */
1268                 WERROR result;
1269         } out;
1270
1271 };
1272
1273
1274 struct __spoolss_EnumPrinters {
1275         struct {
1276                 uint32_t level;
1277                 uint32_t count;
1278         } in;
1279
1280         struct {
1281                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
1282         } out;
1283
1284 };
1285
1286
1287 struct spoolss_EnumPrinters {
1288         struct {
1289                 uint32_t flags;
1290                 const char *server;/* [unique,charset(UTF16)] */
1291                 uint32_t level;
1292                 DATA_BLOB *buffer;/* [unique] */
1293                 uint32_t offered;
1294         } in;
1295
1296         struct {
1297                 uint32_t *count;/* [ref] */
1298                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1299                 uint32_t *needed;/* [ref] */
1300                 WERROR result;
1301         } out;
1302
1303 };
1304
1305
1306 struct spoolss_OpenPrinter {
1307         struct {
1308                 const char *printername;/* [unique,charset(UTF16)] */
1309                 const char *datatype;/* [unique,charset(UTF16)] */
1310                 struct spoolss_DevmodeContainer devmode_ctr;
1311                 uint32_t access_mask;
1312         } in;
1313
1314         struct {
1315                 struct policy_handle *handle;/* [ref] */
1316                 WERROR result;
1317         } out;
1318
1319 };
1320
1321
1322 struct spoolss_SetJob {
1323         struct {
1324                 struct policy_handle *handle;/* [ref] */
1325                 uint32_t job_id;
1326                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
1327                 enum spoolss_JobControl command;
1328         } in;
1329
1330         struct {
1331                 WERROR result;
1332         } out;
1333
1334 };
1335
1336
1337 struct spoolss_GetJob {
1338         struct {
1339                 struct policy_handle *handle;/* [ref] */
1340                 uint32_t job_id;
1341                 uint32_t level;
1342                 DATA_BLOB *buffer;/* [unique] */
1343                 uint32_t offered;
1344         } in;
1345
1346         struct {
1347                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1348                 uint32_t *needed;/* [ref] */
1349                 WERROR result;
1350         } out;
1351
1352 };
1353
1354
1355 struct _spoolss_EnumJobs {
1356         struct {
1357                 struct policy_handle *handle;/* [ref] */
1358                 uint32_t firstjob;
1359                 uint32_t numjobs;
1360                 uint32_t level;
1361                 DATA_BLOB *buffer;/* [unique] */
1362                 uint32_t offered;
1363         } in;
1364
1365         struct {
1366                 DATA_BLOB *info;/* [unique] */
1367                 uint32_t *needed;/* [ref] */
1368                 uint32_t *count;/* [ref] */
1369                 WERROR result;
1370         } out;
1371
1372 };
1373
1374
1375 struct __spoolss_EnumJobs {
1376         struct {
1377                 uint32_t level;
1378                 uint32_t count;
1379         } in;
1380
1381         struct {
1382                 union spoolss_JobInfo *info;/* [switch_is(level)] */
1383         } out;
1384
1385 };
1386
1387
1388 struct spoolss_EnumJobs {
1389         struct {
1390                 struct policy_handle *handle;/* [ref] */
1391                 uint32_t firstjob;
1392                 uint32_t numjobs;
1393                 uint32_t level;
1394                 DATA_BLOB *buffer;/* [unique] */
1395                 uint32_t offered;
1396         } in;
1397
1398         struct {
1399                 uint32_t *count;/* [ref] */
1400                 union spoolss_JobInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1401                 uint32_t *needed;/* [ref] */
1402                 WERROR result;
1403         } out;
1404
1405 };
1406
1407
1408 struct spoolss_AddPrinter {
1409         struct {
1410                 WERROR result;
1411         } out;
1412
1413 };
1414
1415
1416 struct spoolss_DeletePrinter {
1417         struct {
1418                 struct policy_handle *handle;/* [ref] */
1419         } in;
1420
1421         struct {
1422                 WERROR result;
1423         } out;
1424
1425 };
1426
1427
1428 struct spoolss_SetPrinter {
1429         struct {
1430                 struct policy_handle *handle;/* [ref] */
1431                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
1432                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
1433                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
1434                 enum spoolss_PrinterControl command;
1435         } in;
1436
1437         struct {
1438                 WERROR result;
1439         } out;
1440
1441 };
1442
1443
1444 struct spoolss_GetPrinter {
1445         struct {
1446                 struct policy_handle *handle;/* [ref] */
1447                 uint32_t level;
1448                 DATA_BLOB *buffer;/* [unique] */
1449                 uint32_t offered;
1450         } in;
1451
1452         struct {
1453                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1454                 uint32_t *needed;/* [ref] */
1455                 WERROR result;
1456         } out;
1457
1458 };
1459
1460
1461 struct spoolss_AddPrinterDriver {
1462         struct {
1463                 const char *servername;/* [unique,charset(UTF16)] */
1464                 struct spoolss_AddDriverInfoCtr *info_ctr;/* [ref] */
1465         } in;
1466
1467         struct {
1468                 WERROR result;
1469         } out;
1470
1471 };
1472
1473
1474 struct _spoolss_EnumPrinterDrivers {
1475         struct {
1476                 const char *server;/* [unique,charset(UTF16)] */
1477                 const char *environment;/* [unique,charset(UTF16)] */
1478                 uint32_t level;
1479                 DATA_BLOB *buffer;/* [unique] */
1480                 uint32_t offered;
1481         } in;
1482
1483         struct {
1484                 DATA_BLOB *info;/* [unique] */
1485                 uint32_t *needed;/* [ref] */
1486                 uint32_t *count;/* [ref] */
1487                 WERROR result;
1488         } out;
1489
1490 };
1491
1492
1493 struct __spoolss_EnumPrinterDrivers {
1494         struct {
1495                 uint32_t level;
1496                 uint32_t count;
1497         } in;
1498
1499         struct {
1500                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
1501         } out;
1502
1503 };
1504
1505
1506 struct spoolss_EnumPrinterDrivers {
1507         struct {
1508                 const char *server;/* [unique,charset(UTF16)] */
1509                 const char *environment;/* [unique,charset(UTF16)] */
1510                 uint32_t level;
1511                 DATA_BLOB *buffer;/* [unique] */
1512                 uint32_t offered;
1513         } in;
1514
1515         struct {
1516                 uint32_t *count;/* [ref] */
1517                 union spoolss_DriverInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1518                 uint32_t *needed;/* [ref] */
1519                 WERROR result;
1520         } out;
1521
1522 };
1523
1524
1525 struct spoolss_GetPrinterDriver {
1526         struct {
1527                 WERROR result;
1528         } out;
1529
1530 };
1531
1532
1533 struct spoolss_GetPrinterDriverDirectory {
1534         struct {
1535                 const char *server;/* [unique,charset(UTF16)] */
1536                 const char *environment;/* [unique,charset(UTF16)] */
1537                 uint32_t level;
1538                 DATA_BLOB *buffer;/* [unique] */
1539                 uint32_t offered;
1540         } in;
1541
1542         struct {
1543                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1544                 uint32_t *needed;/* [ref] */
1545                 WERROR result;
1546         } out;
1547
1548 };
1549
1550
1551 struct spoolss_DeletePrinterDriver {
1552         struct {
1553                 const char *server;/* [unique,charset(UTF16)] */
1554                 const char *architecture;/* [charset(UTF16)] */
1555                 const char *driver;/* [charset(UTF16)] */
1556         } in;
1557
1558         struct {
1559                 WERROR result;
1560         } out;
1561
1562 };
1563
1564
1565 struct spoolss_AddPrintProcessor {
1566         struct {
1567                 const char *server;/* [unique,charset(UTF16)] */
1568                 const char *architecture;/* [charset(UTF16)] */
1569                 const char *path_name;/* [charset(UTF16)] */
1570                 const char *print_processor_name;/* [charset(UTF16)] */
1571         } in;
1572
1573         struct {
1574                 WERROR result;
1575         } out;
1576
1577 };
1578
1579
1580 struct _spoolss_EnumPrintProcessors {
1581         struct {
1582                 const char *servername;/* [unique,charset(UTF16)] */
1583                 const char *environment;/* [unique,charset(UTF16)] */
1584                 uint32_t level;
1585                 DATA_BLOB *buffer;/* [unique] */
1586                 uint32_t offered;
1587         } in;
1588
1589         struct {
1590                 DATA_BLOB *info;/* [unique] */
1591                 uint32_t *needed;/* [ref] */
1592                 uint32_t *count;/* [ref] */
1593                 WERROR result;
1594         } out;
1595
1596 };
1597
1598
1599 struct __spoolss_EnumPrintProcessors {
1600         struct {
1601                 uint32_t level;
1602                 uint32_t count;
1603         } in;
1604
1605         struct {
1606                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
1607         } out;
1608
1609 };
1610
1611
1612 struct spoolss_EnumPrintProcessors {
1613         struct {
1614                 const char *servername;/* [unique,charset(UTF16)] */
1615                 const char *environment;/* [unique,charset(UTF16)] */
1616                 uint32_t level;
1617                 DATA_BLOB *buffer;/* [unique] */
1618                 uint32_t offered;
1619         } in;
1620
1621         struct {
1622                 uint32_t *count;/* [ref] */
1623                 union spoolss_PrintProcessorInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1624                 uint32_t *needed;/* [ref] */
1625                 WERROR result;
1626         } out;
1627
1628 };
1629
1630
1631 struct spoolss_GetPrintProcessorDirectory {
1632         struct {
1633                 const char *server;/* [unique,charset(UTF16)] */
1634                 const char *environment;/* [unique,charset(UTF16)] */
1635                 uint32_t level;
1636                 DATA_BLOB *buffer;/* [unique] */
1637                 uint32_t offered;
1638         } in;
1639
1640         struct {
1641                 union spoolss_PrintProcessorDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1642                 uint32_t *needed;/* [ref] */
1643                 WERROR result;
1644         } out;
1645
1646 };
1647
1648
1649 struct spoolss_StartDocPrinter {
1650         struct {
1651                 struct policy_handle *handle;/* [ref] */
1652                 uint32_t level;
1653                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
1654         } in;
1655
1656         struct {
1657                 uint32_t *job_id;/* [ref] */
1658                 WERROR result;
1659         } out;
1660
1661 };
1662
1663
1664 struct spoolss_StartPagePrinter {
1665         struct {
1666                 struct policy_handle *handle;/* [ref] */
1667         } in;
1668
1669         struct {
1670                 WERROR result;
1671         } out;
1672
1673 };
1674
1675
1676 struct spoolss_WritePrinter {
1677         struct {
1678                 struct policy_handle *handle;/* [ref] */
1679                 DATA_BLOB data;
1680                 uint32_t _data_size;/* [value(r->in.data.length)] */
1681         } in;
1682
1683         struct {
1684                 uint32_t *num_written;/* [ref] */
1685                 WERROR result;
1686         } out;
1687
1688 };
1689
1690
1691 struct spoolss_EndPagePrinter {
1692         struct {
1693                 struct policy_handle *handle;/* [ref] */
1694         } in;
1695
1696         struct {
1697                 WERROR result;
1698         } out;
1699
1700 };
1701
1702
1703 struct spoolss_AbortPrinter {
1704         struct {
1705                 struct policy_handle *handle;/* [ref] */
1706         } in;
1707
1708         struct {
1709                 WERROR result;
1710         } out;
1711
1712 };
1713
1714
1715 struct spoolss_ReadPrinter {
1716         struct {
1717                 struct policy_handle *handle;/* [ref] */
1718                 uint32_t data_size;
1719         } in;
1720
1721         struct {
1722                 uint8_t *data;/* [ref,size_is(data_size)] */
1723                 uint32_t *_data_size;/* [ref] */
1724                 WERROR result;
1725         } out;
1726
1727 };
1728
1729
1730 struct spoolss_EndDocPrinter {
1731         struct {
1732                 struct policy_handle *handle;/* [ref] */
1733         } in;
1734
1735         struct {
1736                 WERROR result;
1737         } out;
1738
1739 };
1740
1741
1742 struct spoolss_AddJob {
1743         struct {
1744                 struct policy_handle *handle;/* [ref] */
1745                 uint32_t level;
1746                 uint32_t offered;
1747                 uint8_t *buffer;/* [unique,size_is(offered)] */
1748         } in;
1749
1750         struct {
1751                 uint32_t *needed;/* [ref] */
1752                 uint8_t *buffer;/* [unique,size_is(offered)] */
1753                 WERROR result;
1754         } out;
1755
1756 };
1757
1758
1759 struct spoolss_ScheduleJob {
1760         struct {
1761                 struct policy_handle *handle;/* [ref] */
1762                 uint32_t jobid;
1763         } in;
1764
1765         struct {
1766                 WERROR result;
1767         } out;
1768
1769 };
1770
1771
1772 struct _spoolss_GetPrinterData {
1773         struct {
1774                 struct policy_handle *handle;/* [ref] */
1775                 const char *value_name;/* [charset(UTF16)] */
1776                 uint32_t offered;
1777         } in;
1778
1779         struct {
1780                 enum spoolss_PrinterDataType *type;/* [ref] */
1781                 DATA_BLOB data;
1782                 uint32_t *needed;/* [ref] */
1783                 WERROR result;
1784         } out;
1785
1786 };
1787
1788
1789 struct __spoolss_GetPrinterData {
1790         struct {
1791                 enum spoolss_PrinterDataType type;
1792         } in;
1793
1794         struct {
1795                 union spoolss_PrinterData data;/* [switch_is(type)] */
1796         } out;
1797
1798 };
1799
1800
1801 struct spoolss_GetPrinterData {
1802         struct {
1803                 struct policy_handle *handle;/* [ref] */
1804                 const char *value_name;/* [charset(UTF16)] */
1805                 uint32_t offered;
1806         } in;
1807
1808         struct {
1809                 enum spoolss_PrinterDataType *type;/* [ref] */
1810                 union spoolss_PrinterData data;/* [subcontext_size(offered),subcontext(4),switch_is(*type)] */
1811                 uint32_t *needed;/* [ref] */
1812                 WERROR result;
1813         } out;
1814
1815 };
1816
1817
1818 struct _spoolss_SetPrinterData {
1819         struct {
1820                 struct policy_handle *handle;/* [ref] */
1821                 const char *value_name;/* [charset(UTF16)] */
1822                 enum spoolss_PrinterDataType type;
1823                 DATA_BLOB data;
1824                 uint32_t _offered;
1825         } in;
1826
1827         struct {
1828                 WERROR result;
1829         } out;
1830
1831 };
1832
1833
1834 struct __spoolss_SetPrinterData {
1835         struct {
1836                 enum spoolss_PrinterDataType type;
1837         } in;
1838
1839         struct {
1840                 union spoolss_PrinterData data;/* [switch_is(type)] */
1841         } out;
1842
1843 };
1844
1845
1846 struct spoolss_SetPrinterData {
1847         struct {
1848                 struct policy_handle *handle;/* [ref] */
1849                 const char *value_name;/* [charset(UTF16)] */
1850                 enum spoolss_PrinterDataType type;
1851                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
1852                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
1853         } in;
1854
1855         struct {
1856                 WERROR result;
1857         } out;
1858
1859 };
1860
1861
1862 struct spoolss_WaitForPrinterChange {
1863         struct {
1864                 WERROR result;
1865         } out;
1866
1867 };
1868
1869
1870 struct spoolss_ClosePrinter {
1871         struct {
1872                 struct policy_handle *handle;/* [ref] */
1873         } in;
1874
1875         struct {
1876                 struct policy_handle *handle;/* [ref] */
1877                 WERROR result;
1878         } out;
1879
1880 };
1881
1882
1883 struct spoolss_AddForm {
1884         struct {
1885                 struct policy_handle *handle;/* [ref] */
1886                 uint32_t level;
1887                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1888         } in;
1889
1890         struct {
1891                 WERROR result;
1892         } out;
1893
1894 };
1895
1896
1897 struct spoolss_DeleteForm {
1898         struct {
1899                 struct policy_handle *handle;/* [ref] */
1900                 const char *form_name;/* [charset(UTF16)] */
1901         } in;
1902
1903         struct {
1904                 WERROR result;
1905         } out;
1906
1907 };
1908
1909
1910 struct spoolss_GetForm {
1911         struct {
1912                 struct policy_handle *handle;/* [ref] */
1913                 const char *form_name;/* [charset(UTF16)] */
1914                 uint32_t level;
1915                 DATA_BLOB *buffer;/* [unique] */
1916                 uint32_t offered;
1917         } in;
1918
1919         struct {
1920                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1921                 uint32_t *needed;/* [ref] */
1922                 WERROR result;
1923         } out;
1924
1925 };
1926
1927
1928 struct spoolss_SetForm {
1929         struct {
1930                 struct policy_handle *handle;/* [ref] */
1931                 const char *form_name;/* [charset(UTF16)] */
1932                 uint32_t level;
1933                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1934         } in;
1935
1936         struct {
1937                 WERROR result;
1938         } out;
1939
1940 };
1941
1942
1943 struct _spoolss_EnumForms {
1944         struct {
1945                 struct policy_handle *handle;/* [ref] */
1946                 uint32_t level;
1947                 DATA_BLOB *buffer;/* [unique] */
1948                 uint32_t offered;
1949         } in;
1950
1951         struct {
1952                 DATA_BLOB *info;/* [unique] */
1953                 uint32_t *needed;/* [ref] */
1954                 uint32_t *count;/* [ref] */
1955                 WERROR result;
1956         } out;
1957
1958 };
1959
1960
1961 struct __spoolss_EnumForms {
1962         struct {
1963                 uint32_t level;
1964                 uint32_t count;
1965         } in;
1966
1967         struct {
1968                 union spoolss_FormInfo *info;/* [switch_is(level)] */
1969         } out;
1970
1971 };
1972
1973
1974 struct spoolss_EnumForms {
1975         struct {
1976                 struct policy_handle *handle;/* [ref] */
1977                 uint32_t level;
1978                 DATA_BLOB *buffer;/* [unique] */
1979                 uint32_t offered;
1980         } in;
1981
1982         struct {
1983                 uint32_t *count;/* [ref] */
1984                 union spoolss_FormInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1985                 uint32_t *needed;/* [ref] */
1986                 WERROR result;
1987         } out;
1988
1989 };
1990
1991
1992 struct _spoolss_EnumPorts {
1993         struct {
1994                 const char *servername;/* [unique,charset(UTF16)] */
1995                 uint32_t level;
1996                 DATA_BLOB *buffer;/* [unique] */
1997                 uint32_t offered;
1998         } in;
1999
2000         struct {
2001                 DATA_BLOB *info;/* [unique] */
2002                 uint32_t *needed;/* [ref] */
2003                 uint32_t *count;/* [ref] */
2004                 WERROR result;
2005         } out;
2006
2007 };
2008
2009
2010 struct __spoolss_EnumPorts {
2011         struct {
2012                 uint32_t level;
2013                 uint32_t count;
2014         } in;
2015
2016         struct {
2017                 union spoolss_PortInfo *info;/* [switch_is(level)] */
2018         } out;
2019
2020 };
2021
2022
2023 struct spoolss_EnumPorts {
2024         struct {
2025                 const char *servername;/* [unique,charset(UTF16)] */
2026                 uint32_t level;
2027                 DATA_BLOB *buffer;/* [unique] */
2028                 uint32_t offered;
2029         } in;
2030
2031         struct {
2032                 uint32_t *count;/* [ref] */
2033                 union spoolss_PortInfo *info;/* [unique,switch_is(level),size_is(*count)] */
2034                 uint32_t *needed;/* [ref] */
2035                 WERROR result;
2036         } out;
2037
2038 };
2039
2040
2041 struct _spoolss_EnumMonitors {
2042         struct {
2043                 const char *servername;/* [unique,charset(UTF16)] */
2044                 uint32_t level;
2045                 DATA_BLOB *buffer;/* [unique] */
2046                 uint32_t offered;
2047         } in;
2048
2049         struct {
2050                 DATA_BLOB *info;/* [unique] */
2051                 uint32_t *needed;/* [ref] */
2052                 uint32_t *count;/* [ref] */
2053                 WERROR result;
2054         } out;
2055
2056 };
2057
2058
2059 struct __spoolss_EnumMonitors {
2060         struct {
2061                 uint32_t level;
2062                 uint32_t count;
2063         } in;
2064
2065         struct {
2066                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
2067         } out;
2068
2069 };
2070
2071
2072 struct spoolss_EnumMonitors {
2073         struct {
2074                 const char *servername;/* [unique,charset(UTF16)] */
2075                 uint32_t level;
2076                 DATA_BLOB *buffer;/* [unique] */
2077                 uint32_t offered;
2078         } in;
2079
2080         struct {
2081                 uint32_t *count;/* [ref] */
2082                 union spoolss_MonitorInfo *info;/* [unique,switch_is(level),size_is(*count)] */
2083                 uint32_t *needed;/* [ref] */
2084                 WERROR result;
2085         } out;
2086
2087 };
2088
2089
2090 struct spoolss_AddPort {
2091         struct {
2092                 const char *server_name;/* [unique,charset(UTF16)] */
2093                 uint32_t unknown;
2094                 const char *monitor_name;/* [charset(UTF16)] */
2095         } in;
2096
2097         struct {
2098                 WERROR result;
2099         } out;
2100
2101 };
2102
2103
2104 struct spoolss_ConfigurePort {
2105         struct {
2106                 WERROR result;
2107         } out;
2108
2109 };
2110
2111
2112 struct spoolss_DeletePort {
2113         struct {
2114                 WERROR result;
2115         } out;
2116
2117 };
2118
2119
2120 struct spoolss_CreatePrinterIC {
2121         struct {
2122                 WERROR result;
2123         } out;
2124
2125 };
2126
2127
2128 struct spoolss_PlayGDIScriptOnPrinterIC {
2129         struct {
2130                 WERROR result;
2131         } out;
2132
2133 };
2134
2135
2136 struct spoolss_DeletePrinterIC {
2137         struct {
2138                 WERROR result;
2139         } out;
2140
2141 };
2142
2143
2144 struct spoolss_AddPrinterConnection {
2145         struct {
2146                 WERROR result;
2147         } out;
2148
2149 };
2150
2151
2152 struct spoolss_DeletePrinterConnection {
2153         struct {
2154                 WERROR result;
2155         } out;
2156
2157 };
2158
2159
2160 struct spoolss_PrinterMessageBox {
2161         struct {
2162                 WERROR result;
2163         } out;
2164
2165 };
2166
2167
2168 struct spoolss_AddMonitor {
2169         struct {
2170                 WERROR result;
2171         } out;
2172
2173 };
2174
2175
2176 struct spoolss_DeleteMonitor {
2177         struct {
2178                 WERROR result;
2179         } out;
2180
2181 };
2182
2183
2184 struct spoolss_DeletePrintProcessor {
2185         struct {
2186                 WERROR result;
2187         } out;
2188
2189 };
2190
2191
2192 struct spoolss_AddPrintProvidor {
2193         struct {
2194                 WERROR result;
2195         } out;
2196
2197 };
2198
2199
2200 struct spoolss_DeletePrintProvidor {
2201         struct {
2202                 WERROR result;
2203         } out;
2204
2205 };
2206
2207
2208 struct spoolss_EnumPrintProcDataTypes {
2209         struct {
2210                 WERROR result;
2211         } out;
2212
2213 };
2214
2215
2216 struct spoolss_ResetPrinter {
2217         struct {
2218                 struct policy_handle *handle;/* [ref] */
2219                 const char *data_type;/* [unique,charset(UTF16)] */
2220                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2221         } in;
2222
2223         struct {
2224                 WERROR result;
2225         } out;
2226
2227 };
2228
2229
2230 struct spoolss_GetPrinterDriver2 {
2231         struct {
2232                 struct policy_handle *handle;/* [ref] */
2233                 const char *architecture;/* [unique,charset(UTF16)] */
2234                 uint32_t level;
2235                 DATA_BLOB *buffer;/* [unique] */
2236                 uint32_t offered;
2237                 uint32_t client_major_version;
2238                 uint32_t client_minor_version;
2239         } in;
2240
2241         struct {
2242                 DATA_BLOB *info;/* [unique] */
2243                 uint32_t *needed;/* [ref] */
2244                 uint32_t *server_major_version;/* [ref] */
2245                 uint32_t *server_minor_version;/* [ref] */
2246                 WERROR result;
2247         } out;
2248
2249 };
2250
2251
2252 struct spoolss_FindFirstPrinterChangeNotification {
2253         struct {
2254                 WERROR result;
2255         } out;
2256
2257 };
2258
2259
2260 struct spoolss_FindNextPrinterChangeNotification {
2261         struct {
2262                 WERROR result;
2263         } out;
2264
2265 };
2266
2267
2268 struct spoolss_FindClosePrinterNotify {
2269         struct {
2270                 struct policy_handle *handle;/* [ref] */
2271         } in;
2272
2273         struct {
2274                 WERROR result;
2275         } out;
2276
2277 };
2278
2279
2280 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
2281         struct {
2282                 WERROR result;
2283         } out;
2284
2285 };
2286
2287
2288 struct spoolss_ReplyOpenPrinter {
2289         struct {
2290                 const char *server_name;/* [charset(UTF16)] */
2291                 uint32_t printer_local;
2292                 enum winreg_Type type;
2293                 uint32_t bufsize;/* [range(0,512)] */
2294                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2295         } in;
2296
2297         struct {
2298                 struct policy_handle *handle;/* [ref] */
2299                 WERROR result;
2300         } out;
2301
2302 };
2303
2304
2305 struct spoolss_RouterReplyPrinter {
2306         struct {
2307                 struct policy_handle *handle;/* [ref] */
2308                 uint32_t flags;
2309                 uint32_t bufsize;/* [range(0,512)] */
2310                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2311         } in;
2312
2313         struct {
2314                 WERROR result;
2315         } out;
2316
2317 };
2318
2319
2320 struct spoolss_ReplyClosePrinter {
2321         struct {
2322                 struct policy_handle *handle;/* [ref] */
2323         } in;
2324
2325         struct {
2326                 struct policy_handle *handle;/* [ref] */
2327                 WERROR result;
2328         } out;
2329
2330 };
2331
2332
2333 struct spoolss_AddPortEx {
2334         struct {
2335                 WERROR result;
2336         } out;
2337
2338 };
2339
2340
2341 struct spoolss_RouterFindFirstPrinterChangeNotification {
2342         struct {
2343                 WERROR result;
2344         } out;
2345
2346 };
2347
2348
2349 struct spoolss_SpoolerInit {
2350         struct {
2351                 WERROR result;
2352         } out;
2353
2354 };
2355
2356
2357 struct spoolss_ResetPrinterEx {
2358         struct {
2359                 WERROR result;
2360         } out;
2361
2362 };
2363
2364
2365 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
2366         struct {
2367                 struct policy_handle *handle;/* [ref] */
2368                 uint32_t flags;
2369                 uint32_t options;
2370                 const char *local_machine;/* [unique,charset(UTF16)] */
2371                 uint32_t printer_local;
2372                 struct spoolss_NotifyOption *notify_options;/* [unique] */
2373         } in;
2374
2375         struct {
2376                 WERROR result;
2377         } out;
2378
2379 };
2380
2381
2382 struct spoolss_RouterReplyPrinterEx {
2383         struct {
2384                 struct policy_handle *handle;/* [ref] */
2385                 uint32_t color;
2386                 uint32_t flags;
2387                 uint32_t reply_type;
2388                 union spoolss_ReplyPrinterInfo info;/* [switch_is(reply_type)] */
2389         } in;
2390
2391         struct {
2392                 uint32_t *reply_result;/* [ref] */
2393                 WERROR result;
2394         } out;
2395
2396 };
2397
2398
2399 struct spoolss_RouterRefreshPrinterChangeNotify {
2400         struct {
2401                 struct policy_handle *handle;/* [ref] */
2402                 uint32_t change_low;
2403                 struct spoolss_NotifyOption *options;/* [unique] */
2404         } in;
2405
2406         struct {
2407                 struct spoolss_NotifyInfo **info;/* [ref] */
2408                 WERROR result;
2409         } out;
2410
2411 };
2412
2413
2414 struct spoolss_44 {
2415         struct {
2416                 WERROR result;
2417         } out;
2418
2419 };
2420
2421
2422 struct spoolss_OpenPrinterEx {
2423         struct {
2424                 const char *printername;/* [unique,charset(UTF16)] */
2425                 const char *datatype;/* [unique,charset(UTF16)] */
2426                 struct spoolss_DevmodeContainer devmode_ctr;
2427                 uint32_t access_mask;
2428                 uint32_t level;
2429                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
2430         } in;
2431
2432         struct {
2433                 struct policy_handle *handle;/* [ref] */
2434                 WERROR result;
2435         } out;
2436
2437 };
2438
2439
2440 struct spoolss_AddPrinterEx {
2441         struct {
2442                 const char *server;/* [unique,charset(UTF16)] */
2443                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2444                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2445                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2446                 struct spoolss_UserLevelCtr *userlevel_ctr;/* [ref] */
2447         } in;
2448
2449         struct {
2450                 struct policy_handle *handle;/* [ref] */
2451                 WERROR result;
2452         } out;
2453
2454 };
2455
2456
2457 struct spoolss_47 {
2458         struct {
2459                 WERROR result;
2460         } out;
2461
2462 };
2463
2464
2465 struct spoolss_EnumPrinterData {
2466         struct {
2467                 struct policy_handle *handle;/* [ref] */
2468                 uint32_t enum_index;
2469                 uint32_t value_offered;
2470                 uint32_t data_offered;
2471         } in;
2472
2473         struct {
2474                 const char *value_name;/* [charset(UTF16),size_is(value_offered/2)] */
2475                 uint32_t *value_needed;/* [ref] */
2476                 uint32_t *printerdata_type;/* [ref] */
2477                 DATA_BLOB *buffer;/* [ref] */
2478                 uint32_t *data_needed;/* [ref] */
2479                 WERROR result;
2480         } out;
2481
2482 };
2483
2484
2485 struct spoolss_DeletePrinterData {
2486         struct {
2487                 struct policy_handle *handle;/* [ref] */
2488                 const char *value_name;/* [charset(UTF16)] */
2489         } in;
2490
2491         struct {
2492                 WERROR result;
2493         } out;
2494
2495 };
2496
2497
2498 struct spoolss_4a {
2499         struct {
2500                 WERROR result;
2501         } out;
2502
2503 };
2504
2505
2506 struct spoolss_4b {
2507         struct {
2508                 WERROR result;
2509         } out;
2510
2511 };
2512
2513
2514 struct spoolss_4c {
2515         struct {
2516                 WERROR result;
2517         } out;
2518
2519 };
2520
2521
2522 struct spoolss_SetPrinterDataEx {
2523         struct {
2524                 struct policy_handle *handle;/* [ref] */
2525                 const char *key_name;/* [charset(UTF16)] */
2526                 const char *value_name;/* [charset(UTF16)] */
2527                 uint32_t type;
2528                 uint8_t *buffer;/* [ref,size_is(offered)] */
2529                 uint32_t offered;
2530         } in;
2531
2532         struct {
2533                 WERROR result;
2534         } out;
2535
2536 };
2537
2538
2539 struct spoolss_GetPrinterDataEx {
2540         struct {
2541                 struct policy_handle *handle;/* [ref] */
2542                 const char *key_name;/* [charset(UTF16)] */
2543                 const char *value_name;/* [charset(UTF16)] */
2544                 uint32_t offered;
2545         } in;
2546
2547         struct {
2548                 uint32_t *type;/* [ref] */
2549                 uint8_t *buffer;/* [ref,size_is(offered)] */
2550                 uint32_t *needed;/* [ref] */
2551                 WERROR result;
2552         } out;
2553
2554 };
2555
2556
2557 struct spoolss_EnumPrinterDataEx {
2558         struct {
2559                 struct policy_handle *handle;/* [ref] */
2560                 const char *key_name;/* [charset(UTF16)] */
2561                 uint32_t offered;
2562         } in;
2563
2564         struct {
2565                 uint8_t *buffer;/* [ref,size_is(offered)] */
2566                 uint32_t *needed;/* [ref] */
2567                 uint32_t *count;/* [ref] */
2568                 WERROR result;
2569         } out;
2570
2571 };
2572
2573
2574 struct spoolss_EnumPrinterKey {
2575         struct {
2576                 struct policy_handle *handle;/* [ref] */
2577                 const char *key_name;/* [charset(UTF16)] */
2578                 uint32_t key_buffer_size;
2579         } in;
2580
2581         struct {
2582                 uint16_t *key_buffer;/* [ref,size_is(key_buffer_size/2)] */
2583                 uint32_t *needed;/* [ref] */
2584                 WERROR result;
2585         } out;
2586
2587 };
2588
2589
2590 struct spoolss_DeletePrinterDataEx {
2591         struct {
2592                 struct policy_handle *handle;/* [ref] */
2593                 const char *key_name;/* [charset(UTF16)] */
2594                 const char *value_name;/* [charset(UTF16)] */
2595         } in;
2596
2597         struct {
2598                 WERROR result;
2599         } out;
2600
2601 };
2602
2603
2604 struct spoolss_DeletePrinterKey {
2605         struct {
2606                 struct policy_handle *handle;/* [ref] */
2607                 const char *key_name;/* [charset(UTF16)] */
2608         } in;
2609
2610         struct {
2611                 WERROR result;
2612         } out;
2613
2614 };
2615
2616
2617 struct spoolss_53 {
2618         struct {
2619                 WERROR result;
2620         } out;
2621
2622 };
2623
2624
2625 struct spoolss_DeletePrinterDriverEx {
2626         struct {
2627                 const char *server;/* [unique,charset(UTF16)] */
2628                 const char *architecture;/* [charset(UTF16)] */
2629                 const char *driver;/* [charset(UTF16)] */
2630                 uint32_t delete_flags;
2631                 uint32_t version;
2632         } in;
2633
2634         struct {
2635                 WERROR result;
2636         } out;
2637
2638 };
2639
2640
2641 struct spoolss_55 {
2642         struct {
2643                 WERROR result;
2644         } out;
2645
2646 };
2647
2648
2649 struct spoolss_56 {
2650         struct {
2651                 WERROR result;
2652         } out;
2653
2654 };
2655
2656
2657 struct spoolss_57 {
2658         struct {
2659                 WERROR result;
2660         } out;
2661
2662 };
2663
2664
2665 struct spoolss_XcvData {
2666         struct {
2667                 struct policy_handle *handle;/* [ref] */
2668                 const char *function_name;/* [charset(UTF16)] */
2669                 DATA_BLOB in_data;
2670                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
2671                 uint32_t out_data_size;
2672                 uint32_t *status_code;/* [ref] */
2673         } in;
2674
2675         struct {
2676                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
2677                 uint32_t *needed;/* [ref] */
2678                 uint32_t *status_code;/* [ref] */
2679                 WERROR result;
2680         } out;
2681
2682 };
2683
2684
2685 struct spoolss_AddPrinterDriverEx {
2686         struct {
2687                 const char *servername;/* [unique,charset(UTF16)] */
2688                 struct spoolss_AddDriverInfoCtr *info_ctr;/* [ref] */
2689                 uint32_t flags;
2690         } in;
2691
2692         struct {
2693                 WERROR result;
2694         } out;
2695
2696 };
2697
2698
2699 struct spoolss_5a {
2700         struct {
2701                 WERROR result;
2702         } out;
2703
2704 };
2705
2706
2707 struct spoolss_5b {
2708         struct {
2709                 WERROR result;
2710         } out;
2711
2712 };
2713
2714
2715 struct spoolss_5c {
2716         struct {
2717                 WERROR result;
2718         } out;
2719
2720 };
2721
2722
2723 struct spoolss_5d {
2724         struct {
2725                 WERROR result;
2726         } out;
2727
2728 };
2729
2730
2731 struct spoolss_5e {
2732         struct {
2733                 WERROR result;
2734         } out;
2735
2736 };
2737
2738
2739 struct spoolss_5f {
2740         struct {
2741                 WERROR result;
2742         } out;
2743
2744 };
2745
2746 #endif /* _HEADER_spoolss */