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