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