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