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