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  ( (PRINTER_CHANGE_ADD_PRINTER|PRINTER_CHANGE_SET_PRINTER|PRINTER_CHANGE_DELETE_PRINTER|PRINTER_CHANGE_FAILED_CONNECTION_PRINTER) )
14 #define PRINTER_CHANGE_JOB      ( (PRINTER_CHANGE_ADD_JOB|PRINTER_CHANGE_SET_JOB|PRINTER_CHANGE_DELETE_JOB|PRINTER_CHANGE_WRITE_JOB) )
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  ( (PRINTER_CHANGE_ADD_PRINT_PROCESSOR|PRINTER_CHANGE_DELETE_PRINT_PROCESSOR) )
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_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 }/* [gensize,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 union spoolss_AddDriverInfo {
647         struct spoolss_AddDriverInfo1 *info1;/* [unique,case] */
648         struct spoolss_AddDriverInfo2 *info2;/* [unique,case(2)] */
649         struct spoolss_AddDriverInfo3 *info3;/* [unique,case(3)] */
650         struct spoolss_AddDriverInfo4 *info4;/* [unique,case(4)] */
651         struct spoolss_AddDriverInfo6 *info6;/* [unique,case(6)] */
652 }/* [switch_type(uint32)] */;
653
654 struct spoolss_DriverInfo1 {
655         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
656 };
657
658 struct spoolss_DriverInfo2 {
659         enum spoolss_DriverOSVersion version;
660         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
661         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
662         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
663         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
664         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
665 };
666
667 struct spoolss_DriverInfo3 {
668         enum spoolss_DriverOSVersion version;
669         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
670         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
671         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
672         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
673         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
674         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
675         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
676         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
677         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
678 };
679
680 struct spoolss_DriverInfo4 {
681         enum spoolss_DriverOSVersion version;
682         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
683         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
684         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
685         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
686         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
687         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
688         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
689         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
690         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
691         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
692 };
693
694 struct spoolss_DriverInfo5 {
695         enum spoolss_DriverOSVersion version;
696         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
697         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
698         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
699         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
700         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
701         uint32_t driver_attributes;
702         uint32_t config_version;
703         uint32_t driver_version;
704 };
705
706 struct spoolss_DriverInfo6 {
707         enum spoolss_DriverOSVersion version;
708         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
709         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
710         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
711         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
712         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
713         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
714         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
715         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
716         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
717         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
718         NTTIME driver_data;
719         uint64_t driver_version;
720         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
721         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
722         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
723         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
724 };
725
726 struct spoolss_DriverInfo8 {
727         enum spoolss_DriverOSVersion version;
728         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
729         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
730         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
731         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
732         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
733         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
734         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
735         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
736         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
737         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
738         NTTIME driver_data;
739         uint64_t driver_version;
740         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
741         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
742         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
743         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
744         const char * print_processor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
745         const char * vendor_setup;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
746         const char ** color_profiles;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
747         const char * inf_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
748         uint32_t printer_driver_attributes;
749         const char ** core_driver_dependencies;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
750         NTTIME min_inbox_driver_ver_date;
751         uint64_t min_inbox_driver_ver_version;
752 };
753
754 union spoolss_DriverInfo {
755         struct spoolss_DriverInfo1 info1;/* [case] */
756         struct spoolss_DriverInfo2 info2;/* [case(2)] */
757         struct spoolss_DriverInfo3 info3;/* [case(3)] */
758         struct spoolss_DriverInfo4 info4;/* [case(4)] */
759         struct spoolss_DriverInfo5 info5;/* [case(5)] */
760         struct spoolss_DriverInfo6 info6;/* [case(6)] */
761 }/* [relative_base,nodiscriminant,public] */;
762
763 struct spoolss_DriverDirectoryInfo1 {
764         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
765 };
766
767 union spoolss_DriverDirectoryInfo {
768         struct spoolss_DriverDirectoryInfo1 info1;/* [case] */
769 }/* [gensize,relative_base,nodiscriminant,public] */;
770
771 struct spoolss_PrintProcessorInfo1 {
772         const char * print_processor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
773 };
774
775 union spoolss_PrintProcessorInfo {
776         struct spoolss_PrintProcessorInfo1 info1;/* [case] */
777 }/* [relative_base,nodiscriminant,public] */;
778
779 struct spoolss_DocumentInfo1 {
780         const char *document_name;/* [unique,charset(UTF16)] */
781         const char *output_file;/* [unique,charset(UTF16)] */
782         const char *datatype;/* [unique,charset(UTF16)] */
783 };
784
785 union spoolss_DocumentInfo {
786         struct spoolss_DocumentInfo1 *info1;/* [unique,case] */
787 }/* [switch_type(uint32)] */;
788
789 struct spoolss_OSVersion {
790         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersion(r,ndr->iconv_convenience,ndr->flags))] */
791         uint32_t major;
792         uint32_t minor;
793         uint32_t build;
794         uint32_t unknown;/* [value(2)] */
795         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
796 }/* [gensize,public] */;
797
798 struct spoolss_OSVersionEx {
799         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersionEx(r,ndr->iconv_convenience,ndr->flags))] */
800         uint32_t major;
801         uint32_t minor;
802         uint32_t build;
803         uint32_t unknown1;/* [value(2)] */
804         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
805         uint32_t unknown2;
806         uint32_t unknown3;
807 }/* [gensize,public] */;
808
809 enum spoolss_PrinterDataType
810 #ifndef USE_UINT_ENUMS
811  {
812         SPOOLSS_PRINTER_DATA_TYPE_NULL=0,
813         SPOOLSS_PRINTER_DATA_TYPE_STRING=1,
814         SPOOLSS_PRINTER_DATA_TYPE_BINARY=3,
815         SPOOLSS_PRINTER_DATA_TYPE_UINT32=4,
816         SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY=7
817 }
818 #else
819  { __donnot_use_enum_spoolss_PrinterDataType=0x7FFFFFFF}
820 #define SPOOLSS_PRINTER_DATA_TYPE_NULL ( 0 )
821 #define SPOOLSS_PRINTER_DATA_TYPE_STRING ( 1 )
822 #define SPOOLSS_PRINTER_DATA_TYPE_BINARY ( 3 )
823 #define SPOOLSS_PRINTER_DATA_TYPE_UINT32 ( 4 )
824 #define SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY ( 7 )
825 #endif
826 ;
827
828 union spoolss_PrinterData {
829         const char * string;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(SPOOLSS_PRINTER_DATA_TYPE_STRING)] */
830         DATA_BLOB binary;/* [flag(LIBNDR_FLAG_REMAINING),case(SPOOLSS_PRINTER_DATA_TYPE_BINARY)] */
831         uint32_t value;/* [case(SPOOLSS_PRINTER_DATA_TYPE_UINT32)] */
832         const char ** string_array;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY)] */
833         DATA_BLOB data;/* [flag(LIBNDR_FLAG_REMAINING),default] */
834 }/* [gensize,public,nodiscriminant] */;
835
836 enum spoolss_FormFlags
837 #ifndef USE_UINT_ENUMS
838  {
839         SPOOLSS_FORM_USER=0,
840         SPOOLSS_FORM_BUILTIN=1,
841         SPOOLSS_FORM_PRINTER=2
842 }
843 #else
844  { __donnot_use_enum_spoolss_FormFlags=0x7FFFFFFF}
845 #define SPOOLSS_FORM_USER ( 0 )
846 #define SPOOLSS_FORM_BUILTIN ( 1 )
847 #define SPOOLSS_FORM_PRINTER ( 2 )
848 #endif
849 ;
850
851 struct spoolss_FormSize {
852         uint32_t width;
853         uint32_t height;
854 };
855
856 struct spoolss_FormArea {
857         uint32_t left;
858         uint32_t top;
859         uint32_t right;
860         uint32_t bottom;
861 };
862
863 struct spoolss_FormInfo1 {
864         enum spoolss_FormFlags flags;
865         const char * form_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
866         struct spoolss_FormSize size;
867         struct spoolss_FormArea area;
868 };
869
870 union spoolss_FormInfo {
871         struct spoolss_FormInfo1 info1;/* [case] */
872 }/* [relative_base,gensize,public,nodiscriminant] */;
873
874 struct spoolss_AddFormInfo1 {
875         enum spoolss_FormFlags flags;
876         const char *form_name;/* [unique,charset(UTF16)] */
877         struct spoolss_FormSize size;
878         struct spoolss_FormArea area;
879 };
880
881 union spoolss_AddFormInfo {
882         struct spoolss_AddFormInfo1 *info1;/* [unique,case] */
883 }/* [switch_type(uint32)] */;
884
885 struct spoolss_PortInfo1 {
886         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
887 };
888
889 /* bitmap spoolss_PortType */
890 #define SPOOLSS_PORT_TYPE_WRITE ( 0x00000001 )
891 #define SPOOLSS_PORT_TYPE_READ ( 0x00000002 )
892 #define SPOOLSS_PORT_TYPE_REDIRECTED ( 0x00000004 )
893 #define SPOOLSS_PORT_TYPE_NET_ATTACHED ( 0x00000008 )
894
895 struct spoolss_PortInfo2 {
896         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
897         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
898         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
899         uint32_t port_type;
900         uint32_t reserved;
901 };
902
903 union spoolss_PortInfo {
904         struct spoolss_PortInfo1 info1;/* [case] */
905         struct spoolss_PortInfo2 info2;/* [case(2)] */
906 }/* [relative_base,nodiscriminant,public] */;
907
908 struct spoolss_MonitorInfo1 {
909         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
910 };
911
912 struct spoolss_MonitorInfo2 {
913         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
914         const char * environment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
915         const char * dll_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
916 };
917
918 union spoolss_MonitorInfo {
919         struct spoolss_MonitorInfo1 info1;/* [case] */
920         struct spoolss_MonitorInfo2 info2;/* [case(2)] */
921 }/* [relative_base,nodiscriminant,public] */;
922
923 /* bitmap spoolss_PrinterChangeFlags */
924 #define PRINTER_CHANGE_ADD_PRINTER ( 0x00000001 )
925 #define PRINTER_CHANGE_SET_PRINTER ( 0x00000002 )
926 #define PRINTER_CHANGE_DELETE_PRINTER ( 0x00000004 )
927 #define PRINTER_CHANGE_FAILED_CONNECTION_PRINTER ( 0x00000008 )
928 #define PRINTER_CHANGE_ADD_JOB ( 0x00000100 )
929 #define PRINTER_CHANGE_SET_JOB ( 0x00000200 )
930 #define PRINTER_CHANGE_DELETE_JOB ( 0x00000400 )
931 #define PRINTER_CHANGE_WRITE_JOB ( 0x00000800 )
932 #define PRINTER_CHANGE_ADD_FORM ( 0x00010000 )
933 #define PRINTER_CHANGE_SET_FORM ( 0x00020000 )
934 #define PRINTER_CHANGE_DELETE_FORM ( 0x00040000 )
935 #define PRINTER_CHANGE_ADD_PORT ( 0x00100000 )
936 #define PRINTER_CHANGE_CONFIGURE_PORT ( 0x00200000 )
937 #define PRINTER_CHANGE_DELETE_PORT ( 0x00400000 )
938 #define PRINTER_CHANGE_ADD_PRINT_PROCESSOR ( 0x01000000 )
939 #define PRINTER_CHANGE_DELETE_PRINT_PROCESSOR ( 0x04000000 )
940 #define PRINTER_CHANGE_ADD_PRINTER_DRIVER ( 0x10000000 )
941 #define PRINTER_CHANGE_SET_PRINTER_DRIVER ( 0x20000000 )
942 #define PRINTER_CHANGE_DELETE_PRINTER_DRIVER ( 0x40000000 )
943 #define PRINTER_CHANGE_TIMEOUT ( 0x80000000 )
944
945 enum spoolss_Field
946 #ifndef USE_UINT_ENUMS
947  {
948         SPOOLSS_FIELD_SERVER_NAME=0,
949         SPOOLSS_FIELD_PRINTER_NAME=1,
950         SPOOLSS_FIELD_SHARE_NAME=2,
951         SPOOLSS_FIELD_PORT_NAME=3,
952         SPOOLSS_FIELD_DRIVER_NAME=4,
953         SPOOLSS_FIELD_COMMENT=5,
954         SPOOLSS_FIELD_LOCATION=6,
955         SPOOLSS_FIELD_DEVMODE=7,
956         SPOOLSS_FIELD_SEPFILE=8,
957         SPOOLSS_FIELD_PRINT_PROCESSOR=9,
958         SPOOLSS_FIELD_PARAMETERS=10,
959         SPOOLSS_FIELD_DATATYPE=11,
960         SPOOLSS_FIELD_SECURITY_DESCRIPTOR=12,
961         SPOOLSS_FIELD_ATTRIBUTES=13,
962         SPOOLSS_FIELD_PRIORITY=14,
963         SPOOLSS_FIELD_DEFAULT_PRIORITY=15,
964         SPOOLSS_FIELD_START_TIME=16,
965         SPOOLSS_FIELD_UNTIL_TIME=17,
966         SPOOLSS_FIELD_STATUS=18,
967         SPOOLSS_FIELD_STATUS_STRING=19,
968         SPOOLSS_FIELD_CJOBS=20,
969         SPOOLSS_FIELD_AVERAGE_PPM=21,
970         SPOOLSS_FIELD_TOTAL_PAGES=22,
971         SPOOLSS_FIELD_PAGES_PRINTED=23,
972         SPOOLSS_FIELD_TOTAL_BYTES=24,
973         SPOOLSS_FIELD_BYTES_PRINTED=25
974 }
975 #else
976  { __donnot_use_enum_spoolss_Field=0x7FFFFFFF}
977 #define SPOOLSS_FIELD_SERVER_NAME ( 0 )
978 #define SPOOLSS_FIELD_PRINTER_NAME ( 1 )
979 #define SPOOLSS_FIELD_SHARE_NAME ( 2 )
980 #define SPOOLSS_FIELD_PORT_NAME ( 3 )
981 #define SPOOLSS_FIELD_DRIVER_NAME ( 4 )
982 #define SPOOLSS_FIELD_COMMENT ( 5 )
983 #define SPOOLSS_FIELD_LOCATION ( 6 )
984 #define SPOOLSS_FIELD_DEVMODE ( 7 )
985 #define SPOOLSS_FIELD_SEPFILE ( 8 )
986 #define SPOOLSS_FIELD_PRINT_PROCESSOR ( 9 )
987 #define SPOOLSS_FIELD_PARAMETERS ( 10 )
988 #define SPOOLSS_FIELD_DATATYPE ( 11 )
989 #define SPOOLSS_FIELD_SECURITY_DESCRIPTOR ( 12 )
990 #define SPOOLSS_FIELD_ATTRIBUTES ( 13 )
991 #define SPOOLSS_FIELD_PRIORITY ( 14 )
992 #define SPOOLSS_FIELD_DEFAULT_PRIORITY ( 15 )
993 #define SPOOLSS_FIELD_START_TIME ( 16 )
994 #define SPOOLSS_FIELD_UNTIL_TIME ( 17 )
995 #define SPOOLSS_FIELD_STATUS ( 18 )
996 #define SPOOLSS_FIELD_STATUS_STRING ( 19 )
997 #define SPOOLSS_FIELD_CJOBS ( 20 )
998 #define SPOOLSS_FIELD_AVERAGE_PPM ( 21 )
999 #define SPOOLSS_FIELD_TOTAL_PAGES ( 22 )
1000 #define SPOOLSS_FIELD_PAGES_PRINTED ( 23 )
1001 #define SPOOLSS_FIELD_TOTAL_BYTES ( 24 )
1002 #define SPOOLSS_FIELD_BYTES_PRINTED ( 25 )
1003 #endif
1004 ;
1005
1006 enum spoolss_NotifyType
1007 #ifndef USE_UINT_ENUMS
1008  {
1009         SPOOLSS_NOTIFY_PRINTER=0,
1010         SPOOLSS_NOTIFY_JOB=1
1011 }
1012 #else
1013  { __donnot_use_enum_spoolss_NotifyType=0x7FFFFFFF}
1014 #define SPOOLSS_NOTIFY_PRINTER ( 0 )
1015 #define SPOOLSS_NOTIFY_JOB ( 1 )
1016 #endif
1017 ;
1018
1019 struct spoolss_NotifyOptionType {
1020         enum spoolss_NotifyType type;
1021         uint16_t u1;
1022         uint32_t u2;
1023         uint32_t u3;
1024         uint32_t count;
1025         enum spoolss_Field *fields;/* [unique,size_is(count)] */
1026 };
1027
1028 struct spoolss_NotifyOption {
1029         uint32_t version;/* [value(2)] */
1030         uint32_t flags;
1031         uint32_t count;
1032         struct spoolss_NotifyOptionType *types;/* [unique,size_is(count)] */
1033 };
1034
1035 struct spoolss_NotifyString {
1036         uint32_t size;
1037         const char *string;/* [unique,charset(UTF16),size_is(size/2)] */
1038 };
1039
1040 enum spoolss_NotifyTable
1041 #ifndef USE_UINT_ENUMS
1042  {
1043         NOTIFY_TABLE_DWORD=0x0001,
1044         NOTIFY_TABLE_STRING=0x0002,
1045         NOTIFY_TABLE_DEVMODE=0x0003,
1046         NOTIFY_TABLE_TIME=0x0004,
1047         NOTIFY_TABLE_SECURITYDESCRIPTOR=0x0005
1048 }
1049 #else
1050  { __donnot_use_enum_spoolss_NotifyTable=0x7FFFFFFF}
1051 #define NOTIFY_TABLE_DWORD ( 0x0001 )
1052 #define NOTIFY_TABLE_STRING ( 0x0002 )
1053 #define NOTIFY_TABLE_DEVMODE ( 0x0003 )
1054 #define NOTIFY_TABLE_TIME ( 0x0004 )
1055 #define NOTIFY_TABLE_SECURITYDESCRIPTOR ( 0x0005 )
1056 #endif
1057 ;
1058
1059 union spoolss_NotifyData {
1060         uint32_t integer[2];/* [case] */
1061         struct spoolss_NotifyString string;/* [case(2)] */
1062         struct spoolss_DeviceMode *devmode;/* [unique,case(3)] */
1063         struct spoolss_TimeCtr time;/* [case(4)] */
1064         struct sec_desc_buf sd;/* [case(5)] */
1065 }/* [switch_type(uint32)] */;
1066
1067 struct spoolss_Notify {
1068         enum spoolss_NotifyType type;
1069         enum spoolss_Field field;
1070         enum spoolss_NotifyTable variable_type;
1071         uint32_t job_id;
1072         union spoolss_NotifyData data;/* [switch_is(variable_type)] */
1073 };
1074
1075 struct spoolss_NotifyInfo {
1076         uint32_t version;/* [value(2)] */
1077         uint32_t flags;
1078         uint32_t count;
1079         struct spoolss_Notify *notifies;/* [size_is(count)] */
1080 };
1081
1082 union spoolss_ReplyPrinterInfo {
1083         struct spoolss_NotifyInfo *info0;/* [unique,case(0)] */
1084 }/* [switch_type(uint32)] */;
1085
1086 /* bitmap spoolss_PrinterNotifyFlags */
1087 #define PRINTER_NOTIFY_INFO_DISCARDED ( 0x00000001 )
1088 #define PRINTER_NOTIFY_INFO_DISCARDNOTED ( 0x00010000 )
1089 #define PRINTER_NOTIFY_INFO_COLOR_MISMATCH ( 0x00080000 )
1090
1091 struct spoolss_UserLevel1 {
1092         uint32_t size;
1093         const char *client;/* [unique,charset(UTF16)] */
1094         const char *user;/* [unique,charset(UTF16)] */
1095         uint32_t build;
1096         enum spoolss_MajorVersion major;
1097         enum spoolss_MinorVersion minor;
1098         enum spoolss_ProcessorArchitecture processor;
1099 };
1100
1101 struct spoolss_UserLevel2 {
1102         uint32_t not_used;
1103 };
1104
1105 struct spoolss_UserLevel3 {
1106         uint32_t size;
1107         uint32_t flags;
1108         uint32_t size2;
1109         const char *client;/* [unique,charset(UTF16)] */
1110         const char *user;/* [unique,charset(UTF16)] */
1111         uint32_t build;
1112         enum spoolss_MajorVersion major;
1113         enum spoolss_MinorVersion minor;
1114         enum spoolss_ProcessorArchitecture processor;
1115         uint64_t reserved;
1116 };
1117
1118 union spoolss_UserLevel {
1119         struct spoolss_UserLevel1 *level1;/* [unique,case] */
1120         struct spoolss_UserLevel2 *level2;/* [unique,case(2)] */
1121         struct spoolss_UserLevel3 *level3;/* [unique,case(3)] */
1122 }/* [switch_type(uint32)] */;
1123
1124 struct spoolss_UserLevelCtr {
1125         uint32_t level;
1126         union spoolss_UserLevel user_info;/* [switch_is(level)] */
1127 };
1128
1129 /* bitmap spoolss_AccessRights */
1130 #define SERVER_ACCESS_ADMINISTER ( 0x00000001 )
1131 #define SERVER_ACCESS_ENUMERATE ( 0x00000002 )
1132 #define PRINTER_ACCESS_ADMINISTER ( 0x00000004 )
1133 #define PRINTER_ACCESS_USE ( 0x00000008 )
1134 #define JOB_ACCESS_ADMINISTER ( 0x00000010 )
1135
1136 /* bitmap spoolss_DeleteDriverFlags */
1137 #define DPD_DELETE_UNUSED_FILES ( 0x00000001 )
1138 #define DPD_DELETE_SPECIFIC_VERSION ( 0x00000002 )
1139 #define DPD_DELETE_ALL_FILES ( 0x00000004 )
1140
1141 enum spoolss_PortProtocol
1142 #ifndef USE_UINT_ENUMS
1143  {
1144         PROTOCOL_RAWTCP_TYPE=1,
1145         PROTOCOL_LPR_TYPE=2
1146 }
1147 #else
1148  { __donnot_use_enum_spoolss_PortProtocol=0x7FFFFFFF}
1149 #define PROTOCOL_RAWTCP_TYPE ( 1 )
1150 #define PROTOCOL_LPR_TYPE ( 2 )
1151 #endif
1152 ;
1153
1154 struct spoolss_PortData1 {
1155         const char *portname;/* [charset(UTF16)] */
1156         uint32_t version;/* [value(0x00000001)] */
1157         enum spoolss_PortProtocol protocol;
1158         uint32_t size;/* [value(sizeof(r))] */
1159         uint32_t reserved;
1160         const char *hostaddress;/* [charset(UTF16)] */
1161         const char *snmpcommunity;/* [charset(UTF16)] */
1162         uint32_t dblspool;
1163         const char *queue;/* [charset(UTF16)] */
1164         const char *ip_address;/* [charset(UTF16)] */
1165         const char *hardware_address;/* [charset(UTF16)] */
1166         const char *device_type;/* [charset(UTF16)] */
1167         uint32_t port_number;
1168         uint32_t snmp_enabled;
1169         uint32_t snmp_dev_index;
1170 }/* [public] */;
1171
1172 struct spoolss_MonitorUi {
1173         const char *dll_name;/* [charset(UTF16)] */
1174 }/* [public] */;
1175
1176 /* bitmap spoolss_AddPrinterDriverExFlags */
1177 #define APD_STRICT_UPGRADE ( 0x00000001 )
1178 #define APD_STRICT_DOWNGRADE ( 0x00000002 )
1179 #define APD_COPY_ALL_FILES ( 0x00000004 )
1180 #define APD_COPY_NEW_FILES ( 0x00000008 )
1181 #define APD_COPY_FROM_DIRECTORY ( 0x00000010 )
1182 #define APD_DONT_COPY_FILES_TO_CLUSTER ( 0x00001000 )
1183 #define APD_COPY_TO_ALL_SPOOLERS ( 0x00002000 )
1184 #define APD_RETURN_BLOCKING_STATUS_CODE ( 0x00010000 )
1185
1186
1187 struct _spoolss_EnumPrinters {
1188         struct {
1189                 uint32_t flags;
1190                 const char *server;/* [unique,charset(UTF16)] */
1191                 uint32_t level;
1192                 DATA_BLOB *buffer;/* [unique] */
1193                 uint32_t offered;
1194         } in;
1195
1196         struct {
1197                 DATA_BLOB *info;/* [unique] */
1198                 uint32_t *needed;/* [ref] */
1199                 uint32_t *count;/* [ref] */
1200                 WERROR result;
1201         } out;
1202
1203 };
1204
1205
1206 struct __spoolss_EnumPrinters {
1207         struct {
1208                 uint32_t level;
1209                 uint32_t count;
1210         } in;
1211
1212         struct {
1213                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
1214         } out;
1215
1216 };
1217
1218
1219 struct spoolss_EnumPrinters {
1220         struct {
1221                 uint32_t flags;
1222                 const char *server;/* [unique,charset(UTF16)] */
1223                 uint32_t level;
1224                 DATA_BLOB *buffer;/* [unique] */
1225                 uint32_t offered;
1226         } in;
1227
1228         struct {
1229                 uint32_t *count;/* [ref] */
1230                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1231                 uint32_t *needed;/* [ref] */
1232                 WERROR result;
1233         } out;
1234
1235 };
1236
1237
1238 struct spoolss_OpenPrinter {
1239         struct {
1240                 const char *printername;/* [unique,charset(UTF16)] */
1241                 const char *datatype;/* [unique,charset(UTF16)] */
1242                 struct spoolss_DevmodeContainer devmode_ctr;
1243                 uint32_t access_mask;
1244         } in;
1245
1246         struct {
1247                 struct policy_handle *handle;/* [ref] */
1248                 WERROR result;
1249         } out;
1250
1251 };
1252
1253
1254 struct spoolss_SetJob {
1255         struct {
1256                 struct policy_handle *handle;/* [ref] */
1257                 uint32_t job_id;
1258                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
1259                 enum spoolss_JobControl command;
1260         } in;
1261
1262         struct {
1263                 WERROR result;
1264         } out;
1265
1266 };
1267
1268
1269 struct spoolss_GetJob {
1270         struct {
1271                 struct policy_handle *handle;/* [ref] */
1272                 uint32_t job_id;
1273                 uint32_t level;
1274                 DATA_BLOB *buffer;/* [unique] */
1275                 uint32_t offered;
1276         } in;
1277
1278         struct {
1279                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1280                 uint32_t *needed;/* [ref] */
1281                 WERROR result;
1282         } out;
1283
1284 };
1285
1286
1287 struct _spoolss_EnumJobs {
1288         struct {
1289                 struct policy_handle *handle;/* [ref] */
1290                 uint32_t firstjob;
1291                 uint32_t numjobs;
1292                 uint32_t level;
1293                 DATA_BLOB *buffer;/* [unique] */
1294                 uint32_t offered;
1295         } in;
1296
1297         struct {
1298                 DATA_BLOB *info;/* [unique] */
1299                 uint32_t *needed;/* [ref] */
1300                 uint32_t *count;/* [ref] */
1301                 WERROR result;
1302         } out;
1303
1304 };
1305
1306
1307 struct __spoolss_EnumJobs {
1308         struct {
1309                 uint32_t level;
1310                 uint32_t count;
1311         } in;
1312
1313         struct {
1314                 union spoolss_JobInfo *info;/* [switch_is(level)] */
1315         } out;
1316
1317 };
1318
1319
1320 struct spoolss_EnumJobs {
1321         struct {
1322                 struct policy_handle *handle;/* [ref] */
1323                 uint32_t firstjob;
1324                 uint32_t numjobs;
1325                 uint32_t level;
1326                 DATA_BLOB *buffer;/* [unique] */
1327                 uint32_t offered;
1328         } in;
1329
1330         struct {
1331                 uint32_t *count;/* [ref] */
1332                 union spoolss_JobInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1333                 uint32_t *needed;/* [ref] */
1334                 WERROR result;
1335         } out;
1336
1337 };
1338
1339
1340 struct spoolss_AddPrinter {
1341         struct {
1342                 WERROR result;
1343         } out;
1344
1345 };
1346
1347
1348 struct spoolss_DeletePrinter {
1349         struct {
1350                 struct policy_handle *handle;/* [ref] */
1351         } in;
1352
1353         struct {
1354                 WERROR result;
1355         } out;
1356
1357 };
1358
1359
1360 struct spoolss_SetPrinter {
1361         struct {
1362                 struct policy_handle *handle;/* [ref] */
1363                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
1364                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
1365                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
1366                 enum spoolss_PrinterControl command;
1367         } in;
1368
1369         struct {
1370                 WERROR result;
1371         } out;
1372
1373 };
1374
1375
1376 struct spoolss_GetPrinter {
1377         struct {
1378                 struct policy_handle *handle;/* [ref] */
1379                 uint32_t level;
1380                 DATA_BLOB *buffer;/* [unique] */
1381                 uint32_t offered;
1382         } in;
1383
1384         struct {
1385                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1386                 uint32_t *needed;/* [ref] */
1387                 WERROR result;
1388         } out;
1389
1390 };
1391
1392
1393 struct spoolss_AddPrinterDriver {
1394         struct {
1395                 const char *servername;/* [ref,charset(UTF16)] */
1396                 uint32_t level;
1397                 union spoolss_AddDriverInfo info;/* [switch_is(level)] */
1398         } in;
1399
1400         struct {
1401                 WERROR result;
1402         } out;
1403
1404 };
1405
1406
1407 struct _spoolss_EnumPrinterDrivers {
1408         struct {
1409                 const char *server;/* [unique,charset(UTF16)] */
1410                 const char *environment;/* [unique,charset(UTF16)] */
1411                 uint32_t level;
1412                 DATA_BLOB *buffer;/* [unique] */
1413                 uint32_t offered;
1414         } in;
1415
1416         struct {
1417                 DATA_BLOB *info;/* [unique] */
1418                 uint32_t *needed;/* [ref] */
1419                 uint32_t *count;/* [ref] */
1420                 WERROR result;
1421         } out;
1422
1423 };
1424
1425
1426 struct __spoolss_EnumPrinterDrivers {
1427         struct {
1428                 uint32_t level;
1429                 uint32_t count;
1430         } in;
1431
1432         struct {
1433                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
1434         } out;
1435
1436 };
1437
1438
1439 struct spoolss_EnumPrinterDrivers {
1440         struct {
1441                 const char *server;/* [unique,charset(UTF16)] */
1442                 const char *environment;/* [unique,charset(UTF16)] */
1443                 uint32_t level;
1444                 DATA_BLOB *buffer;/* [unique] */
1445                 uint32_t offered;
1446         } in;
1447
1448         struct {
1449                 uint32_t *count;/* [ref] */
1450                 union spoolss_DriverInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1451                 uint32_t *needed;/* [ref] */
1452                 WERROR result;
1453         } out;
1454
1455 };
1456
1457
1458 struct spoolss_GetPrinterDriver {
1459         struct {
1460                 WERROR result;
1461         } out;
1462
1463 };
1464
1465
1466 struct spoolss_GetPrinterDriverDirectory {
1467         struct {
1468                 const char *server;/* [unique,charset(UTF16)] */
1469                 const char *environment;/* [unique,charset(UTF16)] */
1470                 uint32_t level;
1471                 DATA_BLOB *buffer;/* [unique] */
1472                 uint32_t offered;
1473         } in;
1474
1475         struct {
1476                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1477                 uint32_t *needed;/* [ref] */
1478                 WERROR result;
1479         } out;
1480
1481 };
1482
1483
1484 struct spoolss_DeletePrinterDriver {
1485         struct {
1486                 const char *server;/* [unique,charset(UTF16)] */
1487                 const char *architecture;/* [charset(UTF16)] */
1488                 const char *driver;/* [charset(UTF16)] */
1489         } in;
1490
1491         struct {
1492                 WERROR result;
1493         } out;
1494
1495 };
1496
1497
1498 struct spoolss_AddPrintProcessor {
1499         struct {
1500                 const char *server;/* [unique,charset(UTF16)] */
1501                 const char *architecture;/* [charset(UTF16)] */
1502                 const char *path_name;/* [charset(UTF16)] */
1503                 const char *print_processor_name;/* [charset(UTF16)] */
1504         } in;
1505
1506         struct {
1507                 WERROR result;
1508         } out;
1509
1510 };
1511
1512
1513 struct _spoolss_EnumPrintProcessors {
1514         struct {
1515                 const char *servername;/* [unique,charset(UTF16)] */
1516                 const char *environment;/* [unique,charset(UTF16)] */
1517                 uint32_t level;
1518                 DATA_BLOB *buffer;/* [unique] */
1519                 uint32_t offered;
1520         } in;
1521
1522         struct {
1523                 DATA_BLOB *info;/* [unique] */
1524                 uint32_t *needed;/* [ref] */
1525                 uint32_t *count;/* [ref] */
1526                 WERROR result;
1527         } out;
1528
1529 };
1530
1531
1532 struct __spoolss_EnumPrintProcessors {
1533         struct {
1534                 uint32_t level;
1535                 uint32_t count;
1536         } in;
1537
1538         struct {
1539                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
1540         } out;
1541
1542 };
1543
1544
1545 struct spoolss_EnumPrintProcessors {
1546         struct {
1547                 const char *servername;/* [unique,charset(UTF16)] */
1548                 const char *environment;/* [unique,charset(UTF16)] */
1549                 uint32_t level;
1550                 DATA_BLOB *buffer;/* [unique] */
1551                 uint32_t offered;
1552         } in;
1553
1554         struct {
1555                 uint32_t *count;/* [ref] */
1556                 union spoolss_PrintProcessorInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1557                 uint32_t *needed;/* [ref] */
1558                 WERROR result;
1559         } out;
1560
1561 };
1562
1563
1564 struct spoolss_GetPrintProcessorDirectory {
1565         struct {
1566                 WERROR result;
1567         } out;
1568
1569 };
1570
1571
1572 struct spoolss_StartDocPrinter {
1573         struct {
1574                 struct policy_handle *handle;/* [ref] */
1575                 uint32_t level;
1576                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
1577         } in;
1578
1579         struct {
1580                 uint32_t *job_id;/* [ref] */
1581                 WERROR result;
1582         } out;
1583
1584 };
1585
1586
1587 struct spoolss_StartPagePrinter {
1588         struct {
1589                 struct policy_handle *handle;/* [ref] */
1590         } in;
1591
1592         struct {
1593                 WERROR result;
1594         } out;
1595
1596 };
1597
1598
1599 struct spoolss_WritePrinter {
1600         struct {
1601                 struct policy_handle *handle;/* [ref] */
1602                 DATA_BLOB data;
1603                 uint32_t _data_size;/* [value(r->in.data.length)] */
1604         } in;
1605
1606         struct {
1607                 uint32_t *num_written;/* [ref] */
1608                 WERROR result;
1609         } out;
1610
1611 };
1612
1613
1614 struct spoolss_EndPagePrinter {
1615         struct {
1616                 struct policy_handle *handle;/* [ref] */
1617         } in;
1618
1619         struct {
1620                 WERROR result;
1621         } out;
1622
1623 };
1624
1625
1626 struct spoolss_AbortPrinter {
1627         struct {
1628                 struct policy_handle *handle;/* [ref] */
1629         } in;
1630
1631         struct {
1632                 WERROR result;
1633         } out;
1634
1635 };
1636
1637
1638 struct spoolss_ReadPrinter {
1639         struct {
1640                 struct policy_handle *handle;/* [ref] */
1641                 uint32_t data_size;
1642         } in;
1643
1644         struct {
1645                 uint8_t *data;/* [ref,size_is(data_size)] */
1646                 uint32_t *_data_size;/* [ref] */
1647                 WERROR result;
1648         } out;
1649
1650 };
1651
1652
1653 struct spoolss_EndDocPrinter {
1654         struct {
1655                 struct policy_handle *handle;/* [ref] */
1656         } in;
1657
1658         struct {
1659                 WERROR result;
1660         } out;
1661
1662 };
1663
1664
1665 struct spoolss_AddJob {
1666         struct {
1667                 struct policy_handle *handle;/* [ref] */
1668                 uint32_t level;
1669                 uint32_t offered;
1670                 uint8_t *buffer;/* [unique,size_is(offered)] */
1671         } in;
1672
1673         struct {
1674                 uint32_t *needed;/* [ref] */
1675                 uint8_t *buffer;/* [unique,size_is(offered)] */
1676                 WERROR result;
1677         } out;
1678
1679 };
1680
1681
1682 struct spoolss_ScheduleJob {
1683         struct {
1684                 struct policy_handle *handle;/* [ref] */
1685                 uint32_t jobid;
1686         } in;
1687
1688         struct {
1689                 WERROR result;
1690         } out;
1691
1692 };
1693
1694
1695 struct _spoolss_GetPrinterData {
1696         struct {
1697                 struct policy_handle *handle;/* [ref] */
1698                 const char *value_name;/* [charset(UTF16)] */
1699                 uint32_t offered;
1700         } in;
1701
1702         struct {
1703                 enum spoolss_PrinterDataType *type;/* [ref] */
1704                 DATA_BLOB data;
1705                 uint32_t *needed;/* [ref] */
1706                 WERROR result;
1707         } out;
1708
1709 };
1710
1711
1712 struct __spoolss_GetPrinterData {
1713         struct {
1714                 enum spoolss_PrinterDataType type;
1715         } in;
1716
1717         struct {
1718                 union spoolss_PrinterData data;/* [switch_is(type)] */
1719         } out;
1720
1721 };
1722
1723
1724 struct spoolss_GetPrinterData {
1725         struct {
1726                 struct policy_handle *handle;/* [ref] */
1727                 const char *value_name;/* [charset(UTF16)] */
1728                 uint32_t offered;
1729         } in;
1730
1731         struct {
1732                 enum spoolss_PrinterDataType *type;/* [ref] */
1733                 union spoolss_PrinterData data;/* [subcontext_size(offered),subcontext(4),switch_is(*type)] */
1734                 uint32_t *needed;/* [ref] */
1735                 WERROR result;
1736         } out;
1737
1738 };
1739
1740
1741 struct _spoolss_SetPrinterData {
1742         struct {
1743                 struct policy_handle *handle;/* [ref] */
1744                 const char *value_name;/* [charset(UTF16)] */
1745                 enum spoolss_PrinterDataType type;
1746                 DATA_BLOB data;
1747                 uint32_t _offered;
1748         } in;
1749
1750         struct {
1751                 WERROR result;
1752         } out;
1753
1754 };
1755
1756
1757 struct __spoolss_SetPrinterData {
1758         struct {
1759                 enum spoolss_PrinterDataType type;
1760         } in;
1761
1762         struct {
1763                 union spoolss_PrinterData data;/* [switch_is(type)] */
1764         } out;
1765
1766 };
1767
1768
1769 struct spoolss_SetPrinterData {
1770         struct {
1771                 struct policy_handle *handle;/* [ref] */
1772                 const char *value_name;/* [charset(UTF16)] */
1773                 enum spoolss_PrinterDataType type;
1774                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
1775                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
1776         } in;
1777
1778         struct {
1779                 WERROR result;
1780         } out;
1781
1782 };
1783
1784
1785 struct spoolss_WaitForPrinterChange {
1786         struct {
1787                 WERROR result;
1788         } out;
1789
1790 };
1791
1792
1793 struct spoolss_ClosePrinter {
1794         struct {
1795                 struct policy_handle *handle;/* [ref] */
1796         } in;
1797
1798         struct {
1799                 struct policy_handle *handle;/* [ref] */
1800                 WERROR result;
1801         } out;
1802
1803 };
1804
1805
1806 struct spoolss_AddForm {
1807         struct {
1808                 struct policy_handle *handle;/* [ref] */
1809                 uint32_t level;
1810                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1811         } in;
1812
1813         struct {
1814                 WERROR result;
1815         } out;
1816
1817 };
1818
1819
1820 struct spoolss_DeleteForm {
1821         struct {
1822                 struct policy_handle *handle;/* [ref] */
1823                 const char *form_name;/* [charset(UTF16)] */
1824         } in;
1825
1826         struct {
1827                 WERROR result;
1828         } out;
1829
1830 };
1831
1832
1833 struct spoolss_GetForm {
1834         struct {
1835                 struct policy_handle *handle;/* [ref] */
1836                 const char *form_name;/* [charset(UTF16)] */
1837                 uint32_t level;
1838                 DATA_BLOB *buffer;/* [unique] */
1839                 uint32_t offered;
1840         } in;
1841
1842         struct {
1843                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1844                 uint32_t *needed;/* [ref] */
1845                 WERROR result;
1846         } out;
1847
1848 };
1849
1850
1851 struct spoolss_SetForm {
1852         struct {
1853                 struct policy_handle *handle;/* [ref] */
1854                 const char *form_name;/* [charset(UTF16)] */
1855                 uint32_t level;
1856                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1857         } in;
1858
1859         struct {
1860                 WERROR result;
1861         } out;
1862
1863 };
1864
1865
1866 struct _spoolss_EnumForms {
1867         struct {
1868                 struct policy_handle *handle;/* [ref] */
1869                 uint32_t level;
1870                 DATA_BLOB *buffer;/* [unique] */
1871                 uint32_t offered;
1872         } in;
1873
1874         struct {
1875                 DATA_BLOB *info;/* [unique] */
1876                 uint32_t *needed;/* [ref] */
1877                 uint32_t *count;/* [ref] */
1878                 WERROR result;
1879         } out;
1880
1881 };
1882
1883
1884 struct __spoolss_EnumForms {
1885         struct {
1886                 uint32_t level;
1887                 uint32_t count;
1888         } in;
1889
1890         struct {
1891                 union spoolss_FormInfo *info;/* [switch_is(level)] */
1892         } out;
1893
1894 };
1895
1896
1897 struct spoolss_EnumForms {
1898         struct {
1899                 struct policy_handle *handle;/* [ref] */
1900                 uint32_t level;
1901                 DATA_BLOB *buffer;/* [unique] */
1902                 uint32_t offered;
1903         } in;
1904
1905         struct {
1906                 uint32_t *count;/* [ref] */
1907                 union spoolss_FormInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1908                 uint32_t *needed;/* [ref] */
1909                 WERROR result;
1910         } out;
1911
1912 };
1913
1914
1915 struct _spoolss_EnumPorts {
1916         struct {
1917                 const char *servername;/* [unique,charset(UTF16)] */
1918                 uint32_t level;
1919                 DATA_BLOB *buffer;/* [unique] */
1920                 uint32_t offered;
1921         } in;
1922
1923         struct {
1924                 DATA_BLOB *info;/* [unique] */
1925                 uint32_t *needed;/* [ref] */
1926                 uint32_t *count;/* [ref] */
1927                 WERROR result;
1928         } out;
1929
1930 };
1931
1932
1933 struct __spoolss_EnumPorts {
1934         struct {
1935                 uint32_t level;
1936                 uint32_t count;
1937         } in;
1938
1939         struct {
1940                 union spoolss_PortInfo *info;/* [switch_is(level)] */
1941         } out;
1942
1943 };
1944
1945
1946 struct spoolss_EnumPorts {
1947         struct {
1948                 const char *servername;/* [unique,charset(UTF16)] */
1949                 uint32_t level;
1950                 DATA_BLOB *buffer;/* [unique] */
1951                 uint32_t offered;
1952         } in;
1953
1954         struct {
1955                 uint32_t *count;/* [ref] */
1956                 union spoolss_PortInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1957                 uint32_t *needed;/* [ref] */
1958                 WERROR result;
1959         } out;
1960
1961 };
1962
1963
1964 struct _spoolss_EnumMonitors {
1965         struct {
1966                 const char *servername;/* [unique,charset(UTF16)] */
1967                 uint32_t level;
1968                 DATA_BLOB *buffer;/* [unique] */
1969                 uint32_t offered;
1970         } in;
1971
1972         struct {
1973                 DATA_BLOB *info;/* [unique] */
1974                 uint32_t *needed;/* [ref] */
1975                 uint32_t *count;/* [ref] */
1976                 WERROR result;
1977         } out;
1978
1979 };
1980
1981
1982 struct __spoolss_EnumMonitors {
1983         struct {
1984                 uint32_t level;
1985                 uint32_t count;
1986         } in;
1987
1988         struct {
1989                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
1990         } out;
1991
1992 };
1993
1994
1995 struct spoolss_EnumMonitors {
1996         struct {
1997                 const char *servername;/* [unique,charset(UTF16)] */
1998                 uint32_t level;
1999                 DATA_BLOB *buffer;/* [unique] */
2000                 uint32_t offered;
2001         } in;
2002
2003         struct {
2004                 uint32_t *count;/* [ref] */
2005                 union spoolss_MonitorInfo *info;/* [unique,switch_is(level),size_is(*count)] */
2006                 uint32_t *needed;/* [ref] */
2007                 WERROR result;
2008         } out;
2009
2010 };
2011
2012
2013 struct spoolss_AddPort {
2014         struct {
2015                 const char *server_name;/* [unique,charset(UTF16)] */
2016                 uint32_t unknown;
2017                 const char *monitor_name;/* [charset(UTF16)] */
2018         } in;
2019
2020         struct {
2021                 WERROR result;
2022         } out;
2023
2024 };
2025
2026
2027 struct spoolss_ConfigurePort {
2028         struct {
2029                 WERROR result;
2030         } out;
2031
2032 };
2033
2034
2035 struct spoolss_DeletePort {
2036         struct {
2037                 WERROR result;
2038         } out;
2039
2040 };
2041
2042
2043 struct spoolss_CreatePrinterIC {
2044         struct {
2045                 WERROR result;
2046         } out;
2047
2048 };
2049
2050
2051 struct spoolss_PlayGDIScriptOnPrinterIC {
2052         struct {
2053                 WERROR result;
2054         } out;
2055
2056 };
2057
2058
2059 struct spoolss_DeletePrinterIC {
2060         struct {
2061                 WERROR result;
2062         } out;
2063
2064 };
2065
2066
2067 struct spoolss_AddPrinterConnection {
2068         struct {
2069                 WERROR result;
2070         } out;
2071
2072 };
2073
2074
2075 struct spoolss_DeletePrinterConnection {
2076         struct {
2077                 WERROR result;
2078         } out;
2079
2080 };
2081
2082
2083 struct spoolss_PrinterMessageBox {
2084         struct {
2085                 WERROR result;
2086         } out;
2087
2088 };
2089
2090
2091 struct spoolss_AddMonitor {
2092         struct {
2093                 WERROR result;
2094         } out;
2095
2096 };
2097
2098
2099 struct spoolss_DeleteMonitor {
2100         struct {
2101                 WERROR result;
2102         } out;
2103
2104 };
2105
2106
2107 struct spoolss_DeletePrintProcessor {
2108         struct {
2109                 WERROR result;
2110         } out;
2111
2112 };
2113
2114
2115 struct spoolss_AddPrintProvidor {
2116         struct {
2117                 WERROR result;
2118         } out;
2119
2120 };
2121
2122
2123 struct spoolss_DeletePrintProvidor {
2124         struct {
2125                 WERROR result;
2126         } out;
2127
2128 };
2129
2130
2131 struct spoolss_EnumPrintProcDataTypes {
2132         struct {
2133                 WERROR result;
2134         } out;
2135
2136 };
2137
2138
2139 struct spoolss_ResetPrinter {
2140         struct {
2141                 struct policy_handle *handle;/* [ref] */
2142                 const char *data_type;/* [unique,charset(UTF16)] */
2143                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2144         } in;
2145
2146         struct {
2147                 WERROR result;
2148         } out;
2149
2150 };
2151
2152
2153 struct spoolss_GetPrinterDriver2 {
2154         struct {
2155                 struct policy_handle *handle;/* [ref] */
2156                 const char *architecture;/* [unique,charset(UTF16)] */
2157                 uint32_t level;
2158                 DATA_BLOB *buffer;/* [unique] */
2159                 uint32_t offered;
2160                 uint32_t client_major_version;
2161                 uint32_t client_minor_version;
2162         } in;
2163
2164         struct {
2165                 DATA_BLOB *info;/* [unique] */
2166                 uint32_t *needed;/* [ref] */
2167                 uint32_t *server_major_version;/* [ref] */
2168                 uint32_t *server_minor_version;/* [ref] */
2169                 WERROR result;
2170         } out;
2171
2172 };
2173
2174
2175 struct spoolss_FindFirstPrinterChangeNotification {
2176         struct {
2177                 WERROR result;
2178         } out;
2179
2180 };
2181
2182
2183 struct spoolss_FindNextPrinterChangeNotification {
2184         struct {
2185                 WERROR result;
2186         } out;
2187
2188 };
2189
2190
2191 struct spoolss_FindClosePrinterNotify {
2192         struct {
2193                 struct policy_handle *handle;/* [ref] */
2194         } in;
2195
2196         struct {
2197                 WERROR result;
2198         } out;
2199
2200 };
2201
2202
2203 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
2204         struct {
2205                 WERROR result;
2206         } out;
2207
2208 };
2209
2210
2211 struct spoolss_ReplyOpenPrinter {
2212         struct {
2213                 const char *server_name;/* [charset(UTF16)] */
2214                 uint32_t printer_local;
2215                 enum winreg_Type type;
2216                 uint32_t bufsize;/* [range(0,512)] */
2217                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2218         } in;
2219
2220         struct {
2221                 struct policy_handle *handle;/* [ref] */
2222                 WERROR result;
2223         } out;
2224
2225 };
2226
2227
2228 struct spoolss_RouterReplyPrinter {
2229         struct {
2230                 struct policy_handle *handle;/* [ref] */
2231                 uint32_t flags;
2232                 uint32_t bufsize;/* [range(0,512)] */
2233                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2234         } in;
2235
2236         struct {
2237                 WERROR result;
2238         } out;
2239
2240 };
2241
2242
2243 struct spoolss_ReplyClosePrinter {
2244         struct {
2245                 struct policy_handle *handle;/* [ref] */
2246         } in;
2247
2248         struct {
2249                 struct policy_handle *handle;/* [ref] */
2250                 WERROR result;
2251         } out;
2252
2253 };
2254
2255
2256 struct spoolss_AddPortEx {
2257         struct {
2258                 WERROR result;
2259         } out;
2260
2261 };
2262
2263
2264 struct spoolss_RouterFindFirstPrinterChangeNotification {
2265         struct {
2266                 WERROR result;
2267         } out;
2268
2269 };
2270
2271
2272 struct spoolss_SpoolerInit {
2273         struct {
2274                 WERROR result;
2275         } out;
2276
2277 };
2278
2279
2280 struct spoolss_ResetPrinterEx {
2281         struct {
2282                 WERROR result;
2283         } out;
2284
2285 };
2286
2287
2288 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
2289         struct {
2290                 struct policy_handle *handle;/* [ref] */
2291                 uint32_t flags;
2292                 uint32_t options;
2293                 const char *local_machine;/* [unique,charset(UTF16)] */
2294                 uint32_t printer_local;
2295                 struct spoolss_NotifyOption *notify_options;/* [unique] */
2296         } in;
2297
2298         struct {
2299                 WERROR result;
2300         } out;
2301
2302 };
2303
2304
2305 struct spoolss_RouterReplyPrinterEx {
2306         struct {
2307                 struct policy_handle *handle;/* [ref] */
2308                 uint32_t color;
2309                 uint32_t flags;
2310                 uint32_t reply_type;
2311                 union spoolss_ReplyPrinterInfo info;/* [switch_is(reply_type)] */
2312         } in;
2313
2314         struct {
2315                 uint32_t *reply_result;/* [ref] */
2316                 WERROR result;
2317         } out;
2318
2319 };
2320
2321
2322 struct spoolss_RouterRefreshPrinterChangeNotify {
2323         struct {
2324                 struct policy_handle *handle;/* [ref] */
2325                 uint32_t change_low;
2326                 struct spoolss_NotifyOption *options;/* [unique] */
2327         } in;
2328
2329         struct {
2330                 struct spoolss_NotifyInfo **info;/* [ref] */
2331                 WERROR result;
2332         } out;
2333
2334 };
2335
2336
2337 struct spoolss_44 {
2338         struct {
2339                 WERROR result;
2340         } out;
2341
2342 };
2343
2344
2345 struct spoolss_OpenPrinterEx {
2346         struct {
2347                 const char *printername;/* [unique,charset(UTF16)] */
2348                 const char *datatype;/* [unique,charset(UTF16)] */
2349                 struct spoolss_DevmodeContainer devmode_ctr;
2350                 uint32_t access_mask;
2351                 uint32_t level;
2352                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
2353         } in;
2354
2355         struct {
2356                 struct policy_handle *handle;/* [ref] */
2357                 WERROR result;
2358         } out;
2359
2360 };
2361
2362
2363 struct spoolss_AddPrinterEx {
2364         struct {
2365                 const char *server;/* [unique,charset(UTF16)] */
2366                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2367                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2368                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2369                 struct spoolss_UserLevelCtr *userlevel_ctr;/* [ref] */
2370         } in;
2371
2372         struct {
2373                 struct policy_handle *handle;/* [ref] */
2374                 WERROR result;
2375         } out;
2376
2377 };
2378
2379
2380 struct spoolss_47 {
2381         struct {
2382                 WERROR result;
2383         } out;
2384
2385 };
2386
2387
2388 struct spoolss_EnumPrinterData {
2389         struct {
2390                 struct policy_handle *handle;/* [ref] */
2391                 uint32_t enum_index;
2392                 uint32_t value_offered;
2393                 uint32_t data_offered;
2394         } in;
2395
2396         struct {
2397                 const char *value_name;/* [charset(UTF16),size_is(value_offered/2)] */
2398                 uint32_t *value_needed;/* [ref] */
2399                 uint32_t *printerdata_type;/* [ref] */
2400                 DATA_BLOB *buffer;/* [ref] */
2401                 uint32_t *data_needed;/* [ref] */
2402                 WERROR result;
2403         } out;
2404
2405 };
2406
2407
2408 struct spoolss_DeletePrinterData {
2409         struct {
2410                 struct policy_handle *handle;/* [ref] */
2411                 const char *value_name;/* [charset(UTF16)] */
2412         } in;
2413
2414         struct {
2415                 WERROR result;
2416         } out;
2417
2418 };
2419
2420
2421 struct spoolss_4a {
2422         struct {
2423                 WERROR result;
2424         } out;
2425
2426 };
2427
2428
2429 struct spoolss_4b {
2430         struct {
2431                 WERROR result;
2432         } out;
2433
2434 };
2435
2436
2437 struct spoolss_4c {
2438         struct {
2439                 WERROR result;
2440         } out;
2441
2442 };
2443
2444
2445 struct spoolss_SetPrinterDataEx {
2446         struct {
2447                 struct policy_handle *handle;/* [ref] */
2448                 const char *key_name;/* [charset(UTF16)] */
2449                 const char *value_name;/* [charset(UTF16)] */
2450                 uint32_t type;
2451                 uint8_t *buffer;/* [ref,size_is(offered)] */
2452                 uint32_t offered;
2453         } in;
2454
2455         struct {
2456                 WERROR result;
2457         } out;
2458
2459 };
2460
2461
2462 struct spoolss_GetPrinterDataEx {
2463         struct {
2464                 struct policy_handle *handle;/* [ref] */
2465                 const char *key_name;/* [charset(UTF16)] */
2466                 const char *value_name;/* [charset(UTF16)] */
2467                 uint32_t offered;
2468         } in;
2469
2470         struct {
2471                 uint32_t *type;/* [ref] */
2472                 uint8_t *buffer;/* [ref,size_is(offered)] */
2473                 uint32_t *needed;/* [ref] */
2474                 WERROR result;
2475         } out;
2476
2477 };
2478
2479
2480 struct spoolss_EnumPrinterDataEx {
2481         struct {
2482                 struct policy_handle *handle;/* [ref] */
2483                 const char *key_name;/* [charset(UTF16)] */
2484                 uint32_t offered;
2485         } in;
2486
2487         struct {
2488                 uint8_t *buffer;/* [ref,size_is(offered)] */
2489                 uint32_t *needed;/* [ref] */
2490                 uint32_t *count;/* [ref] */
2491                 WERROR result;
2492         } out;
2493
2494 };
2495
2496
2497 struct spoolss_EnumPrinterKey {
2498         struct {
2499                 struct policy_handle *handle;/* [ref] */
2500                 const char *key_name;/* [charset(UTF16)] */
2501                 uint32_t key_buffer_size;
2502         } in;
2503
2504         struct {
2505                 uint16_t *key_buffer;/* [ref,size_is(key_buffer_size/2)] */
2506                 uint32_t *needed;/* [ref] */
2507                 WERROR result;
2508         } out;
2509
2510 };
2511
2512
2513 struct spoolss_DeletePrinterDataEx {
2514         struct {
2515                 struct policy_handle *handle;/* [ref] */
2516                 const char *key_name;/* [charset(UTF16)] */
2517                 const char *value_name;/* [charset(UTF16)] */
2518         } in;
2519
2520         struct {
2521                 WERROR result;
2522         } out;
2523
2524 };
2525
2526
2527 struct spoolss_DeletePrinterKey {
2528         struct {
2529                 struct policy_handle *handle;/* [ref] */
2530                 const char *key_name;/* [charset(UTF16)] */
2531         } in;
2532
2533         struct {
2534                 WERROR result;
2535         } out;
2536
2537 };
2538
2539
2540 struct spoolss_53 {
2541         struct {
2542                 WERROR result;
2543         } out;
2544
2545 };
2546
2547
2548 struct spoolss_DeletePrinterDriverEx {
2549         struct {
2550                 const char *server;/* [unique,charset(UTF16)] */
2551                 const char *architecture;/* [charset(UTF16)] */
2552                 const char *driver;/* [charset(UTF16)] */
2553                 uint32_t delete_flags;
2554                 uint32_t version;
2555         } in;
2556
2557         struct {
2558                 WERROR result;
2559         } out;
2560
2561 };
2562
2563
2564 struct spoolss_55 {
2565         struct {
2566                 WERROR result;
2567         } out;
2568
2569 };
2570
2571
2572 struct spoolss_56 {
2573         struct {
2574                 WERROR result;
2575         } out;
2576
2577 };
2578
2579
2580 struct spoolss_57 {
2581         struct {
2582                 WERROR result;
2583         } out;
2584
2585 };
2586
2587
2588 struct spoolss_XcvData {
2589         struct {
2590                 struct policy_handle *handle;/* [ref] */
2591                 const char *function_name;/* [charset(UTF16)] */
2592                 DATA_BLOB in_data;
2593                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
2594                 uint32_t out_data_size;
2595                 uint32_t *status_code;/* [ref] */
2596         } in;
2597
2598         struct {
2599                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
2600                 uint32_t *needed;/* [ref] */
2601                 uint32_t *status_code;/* [ref] */
2602                 WERROR result;
2603         } out;
2604
2605 };
2606
2607
2608 struct spoolss_AddPrinterDriverEx {
2609         struct {
2610                 const char *servername;/* [ref,charset(UTF16)] */
2611                 uint32_t level;
2612                 union spoolss_AddDriverInfo info;/* [switch_is(level)] */
2613                 uint32_t flags;
2614         } in;
2615
2616         struct {
2617                 WERROR result;
2618         } out;
2619
2620 };
2621
2622
2623 struct spoolss_5a {
2624         struct {
2625                 WERROR result;
2626         } out;
2627
2628 };
2629
2630
2631 struct spoolss_5b {
2632         struct {
2633                 WERROR result;
2634         } out;
2635
2636 };
2637
2638
2639 struct spoolss_5c {
2640         struct {
2641                 WERROR result;
2642         } out;
2643
2644 };
2645
2646
2647 struct spoolss_5d {
2648         struct {
2649                 WERROR result;
2650         } out;
2651
2652 };
2653
2654
2655 struct spoolss_5e {
2656         struct {
2657                 WERROR result;
2658         } out;
2659
2660 };
2661
2662
2663 struct spoolss_5f {
2664         struct {
2665                 WERROR result;
2666         } out;
2667
2668 };
2669
2670 #endif /* _HEADER_spoolss */