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