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