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