s3: re-run make samba3-idl.
[amitay/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 /* bitmap spoolss_AddPrinterDriverExFlags */
1142 #define APD_STRICT_UPGRADE ( 0x00000001 )
1143 #define APD_STRICT_DOWNGRADE ( 0x00000002 )
1144 #define APD_COPY_ALL_FILES ( 0x00000004 )
1145 #define APD_COPY_NEW_FILES ( 0x00000008 )
1146 #define APD_COPY_FROM_DIRECTORY ( 0x00000010 )
1147 #define APD_DONT_COPY_FILES_TO_CLUSTER ( 0x00001000 )
1148 #define APD_COPY_TO_ALL_SPOOLERS ( 0x00002000 )
1149 #define APD_RETURN_BLOCKING_STATUS_CODE ( 0x00010000 )
1150
1151
1152 struct _spoolss_EnumPrinters {
1153         struct {
1154                 uint32_t flags;
1155                 const char *server;/* [unique,charset(UTF16)] */
1156                 uint32_t level;
1157                 DATA_BLOB *buffer;/* [unique] */
1158                 uint32_t offered;
1159         } in;
1160
1161         struct {
1162                 DATA_BLOB *info;/* [unique] */
1163                 uint32_t *needed;/* [ref] */
1164                 uint32_t *count;/* [ref] */
1165                 WERROR result;
1166         } out;
1167
1168 };
1169
1170
1171 struct __spoolss_EnumPrinters {
1172         struct {
1173                 uint32_t level;
1174                 uint32_t count;
1175         } in;
1176
1177         struct {
1178                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
1179         } out;
1180
1181 };
1182
1183
1184 struct spoolss_EnumPrinters {
1185         struct {
1186                 uint32_t flags;
1187                 const char *server;/* [unique,charset(UTF16)] */
1188                 uint32_t level;
1189                 DATA_BLOB *buffer;/* [unique] */
1190                 uint32_t offered;
1191         } in;
1192
1193         struct {
1194                 uint32_t *count;/* [ref] */
1195                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1196                 uint32_t *needed;/* [ref] */
1197                 WERROR result;
1198         } out;
1199
1200 };
1201
1202
1203 struct spoolss_OpenPrinter {
1204         struct {
1205                 const char *printername;/* [unique,charset(UTF16)] */
1206                 const char *datatype;/* [unique,charset(UTF16)] */
1207                 struct spoolss_DevmodeContainer devmode_ctr;
1208                 uint32_t access_mask;
1209         } in;
1210
1211         struct {
1212                 struct policy_handle *handle;/* [ref] */
1213                 WERROR result;
1214         } out;
1215
1216 };
1217
1218
1219 struct spoolss_SetJob {
1220         struct {
1221                 struct policy_handle *handle;/* [ref] */
1222                 uint32_t job_id;
1223                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
1224                 enum spoolss_JobControl command;
1225         } in;
1226
1227         struct {
1228                 WERROR result;
1229         } out;
1230
1231 };
1232
1233
1234 struct spoolss_GetJob {
1235         struct {
1236                 struct policy_handle *handle;/* [ref] */
1237                 uint32_t job_id;
1238                 uint32_t level;
1239                 DATA_BLOB *buffer;/* [unique] */
1240                 uint32_t offered;
1241         } in;
1242
1243         struct {
1244                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1245                 uint32_t *needed;/* [ref] */
1246                 WERROR result;
1247         } out;
1248
1249 };
1250
1251
1252 struct _spoolss_EnumJobs {
1253         struct {
1254                 struct policy_handle *handle;/* [ref] */
1255                 uint32_t firstjob;
1256                 uint32_t numjobs;
1257                 uint32_t level;
1258                 DATA_BLOB *buffer;/* [unique] */
1259                 uint32_t offered;
1260         } in;
1261
1262         struct {
1263                 DATA_BLOB *info;/* [unique] */
1264                 uint32_t *needed;/* [ref] */
1265                 uint32_t *count;/* [ref] */
1266                 WERROR result;
1267         } out;
1268
1269 };
1270
1271
1272 struct __spoolss_EnumJobs {
1273         struct {
1274                 uint32_t level;
1275                 uint32_t count;
1276         } in;
1277
1278         struct {
1279                 union spoolss_JobInfo *info;/* [switch_is(level)] */
1280         } out;
1281
1282 };
1283
1284
1285 struct spoolss_EnumJobs {
1286         struct {
1287                 struct policy_handle *handle;/* [ref] */
1288                 uint32_t firstjob;
1289                 uint32_t numjobs;
1290                 uint32_t level;
1291                 DATA_BLOB *buffer;/* [unique] */
1292                 uint32_t offered;
1293         } in;
1294
1295         struct {
1296                 uint32_t *count;/* [ref] */
1297                 union spoolss_JobInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1298                 uint32_t *needed;/* [ref] */
1299                 WERROR result;
1300         } out;
1301
1302 };
1303
1304
1305 struct spoolss_AddPrinter {
1306         struct {
1307                 WERROR result;
1308         } out;
1309
1310 };
1311
1312
1313 struct spoolss_DeletePrinter {
1314         struct {
1315                 struct policy_handle *handle;/* [ref] */
1316         } in;
1317
1318         struct {
1319                 WERROR result;
1320         } out;
1321
1322 };
1323
1324
1325 struct spoolss_SetPrinter {
1326         struct {
1327                 struct policy_handle *handle;/* [ref] */
1328                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
1329                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
1330                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
1331                 enum spoolss_PrinterControl command;
1332         } in;
1333
1334         struct {
1335                 WERROR result;
1336         } out;
1337
1338 };
1339
1340
1341 struct spoolss_GetPrinter {
1342         struct {
1343                 struct policy_handle *handle;/* [ref] */
1344                 uint32_t level;
1345                 DATA_BLOB *buffer;/* [unique] */
1346                 uint32_t offered;
1347         } in;
1348
1349         struct {
1350                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1351                 uint32_t *needed;/* [ref] */
1352                 WERROR result;
1353         } out;
1354
1355 };
1356
1357
1358 struct spoolss_AddPrinterDriver {
1359         struct {
1360                 const char *servername;/* [ref,charset(UTF16)] */
1361                 uint32_t level;
1362                 union spoolss_AddDriverInfo info;/* [switch_is(level)] */
1363         } in;
1364
1365         struct {
1366                 WERROR result;
1367         } out;
1368
1369 };
1370
1371
1372 struct _spoolss_EnumPrinterDrivers {
1373         struct {
1374                 const char *server;/* [unique,charset(UTF16)] */
1375                 const char *environment;/* [unique,charset(UTF16)] */
1376                 uint32_t level;
1377                 DATA_BLOB *buffer;/* [unique] */
1378                 uint32_t offered;
1379         } in;
1380
1381         struct {
1382                 DATA_BLOB *info;/* [unique] */
1383                 uint32_t *needed;/* [ref] */
1384                 uint32_t *count;/* [ref] */
1385                 WERROR result;
1386         } out;
1387
1388 };
1389
1390
1391 struct __spoolss_EnumPrinterDrivers {
1392         struct {
1393                 uint32_t level;
1394                 uint32_t count;
1395         } in;
1396
1397         struct {
1398                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
1399         } out;
1400
1401 };
1402
1403
1404 struct spoolss_EnumPrinterDrivers {
1405         struct {
1406                 const char *server;/* [unique,charset(UTF16)] */
1407                 const char *environment;/* [unique,charset(UTF16)] */
1408                 uint32_t level;
1409                 DATA_BLOB *buffer;/* [unique] */
1410                 uint32_t offered;
1411         } in;
1412
1413         struct {
1414                 uint32_t *count;/* [ref] */
1415                 union spoolss_DriverInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1416                 uint32_t *needed;/* [ref] */
1417                 WERROR result;
1418         } out;
1419
1420 };
1421
1422
1423 struct spoolss_GetPrinterDriver {
1424         struct {
1425                 WERROR result;
1426         } out;
1427
1428 };
1429
1430
1431 struct spoolss_GetPrinterDriverDirectory {
1432         struct {
1433                 const char *server;/* [unique,charset(UTF16)] */
1434                 const char *environment;/* [unique,charset(UTF16)] */
1435                 uint32_t level;
1436                 DATA_BLOB *buffer;/* [unique] */
1437                 uint32_t offered;
1438         } in;
1439
1440         struct {
1441                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1442                 uint32_t *needed;/* [ref] */
1443                 WERROR result;
1444         } out;
1445
1446 };
1447
1448
1449 struct spoolss_DeletePrinterDriver {
1450         struct {
1451                 const char *server;/* [unique,charset(UTF16)] */
1452                 const char *architecture;/* [charset(UTF16)] */
1453                 const char *driver;/* [charset(UTF16)] */
1454         } in;
1455
1456         struct {
1457                 WERROR result;
1458         } out;
1459
1460 };
1461
1462
1463 struct spoolss_AddPrintProcessor {
1464         struct {
1465                 const char *server;/* [unique,charset(UTF16)] */
1466                 const char *architecture;/* [charset(UTF16)] */
1467                 const char *path_name;/* [charset(UTF16)] */
1468                 const char *print_processor_name;/* [charset(UTF16)] */
1469         } in;
1470
1471         struct {
1472                 WERROR result;
1473         } out;
1474
1475 };
1476
1477
1478 struct _spoolss_EnumPrintProcessors {
1479         struct {
1480                 const char *servername;/* [unique,charset(UTF16)] */
1481                 const char *environment;/* [unique,charset(UTF16)] */
1482                 uint32_t level;
1483                 DATA_BLOB *buffer;/* [unique] */
1484                 uint32_t offered;
1485         } in;
1486
1487         struct {
1488                 DATA_BLOB *info;/* [unique] */
1489                 uint32_t *needed;/* [ref] */
1490                 uint32_t *count;/* [ref] */
1491                 WERROR result;
1492         } out;
1493
1494 };
1495
1496
1497 struct __spoolss_EnumPrintProcessors {
1498         struct {
1499                 uint32_t level;
1500                 uint32_t count;
1501         } in;
1502
1503         struct {
1504                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
1505         } out;
1506
1507 };
1508
1509
1510 struct spoolss_EnumPrintProcessors {
1511         struct {
1512                 const char *servername;/* [unique,charset(UTF16)] */
1513                 const char *environment;/* [unique,charset(UTF16)] */
1514                 uint32_t level;
1515                 DATA_BLOB *buffer;/* [unique] */
1516                 uint32_t offered;
1517         } in;
1518
1519         struct {
1520                 uint32_t *count;/* [ref] */
1521                 union spoolss_PrintProcessorInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1522                 uint32_t *needed;/* [ref] */
1523                 WERROR result;
1524         } out;
1525
1526 };
1527
1528
1529 struct spoolss_GetPrintProcessorDirectory {
1530         struct {
1531                 WERROR result;
1532         } out;
1533
1534 };
1535
1536
1537 struct spoolss_StartDocPrinter {
1538         struct {
1539                 struct policy_handle *handle;/* [ref] */
1540                 uint32_t level;
1541                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
1542         } in;
1543
1544         struct {
1545                 uint32_t *job_id;/* [ref] */
1546                 WERROR result;
1547         } out;
1548
1549 };
1550
1551
1552 struct spoolss_StartPagePrinter {
1553         struct {
1554                 struct policy_handle *handle;/* [ref] */
1555         } in;
1556
1557         struct {
1558                 WERROR result;
1559         } out;
1560
1561 };
1562
1563
1564 struct spoolss_WritePrinter {
1565         struct {
1566                 struct policy_handle *handle;/* [ref] */
1567                 DATA_BLOB data;
1568                 uint32_t _data_size;/* [value(r->in.data.length)] */
1569         } in;
1570
1571         struct {
1572                 uint32_t *num_written;/* [ref] */
1573                 WERROR result;
1574         } out;
1575
1576 };
1577
1578
1579 struct spoolss_EndPagePrinter {
1580         struct {
1581                 struct policy_handle *handle;/* [ref] */
1582         } in;
1583
1584         struct {
1585                 WERROR result;
1586         } out;
1587
1588 };
1589
1590
1591 struct spoolss_AbortPrinter {
1592         struct {
1593                 struct policy_handle *handle;/* [ref] */
1594         } in;
1595
1596         struct {
1597                 WERROR result;
1598         } out;
1599
1600 };
1601
1602
1603 struct spoolss_ReadPrinter {
1604         struct {
1605                 struct policy_handle *handle;/* [ref] */
1606                 uint32_t data_size;
1607         } in;
1608
1609         struct {
1610                 uint8_t *data;/* [ref,size_is(data_size)] */
1611                 uint32_t *_data_size;/* [ref] */
1612                 WERROR result;
1613         } out;
1614
1615 };
1616
1617
1618 struct spoolss_EndDocPrinter {
1619         struct {
1620                 struct policy_handle *handle;/* [ref] */
1621         } in;
1622
1623         struct {
1624                 WERROR result;
1625         } out;
1626
1627 };
1628
1629
1630 struct spoolss_AddJob {
1631         struct {
1632                 struct policy_handle *handle;/* [ref] */
1633                 uint32_t level;
1634                 uint32_t offered;
1635                 uint8_t *buffer;/* [unique,size_is(offered)] */
1636         } in;
1637
1638         struct {
1639                 uint32_t *needed;/* [ref] */
1640                 uint8_t *buffer;/* [unique,size_is(offered)] */
1641                 WERROR result;
1642         } out;
1643
1644 };
1645
1646
1647 struct spoolss_ScheduleJob {
1648         struct {
1649                 struct policy_handle *handle;/* [ref] */
1650                 uint32_t jobid;
1651         } in;
1652
1653         struct {
1654                 WERROR result;
1655         } out;
1656
1657 };
1658
1659
1660 struct _spoolss_GetPrinterData {
1661         struct {
1662                 struct policy_handle *handle;/* [ref] */
1663                 const char *value_name;/* [charset(UTF16)] */
1664                 uint32_t offered;
1665         } in;
1666
1667         struct {
1668                 enum spoolss_PrinterDataType *type;/* [ref] */
1669                 DATA_BLOB data;
1670                 uint32_t *needed;/* [ref] */
1671                 WERROR result;
1672         } out;
1673
1674 };
1675
1676
1677 struct __spoolss_GetPrinterData {
1678         struct {
1679                 enum spoolss_PrinterDataType type;
1680         } in;
1681
1682         struct {
1683                 union spoolss_PrinterData data;/* [switch_is(type)] */
1684         } out;
1685
1686 };
1687
1688
1689 struct spoolss_GetPrinterData {
1690         struct {
1691                 struct policy_handle *handle;/* [ref] */
1692                 const char *value_name;/* [charset(UTF16)] */
1693                 uint32_t offered;
1694         } in;
1695
1696         struct {
1697                 enum spoolss_PrinterDataType *type;/* [ref] */
1698                 union spoolss_PrinterData data;/* [subcontext_size(offered),subcontext(4),switch_is(*type)] */
1699                 uint32_t *needed;/* [ref] */
1700                 WERROR result;
1701         } out;
1702
1703 };
1704
1705
1706 struct _spoolss_SetPrinterData {
1707         struct {
1708                 struct policy_handle *handle;/* [ref] */
1709                 const char *value_name;/* [charset(UTF16)] */
1710                 enum spoolss_PrinterDataType type;
1711                 DATA_BLOB data;
1712                 uint32_t _offered;
1713         } in;
1714
1715         struct {
1716                 WERROR result;
1717         } out;
1718
1719 };
1720
1721
1722 struct __spoolss_SetPrinterData {
1723         struct {
1724                 enum spoolss_PrinterDataType type;
1725         } in;
1726
1727         struct {
1728                 union spoolss_PrinterData data;/* [switch_is(type)] */
1729         } out;
1730
1731 };
1732
1733
1734 struct spoolss_SetPrinterData {
1735         struct {
1736                 struct policy_handle *handle;/* [ref] */
1737                 const char *value_name;/* [charset(UTF16)] */
1738                 enum spoolss_PrinterDataType type;
1739                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
1740                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
1741         } in;
1742
1743         struct {
1744                 WERROR result;
1745         } out;
1746
1747 };
1748
1749
1750 struct spoolss_WaitForPrinterChange {
1751         struct {
1752                 WERROR result;
1753         } out;
1754
1755 };
1756
1757
1758 struct spoolss_ClosePrinter {
1759         struct {
1760                 struct policy_handle *handle;/* [ref] */
1761         } in;
1762
1763         struct {
1764                 struct policy_handle *handle;/* [ref] */
1765                 WERROR result;
1766         } out;
1767
1768 };
1769
1770
1771 struct spoolss_AddForm {
1772         struct {
1773                 struct policy_handle *handle;/* [ref] */
1774                 uint32_t level;
1775                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1776         } in;
1777
1778         struct {
1779                 WERROR result;
1780         } out;
1781
1782 };
1783
1784
1785 struct spoolss_DeleteForm {
1786         struct {
1787                 struct policy_handle *handle;/* [ref] */
1788                 const char *form_name;/* [charset(UTF16)] */
1789         } in;
1790
1791         struct {
1792                 WERROR result;
1793         } out;
1794
1795 };
1796
1797
1798 struct spoolss_GetForm {
1799         struct {
1800                 struct policy_handle *handle;/* [ref] */
1801                 const char *form_name;/* [charset(UTF16)] */
1802                 uint32_t level;
1803                 DATA_BLOB *buffer;/* [unique] */
1804                 uint32_t offered;
1805         } in;
1806
1807         struct {
1808                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1809                 uint32_t *needed;/* [ref] */
1810                 WERROR result;
1811         } out;
1812
1813 };
1814
1815
1816 struct spoolss_SetForm {
1817         struct {
1818                 struct policy_handle *handle;/* [ref] */
1819                 const char *form_name;/* [charset(UTF16)] */
1820                 uint32_t level;
1821                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1822         } in;
1823
1824         struct {
1825                 WERROR result;
1826         } out;
1827
1828 };
1829
1830
1831 struct _spoolss_EnumForms {
1832         struct {
1833                 struct policy_handle *handle;/* [ref] */
1834                 uint32_t level;
1835                 DATA_BLOB *buffer;/* [unique] */
1836                 uint32_t offered;
1837         } in;
1838
1839         struct {
1840                 DATA_BLOB *info;/* [unique] */
1841                 uint32_t *needed;/* [ref] */
1842                 uint32_t *count;/* [ref] */
1843                 WERROR result;
1844         } out;
1845
1846 };
1847
1848
1849 struct __spoolss_EnumForms {
1850         struct {
1851                 uint32_t level;
1852                 uint32_t count;
1853         } in;
1854
1855         struct {
1856                 union spoolss_FormInfo *info;/* [switch_is(level)] */
1857         } out;
1858
1859 };
1860
1861
1862 struct spoolss_EnumForms {
1863         struct {
1864                 struct policy_handle *handle;/* [ref] */
1865                 uint32_t level;
1866                 DATA_BLOB *buffer;/* [unique] */
1867                 uint32_t offered;
1868         } in;
1869
1870         struct {
1871                 uint32_t *count;/* [ref] */
1872                 union spoolss_FormInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1873                 uint32_t *needed;/* [ref] */
1874                 WERROR result;
1875         } out;
1876
1877 };
1878
1879
1880 struct _spoolss_EnumPorts {
1881         struct {
1882                 const char *servername;/* [unique,charset(UTF16)] */
1883                 uint32_t level;
1884                 DATA_BLOB *buffer;/* [unique] */
1885                 uint32_t offered;
1886         } in;
1887
1888         struct {
1889                 DATA_BLOB *info;/* [unique] */
1890                 uint32_t *needed;/* [ref] */
1891                 uint32_t *count;/* [ref] */
1892                 WERROR result;
1893         } out;
1894
1895 };
1896
1897
1898 struct __spoolss_EnumPorts {
1899         struct {
1900                 uint32_t level;
1901                 uint32_t count;
1902         } in;
1903
1904         struct {
1905                 union spoolss_PortInfo *info;/* [switch_is(level)] */
1906         } out;
1907
1908 };
1909
1910
1911 struct spoolss_EnumPorts {
1912         struct {
1913                 const char *servername;/* [unique,charset(UTF16)] */
1914                 uint32_t level;
1915                 DATA_BLOB *buffer;/* [unique] */
1916                 uint32_t offered;
1917         } in;
1918
1919         struct {
1920                 uint32_t *count;/* [ref] */
1921                 union spoolss_PortInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1922                 uint32_t *needed;/* [ref] */
1923                 WERROR result;
1924         } out;
1925
1926 };
1927
1928
1929 struct _spoolss_EnumMonitors {
1930         struct {
1931                 const char *servername;/* [unique,charset(UTF16)] */
1932                 uint32_t level;
1933                 DATA_BLOB *buffer;/* [unique] */
1934                 uint32_t offered;
1935         } in;
1936
1937         struct {
1938                 DATA_BLOB *info;/* [unique] */
1939                 uint32_t *needed;/* [ref] */
1940                 uint32_t *count;/* [ref] */
1941                 WERROR result;
1942         } out;
1943
1944 };
1945
1946
1947 struct __spoolss_EnumMonitors {
1948         struct {
1949                 uint32_t level;
1950                 uint32_t count;
1951         } in;
1952
1953         struct {
1954                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
1955         } out;
1956
1957 };
1958
1959
1960 struct spoolss_EnumMonitors {
1961         struct {
1962                 const char *servername;/* [unique,charset(UTF16)] */
1963                 uint32_t level;
1964                 DATA_BLOB *buffer;/* [unique] */
1965                 uint32_t offered;
1966         } in;
1967
1968         struct {
1969                 uint32_t *count;/* [ref] */
1970                 union spoolss_MonitorInfo *info;/* [unique,switch_is(level),size_is(*count)] */
1971                 uint32_t *needed;/* [ref] */
1972                 WERROR result;
1973         } out;
1974
1975 };
1976
1977
1978 struct spoolss_AddPort {
1979         struct {
1980                 const char *server_name;/* [unique,charset(UTF16)] */
1981                 uint32_t unknown;
1982                 const char *monitor_name;/* [charset(UTF16)] */
1983         } in;
1984
1985         struct {
1986                 WERROR result;
1987         } out;
1988
1989 };
1990
1991
1992 struct spoolss_ConfigurePort {
1993         struct {
1994                 WERROR result;
1995         } out;
1996
1997 };
1998
1999
2000 struct spoolss_DeletePort {
2001         struct {
2002                 WERROR result;
2003         } out;
2004
2005 };
2006
2007
2008 struct spoolss_CreatePrinterIC {
2009         struct {
2010                 WERROR result;
2011         } out;
2012
2013 };
2014
2015
2016 struct spoolss_PlayGDIScriptOnPrinterIC {
2017         struct {
2018                 WERROR result;
2019         } out;
2020
2021 };
2022
2023
2024 struct spoolss_DeletePrinterIC {
2025         struct {
2026                 WERROR result;
2027         } out;
2028
2029 };
2030
2031
2032 struct spoolss_AddPrinterConnection {
2033         struct {
2034                 WERROR result;
2035         } out;
2036
2037 };
2038
2039
2040 struct spoolss_DeletePrinterConnection {
2041         struct {
2042                 WERROR result;
2043         } out;
2044
2045 };
2046
2047
2048 struct spoolss_PrinterMessageBox {
2049         struct {
2050                 WERROR result;
2051         } out;
2052
2053 };
2054
2055
2056 struct spoolss_AddMonitor {
2057         struct {
2058                 WERROR result;
2059         } out;
2060
2061 };
2062
2063
2064 struct spoolss_DeleteMonitor {
2065         struct {
2066                 WERROR result;
2067         } out;
2068
2069 };
2070
2071
2072 struct spoolss_DeletePrintProcessor {
2073         struct {
2074                 WERROR result;
2075         } out;
2076
2077 };
2078
2079
2080 struct spoolss_AddPrintProvidor {
2081         struct {
2082                 WERROR result;
2083         } out;
2084
2085 };
2086
2087
2088 struct spoolss_DeletePrintProvidor {
2089         struct {
2090                 WERROR result;
2091         } out;
2092
2093 };
2094
2095
2096 struct spoolss_EnumPrintProcDataTypes {
2097         struct {
2098                 WERROR result;
2099         } out;
2100
2101 };
2102
2103
2104 struct spoolss_ResetPrinter {
2105         struct {
2106                 struct policy_handle *handle;/* [ref] */
2107                 const char *data_type;/* [unique,charset(UTF16)] */
2108                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2109         } in;
2110
2111         struct {
2112                 WERROR result;
2113         } out;
2114
2115 };
2116
2117
2118 struct spoolss_GetPrinterDriver2 {
2119         struct {
2120                 struct policy_handle *handle;/* [ref] */
2121                 const char *architecture;/* [unique,charset(UTF16)] */
2122                 uint32_t level;
2123                 DATA_BLOB *buffer;/* [unique] */
2124                 uint32_t offered;
2125                 uint32_t client_major_version;
2126                 uint32_t client_minor_version;
2127         } in;
2128
2129         struct {
2130                 DATA_BLOB *info;/* [unique] */
2131                 uint32_t *needed;/* [ref] */
2132                 uint32_t *server_major_version;/* [ref] */
2133                 uint32_t *server_minor_version;/* [ref] */
2134                 WERROR result;
2135         } out;
2136
2137 };
2138
2139
2140 struct spoolss_FindFirstPrinterChangeNotification {
2141         struct {
2142                 WERROR result;
2143         } out;
2144
2145 };
2146
2147
2148 struct spoolss_FindNextPrinterChangeNotification {
2149         struct {
2150                 WERROR result;
2151         } out;
2152
2153 };
2154
2155
2156 struct spoolss_FindClosePrinterNotify {
2157         struct {
2158                 struct policy_handle *handle;/* [ref] */
2159         } in;
2160
2161         struct {
2162                 WERROR result;
2163         } out;
2164
2165 };
2166
2167
2168 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
2169         struct {
2170                 WERROR result;
2171         } out;
2172
2173 };
2174
2175
2176 struct spoolss_ReplyOpenPrinter {
2177         struct {
2178                 const char *server_name;/* [charset(UTF16)] */
2179                 uint32_t printer_local;
2180                 enum winreg_Type type;
2181                 uint32_t bufsize;/* [range(0,512)] */
2182                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2183         } in;
2184
2185         struct {
2186                 struct policy_handle *handle;/* [ref] */
2187                 WERROR result;
2188         } out;
2189
2190 };
2191
2192
2193 struct spoolss_RouterReplyPrinter {
2194         struct {
2195                 struct policy_handle *handle;/* [ref] */
2196                 uint32_t flags;
2197                 uint32_t bufsize;/* [range(0,512)] */
2198                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2199         } in;
2200
2201         struct {
2202                 WERROR result;
2203         } out;
2204
2205 };
2206
2207
2208 struct spoolss_ReplyClosePrinter {
2209         struct {
2210                 struct policy_handle *handle;/* [ref] */
2211         } in;
2212
2213         struct {
2214                 struct policy_handle *handle;/* [ref] */
2215                 WERROR result;
2216         } out;
2217
2218 };
2219
2220
2221 struct spoolss_AddPortEx {
2222         struct {
2223                 WERROR result;
2224         } out;
2225
2226 };
2227
2228
2229 struct spoolss_RouterFindFirstPrinterChangeNotification {
2230         struct {
2231                 WERROR result;
2232         } out;
2233
2234 };
2235
2236
2237 struct spoolss_SpoolerInit {
2238         struct {
2239                 WERROR result;
2240         } out;
2241
2242 };
2243
2244
2245 struct spoolss_ResetPrinterEx {
2246         struct {
2247                 WERROR result;
2248         } out;
2249
2250 };
2251
2252
2253 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
2254         struct {
2255                 struct policy_handle *handle;/* [ref] */
2256                 uint32_t flags;
2257                 uint32_t options;
2258                 const char *local_machine;/* [unique,charset(UTF16)] */
2259                 uint32_t printer_local;
2260                 struct spoolss_NotifyOption *notify_options;/* [unique] */
2261         } in;
2262
2263         struct {
2264                 WERROR result;
2265         } out;
2266
2267 };
2268
2269
2270 struct spoolss_RouterReplyPrinterEx {
2271         struct {
2272                 struct policy_handle *handle;/* [ref] */
2273                 uint32_t color;
2274                 uint32_t flags;
2275                 uint32_t reply_type;
2276                 union spoolss_ReplyPrinterInfo info;/* [switch_is(reply_type)] */
2277         } in;
2278
2279         struct {
2280                 uint32_t *reply_result;/* [ref] */
2281                 WERROR result;
2282         } out;
2283
2284 };
2285
2286
2287 struct spoolss_RouterRefreshPrinterChangeNotify {
2288         struct {
2289                 struct policy_handle *handle;/* [ref] */
2290                 uint32_t change_low;
2291                 struct spoolss_NotifyOption *options;/* [unique] */
2292         } in;
2293
2294         struct {
2295                 struct spoolss_NotifyInfo **info;/* [ref] */
2296                 WERROR result;
2297         } out;
2298
2299 };
2300
2301
2302 struct spoolss_44 {
2303         struct {
2304                 WERROR result;
2305         } out;
2306
2307 };
2308
2309
2310 struct spoolss_OpenPrinterEx {
2311         struct {
2312                 const char *printername;/* [unique,charset(UTF16)] */
2313                 const char *datatype;/* [unique,charset(UTF16)] */
2314                 struct spoolss_DevmodeContainer devmode_ctr;
2315                 uint32_t access_mask;
2316                 uint32_t level;
2317                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
2318         } in;
2319
2320         struct {
2321                 struct policy_handle *handle;/* [ref] */
2322                 WERROR result;
2323         } out;
2324
2325 };
2326
2327
2328 struct spoolss_AddPrinterEx {
2329         struct {
2330                 const char *server;/* [unique,charset(UTF16)] */
2331                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2332                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2333                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2334                 struct spoolss_UserLevelCtr *userlevel_ctr;/* [ref] */
2335         } in;
2336
2337         struct {
2338                 struct policy_handle *handle;/* [ref] */
2339                 WERROR result;
2340         } out;
2341
2342 };
2343
2344
2345 struct spoolss_47 {
2346         struct {
2347                 WERROR result;
2348         } out;
2349
2350 };
2351
2352
2353 struct spoolss_EnumPrinterData {
2354         struct {
2355                 struct policy_handle *handle;/* [ref] */
2356                 uint32_t enum_index;
2357                 uint32_t value_offered;
2358                 uint32_t data_offered;
2359         } in;
2360
2361         struct {
2362                 const char *value_name;/* [charset(UTF16),size_is(value_offered/2)] */
2363                 uint32_t *value_needed;/* [ref] */
2364                 uint32_t *printerdata_type;/* [ref] */
2365                 DATA_BLOB *buffer;/* [ref] */
2366                 uint32_t *data_needed;/* [ref] */
2367                 WERROR result;
2368         } out;
2369
2370 };
2371
2372
2373 struct spoolss_DeletePrinterData {
2374         struct {
2375                 struct policy_handle *handle;/* [ref] */
2376                 const char *value_name;/* [charset(UTF16)] */
2377         } in;
2378
2379         struct {
2380                 WERROR result;
2381         } out;
2382
2383 };
2384
2385
2386 struct spoolss_4a {
2387         struct {
2388                 WERROR result;
2389         } out;
2390
2391 };
2392
2393
2394 struct spoolss_4b {
2395         struct {
2396                 WERROR result;
2397         } out;
2398
2399 };
2400
2401
2402 struct spoolss_4c {
2403         struct {
2404                 WERROR result;
2405         } out;
2406
2407 };
2408
2409
2410 struct spoolss_SetPrinterDataEx {
2411         struct {
2412                 struct policy_handle *handle;/* [ref] */
2413                 const char *key_name;/* [charset(UTF16)] */
2414                 const char *value_name;/* [charset(UTF16)] */
2415                 uint32_t type;
2416                 uint8_t *buffer;/* [ref,size_is(offered)] */
2417                 uint32_t offered;
2418         } in;
2419
2420         struct {
2421                 WERROR result;
2422         } out;
2423
2424 };
2425
2426
2427 struct spoolss_GetPrinterDataEx {
2428         struct {
2429                 struct policy_handle *handle;/* [ref] */
2430                 const char *key_name;/* [charset(UTF16)] */
2431                 const char *value_name;/* [charset(UTF16)] */
2432                 uint32_t offered;
2433         } in;
2434
2435         struct {
2436                 uint32_t *type;/* [ref] */
2437                 uint8_t *buffer;/* [ref,size_is(offered)] */
2438                 uint32_t *needed;/* [ref] */
2439                 WERROR result;
2440         } out;
2441
2442 };
2443
2444
2445 struct spoolss_EnumPrinterDataEx {
2446         struct {
2447                 struct policy_handle *handle;/* [ref] */
2448                 const char *key_name;/* [charset(UTF16)] */
2449                 uint32_t offered;
2450         } in;
2451
2452         struct {
2453                 uint8_t *buffer;/* [ref,size_is(offered)] */
2454                 uint32_t *needed;/* [ref] */
2455                 uint32_t *count;/* [ref] */
2456                 WERROR result;
2457         } out;
2458
2459 };
2460
2461
2462 struct spoolss_EnumPrinterKey {
2463         struct {
2464                 struct policy_handle *handle;/* [ref] */
2465                 const char *key_name;/* [charset(UTF16)] */
2466                 uint32_t key_buffer_size;
2467         } in;
2468
2469         struct {
2470                 uint16_t *key_buffer;/* [ref,size_is(key_buffer_size/2)] */
2471                 uint32_t *needed;/* [ref] */
2472                 WERROR result;
2473         } out;
2474
2475 };
2476
2477
2478 struct spoolss_DeletePrinterDataEx {
2479         struct {
2480                 struct policy_handle *handle;/* [ref] */
2481                 const char *key_name;/* [charset(UTF16)] */
2482                 const char *value_name;/* [charset(UTF16)] */
2483         } in;
2484
2485         struct {
2486                 WERROR result;
2487         } out;
2488
2489 };
2490
2491
2492 struct spoolss_DeletePrinterKey {
2493         struct {
2494                 struct policy_handle *handle;/* [ref] */
2495                 const char *key_name;/* [charset(UTF16)] */
2496         } in;
2497
2498         struct {
2499                 WERROR result;
2500         } out;
2501
2502 };
2503
2504
2505 struct spoolss_53 {
2506         struct {
2507                 WERROR result;
2508         } out;
2509
2510 };
2511
2512
2513 struct spoolss_DeletePrinterDriverEx {
2514         struct {
2515                 const char *server;/* [unique,charset(UTF16)] */
2516                 const char *architecture;/* [charset(UTF16)] */
2517                 const char *driver;/* [charset(UTF16)] */
2518                 uint32_t delete_flags;
2519                 uint32_t version;
2520         } in;
2521
2522         struct {
2523                 WERROR result;
2524         } out;
2525
2526 };
2527
2528
2529 struct spoolss_55 {
2530         struct {
2531                 WERROR result;
2532         } out;
2533
2534 };
2535
2536
2537 struct spoolss_56 {
2538         struct {
2539                 WERROR result;
2540         } out;
2541
2542 };
2543
2544
2545 struct spoolss_57 {
2546         struct {
2547                 WERROR result;
2548         } out;
2549
2550 };
2551
2552
2553 struct spoolss_XcvData {
2554         struct {
2555                 struct policy_handle *handle;/* [ref] */
2556                 const char *function_name;/* [charset(UTF16)] */
2557                 DATA_BLOB in_data;
2558                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
2559                 uint32_t out_data_size;
2560                 uint32_t *status_code;/* [ref] */
2561         } in;
2562
2563         struct {
2564                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
2565                 uint32_t *needed;/* [ref] */
2566                 uint32_t *status_code;/* [ref] */
2567                 WERROR result;
2568         } out;
2569
2570 };
2571
2572
2573 struct spoolss_AddPrinterDriverEx {
2574         struct {
2575                 const char *servername;/* [ref,charset(UTF16)] */
2576                 uint32_t level;
2577                 union spoolss_AddDriverInfo info;/* [switch_is(level)] */
2578                 uint32_t flags;
2579         } in;
2580
2581         struct {
2582                 WERROR result;
2583         } out;
2584
2585 };
2586
2587
2588 struct spoolss_5a {
2589         struct {
2590                 WERROR result;
2591         } out;
2592
2593 };
2594
2595
2596 struct spoolss_5b {
2597         struct {
2598                 WERROR result;
2599         } out;
2600
2601 };
2602
2603
2604 struct spoolss_5c {
2605         struct {
2606                 WERROR result;
2607         } out;
2608
2609 };
2610
2611
2612 struct spoolss_5d {
2613         struct {
2614                 WERROR result;
2615         } out;
2616
2617 };
2618
2619
2620 struct spoolss_5e {
2621         struct {
2622                 WERROR result;
2623         } out;
2624
2625 };
2626
2627
2628 struct spoolss_5f {
2629         struct {
2630                 WERROR result;
2631         } out;
2632
2633 };
2634
2635 #endif /* _HEADER_spoolss */