608c52b6eba2b8a802492e2ed8c7a24c03b404dd
[kai/samba-autobuild/.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 };
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 /* bitmap spoolss_PrinterChangeFlags */
1272 #define PRINTER_CHANGE_ADD_PRINTER ( 0x00000001 )
1273 #define PRINTER_CHANGE_SET_PRINTER ( 0x00000002 )
1274 #define PRINTER_CHANGE_DELETE_PRINTER ( 0x00000004 )
1275 #define PRINTER_CHANGE_FAILED_CONNECTION_PRINTER ( 0x00000008 )
1276 #define PRINTER_CHANGE_ADD_JOB ( 0x00000100 )
1277 #define PRINTER_CHANGE_SET_JOB ( 0x00000200 )
1278 #define PRINTER_CHANGE_DELETE_JOB ( 0x00000400 )
1279 #define PRINTER_CHANGE_WRITE_JOB ( 0x00000800 )
1280 #define PRINTER_CHANGE_ADD_FORM ( 0x00010000 )
1281 #define PRINTER_CHANGE_SET_FORM ( 0x00020000 )
1282 #define PRINTER_CHANGE_DELETE_FORM ( 0x00040000 )
1283 #define PRINTER_CHANGE_ADD_PORT ( 0x00100000 )
1284 #define PRINTER_CHANGE_CONFIGURE_PORT ( 0x00200000 )
1285 #define PRINTER_CHANGE_DELETE_PORT ( 0x00400000 )
1286 #define PRINTER_CHANGE_ADD_PRINT_PROCESSOR ( 0x01000000 )
1287 #define PRINTER_CHANGE_DELETE_PRINT_PROCESSOR ( 0x04000000 )
1288 #define PRINTER_CHANGE_SERVER ( 0x08000000 )
1289 #define PRINTER_CHANGE_ADD_PRINTER_DRIVER ( 0x10000000 )
1290 #define PRINTER_CHANGE_SET_PRINTER_DRIVER ( 0x20000000 )
1291 #define PRINTER_CHANGE_DELETE_PRINTER_DRIVER ( 0x40000000 )
1292 #define PRINTER_CHANGE_TIMEOUT ( 0x80000000 )
1293
1294 enum spoolss_Field
1295 #ifndef USE_UINT_ENUMS
1296  {
1297         SPOOLSS_FIELD_SERVER_NAME=0,
1298         SPOOLSS_FIELD_PRINTER_NAME=1,
1299         SPOOLSS_FIELD_SHARE_NAME=2,
1300         SPOOLSS_FIELD_PORT_NAME=3,
1301         SPOOLSS_FIELD_DRIVER_NAME=4,
1302         SPOOLSS_FIELD_COMMENT=5,
1303         SPOOLSS_FIELD_LOCATION=6,
1304         SPOOLSS_FIELD_DEVMODE=7,
1305         SPOOLSS_FIELD_SEPFILE=8,
1306         SPOOLSS_FIELD_PRINT_PROCESSOR=9,
1307         SPOOLSS_FIELD_PARAMETERS=10,
1308         SPOOLSS_FIELD_DATATYPE=11,
1309         SPOOLSS_FIELD_SECURITY_DESCRIPTOR=12,
1310         SPOOLSS_FIELD_ATTRIBUTES=13,
1311         SPOOLSS_FIELD_PRIORITY=14,
1312         SPOOLSS_FIELD_DEFAULT_PRIORITY=15,
1313         SPOOLSS_FIELD_START_TIME=16,
1314         SPOOLSS_FIELD_UNTIL_TIME=17,
1315         SPOOLSS_FIELD_STATUS=18,
1316         SPOOLSS_FIELD_STATUS_STRING=19,
1317         SPOOLSS_FIELD_CJOBS=20,
1318         SPOOLSS_FIELD_AVERAGE_PPM=21,
1319         SPOOLSS_FIELD_TOTAL_PAGES=22,
1320         SPOOLSS_FIELD_PAGES_PRINTED=23,
1321         SPOOLSS_FIELD_TOTAL_BYTES=24,
1322         SPOOLSS_FIELD_BYTES_PRINTED=25
1323 }
1324 #else
1325  { __donnot_use_enum_spoolss_Field=0x7FFFFFFF}
1326 #define SPOOLSS_FIELD_SERVER_NAME ( 0 )
1327 #define SPOOLSS_FIELD_PRINTER_NAME ( 1 )
1328 #define SPOOLSS_FIELD_SHARE_NAME ( 2 )
1329 #define SPOOLSS_FIELD_PORT_NAME ( 3 )
1330 #define SPOOLSS_FIELD_DRIVER_NAME ( 4 )
1331 #define SPOOLSS_FIELD_COMMENT ( 5 )
1332 #define SPOOLSS_FIELD_LOCATION ( 6 )
1333 #define SPOOLSS_FIELD_DEVMODE ( 7 )
1334 #define SPOOLSS_FIELD_SEPFILE ( 8 )
1335 #define SPOOLSS_FIELD_PRINT_PROCESSOR ( 9 )
1336 #define SPOOLSS_FIELD_PARAMETERS ( 10 )
1337 #define SPOOLSS_FIELD_DATATYPE ( 11 )
1338 #define SPOOLSS_FIELD_SECURITY_DESCRIPTOR ( 12 )
1339 #define SPOOLSS_FIELD_ATTRIBUTES ( 13 )
1340 #define SPOOLSS_FIELD_PRIORITY ( 14 )
1341 #define SPOOLSS_FIELD_DEFAULT_PRIORITY ( 15 )
1342 #define SPOOLSS_FIELD_START_TIME ( 16 )
1343 #define SPOOLSS_FIELD_UNTIL_TIME ( 17 )
1344 #define SPOOLSS_FIELD_STATUS ( 18 )
1345 #define SPOOLSS_FIELD_STATUS_STRING ( 19 )
1346 #define SPOOLSS_FIELD_CJOBS ( 20 )
1347 #define SPOOLSS_FIELD_AVERAGE_PPM ( 21 )
1348 #define SPOOLSS_FIELD_TOTAL_PAGES ( 22 )
1349 #define SPOOLSS_FIELD_PAGES_PRINTED ( 23 )
1350 #define SPOOLSS_FIELD_TOTAL_BYTES ( 24 )
1351 #define SPOOLSS_FIELD_BYTES_PRINTED ( 25 )
1352 #endif
1353 ;
1354
1355 enum spoolss_NotifyType
1356 #ifndef USE_UINT_ENUMS
1357  {
1358         SPOOLSS_NOTIFY_PRINTER=0,
1359         SPOOLSS_NOTIFY_JOB=1
1360 }
1361 #else
1362  { __donnot_use_enum_spoolss_NotifyType=0x7FFFFFFF}
1363 #define SPOOLSS_NOTIFY_PRINTER ( 0 )
1364 #define SPOOLSS_NOTIFY_JOB ( 1 )
1365 #endif
1366 ;
1367
1368 struct spoolss_NotifyOptionType {
1369         enum spoolss_NotifyType type;
1370         uint16_t u1;
1371         uint32_t u2;
1372         uint32_t u3;
1373         uint32_t count;
1374         enum spoolss_Field *fields;/* [unique,size_is(count)] */
1375 };
1376
1377 /* bitmap spoolssNotifyOptionFlags */
1378 #define PRINTER_NOTIFY_OPTIONS_REFRESH ( 0x00000001 )
1379
1380 struct spoolss_NotifyOption {
1381         uint32_t version;/* [value(2)] */
1382         uint32_t flags;
1383         uint32_t count;
1384         struct spoolss_NotifyOptionType *types;/* [unique,size_is(count)] */
1385 };
1386
1387 struct spoolss_NotifyString {
1388         uint32_t size;
1389         const char *string;/* [unique,charset(UTF16),size_is(size/2)] */
1390 };
1391
1392 enum spoolss_NotifyTable
1393 #ifndef USE_UINT_ENUMS
1394  {
1395         NOTIFY_TABLE_DWORD=0x0001,
1396         NOTIFY_TABLE_STRING=0x0002,
1397         NOTIFY_TABLE_DEVMODE=0x0003,
1398         NOTIFY_TABLE_TIME=0x0004,
1399         NOTIFY_TABLE_SECURITYDESCRIPTOR=0x0005
1400 }
1401 #else
1402  { __donnot_use_enum_spoolss_NotifyTable=0x7FFFFFFF}
1403 #define NOTIFY_TABLE_DWORD ( 0x0001 )
1404 #define NOTIFY_TABLE_STRING ( 0x0002 )
1405 #define NOTIFY_TABLE_DEVMODE ( 0x0003 )
1406 #define NOTIFY_TABLE_TIME ( 0x0004 )
1407 #define NOTIFY_TABLE_SECURITYDESCRIPTOR ( 0x0005 )
1408 #endif
1409 ;
1410
1411 union spoolss_NotifyData {
1412         uint32_t integer[2];/* [case] */
1413         struct spoolss_NotifyString string;/* [case(2)] */
1414         struct spoolss_DevmodeContainer devmode;/* [case(3)] */
1415         struct spoolss_TimeCtr time;/* [case(4)] */
1416         struct sec_desc_buf sd;/* [case(5)] */
1417 }/* [switch_type(uint32)] */;
1418
1419 struct spoolss_Notify {
1420         enum spoolss_NotifyType type;
1421         enum spoolss_Field field;
1422         enum spoolss_NotifyTable variable_type;
1423         uint32_t job_id;
1424         union spoolss_NotifyData data;/* [switch_is(variable_type)] */
1425 };
1426
1427 struct spoolss_NotifyInfo {
1428         uint32_t version;/* [value(2)] */
1429         uint32_t flags;
1430         uint32_t count;
1431         struct spoolss_Notify *notifies;/* [size_is(count)] */
1432 };
1433
1434 union spoolss_ReplyPrinterInfo {
1435         struct spoolss_NotifyInfo *info0;/* [unique,case(0)] */
1436 }/* [switch_type(uint32)] */;
1437
1438 /* bitmap spoolss_PrinterNotifyFlags */
1439 #define PRINTER_NOTIFY_INFO_DISCARDED ( 0x00000001 )
1440 #define PRINTER_NOTIFY_INFO_DISCARDNOTED ( 0x00010000 )
1441 #define PRINTER_NOTIFY_INFO_COLOR_MISMATCH ( 0x00080000 )
1442
1443 struct spoolss_UserLevel1 {
1444         uint32_t size;
1445         const char *client;/* [unique,charset(UTF16)] */
1446         const char *user;/* [unique,charset(UTF16)] */
1447         uint32_t build;
1448         enum spoolss_MajorVersion major;
1449         enum spoolss_MinorVersion minor;
1450         enum spoolss_ProcessorArchitecture processor;
1451 };
1452
1453 struct spoolss_UserLevel2 {
1454         uint32_t not_used;
1455 };
1456
1457 struct spoolss_UserLevel3 {
1458         uint32_t size;
1459         uint32_t flags;
1460         uint32_t size2;
1461         const char *client;/* [unique,charset(UTF16)] */
1462         const char *user;/* [unique,charset(UTF16)] */
1463         uint32_t build;
1464         enum spoolss_MajorVersion major;
1465         enum spoolss_MinorVersion minor;
1466         enum spoolss_ProcessorArchitecture processor;
1467         uint64_t reserved;
1468 };
1469
1470 union spoolss_UserLevel {
1471         struct spoolss_UserLevel1 *level1;/* [unique,case] */
1472         struct spoolss_UserLevel2 *level2;/* [unique,case(2)] */
1473         struct spoolss_UserLevel3 *level3;/* [unique,case(3)] */
1474 }/* [switch_type(uint32)] */;
1475
1476 struct spoolss_UserLevelCtr {
1477         uint32_t level;
1478         union spoolss_UserLevel user_info;/* [switch_is(level)] */
1479 };
1480
1481 /* bitmap spoolss_AccessRights */
1482 #define SERVER_ACCESS_ADMINISTER ( 0x00000001 )
1483 #define SERVER_ACCESS_ENUMERATE ( 0x00000002 )
1484 #define PRINTER_ACCESS_ADMINISTER ( 0x00000004 )
1485 #define PRINTER_ACCESS_USE ( 0x00000008 )
1486 #define JOB_ACCESS_ADMINISTER ( 0x00000010 )
1487 #define JOB_ACCESS_READ ( 0x00000020 )
1488
1489 /* bitmap spoolss_DeleteDriverFlags */
1490 #define DPD_DELETE_UNUSED_FILES ( 0x00000001 )
1491 #define DPD_DELETE_SPECIFIC_VERSION ( 0x00000002 )
1492 #define DPD_DELETE_ALL_FILES ( 0x00000004 )
1493
1494 enum spoolss_PortProtocol
1495 #ifndef USE_UINT_ENUMS
1496  {
1497         PROTOCOL_RAWTCP_TYPE=1,
1498         PROTOCOL_LPR_TYPE=2
1499 }
1500 #else
1501  { __donnot_use_enum_spoolss_PortProtocol=0x7FFFFFFF}
1502 #define PROTOCOL_RAWTCP_TYPE ( 1 )
1503 #define PROTOCOL_LPR_TYPE ( 2 )
1504 #endif
1505 ;
1506
1507 struct spoolss_PortData1 {
1508         const char *portname;/* [charset(UTF16)] */
1509         uint32_t version;/* [value(0x00000001)] */
1510         enum spoolss_PortProtocol protocol;
1511         uint32_t size;/* [value(sizeof(r))] */
1512         uint32_t reserved;
1513         const char *hostaddress;/* [charset(UTF16)] */
1514         const char *snmpcommunity;/* [charset(UTF16)] */
1515         uint32_t dblspool;
1516         const char *queue;/* [charset(UTF16)] */
1517         const char *ip_address;/* [charset(UTF16)] */
1518         const char *hardware_address;/* [charset(UTF16)] */
1519         const char *device_type;/* [charset(UTF16)] */
1520         uint32_t port_number;
1521         uint32_t snmp_enabled;
1522         uint32_t snmp_dev_index;
1523 }/* [public] */;
1524
1525 struct spoolss_PortData2 {
1526         const char *portname;/* [charset(UTF16)] */
1527         uint32_t version;/* [value(0x00000002)] */
1528         enum spoolss_PortProtocol protocol;
1529         uint32_t size;/* [value(sizeof(r))] */
1530         uint32_t reserved;
1531         const char *hostaddress;/* [charset(UTF16)] */
1532         const char *snmpcommunity;/* [charset(UTF16)] */
1533         uint32_t dblspool;
1534         const char *queue;/* [charset(UTF16)] */
1535         const char *device_type;/* [charset(UTF16)] */
1536         uint32_t port_number;
1537         uint32_t snmp_enabled;
1538         uint32_t snmp_dev_index;
1539         uint32_t port_monitor_mib_index;
1540 }/* [public] */;
1541
1542 struct spoolss_MonitorUi {
1543         const char * dll_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1544 }/* [public] */;
1545
1546 /* bitmap spoolss_AddPrinterDriverExFlags */
1547 #define APD_STRICT_UPGRADE ( 0x00000001 )
1548 #define APD_STRICT_DOWNGRADE ( 0x00000002 )
1549 #define APD_COPY_ALL_FILES ( 0x00000004 )
1550 #define APD_COPY_NEW_FILES ( 0x00000008 )
1551 #define APD_COPY_FROM_DIRECTORY ( 0x00000010 )
1552 #define APD_DONT_COPY_FILES_TO_CLUSTER ( 0x00001000 )
1553 #define APD_COPY_TO_ALL_SPOOLERS ( 0x00002000 )
1554 #define APD_RETURN_BLOCKING_STATUS_CODE ( 0x00010000 )
1555
1556
1557 struct _spoolss_EnumPrinters {
1558         struct {
1559                 uint32_t flags;
1560                 const char *server;/* [unique,charset(UTF16)] */
1561                 uint32_t level;
1562                 DATA_BLOB *buffer;/* [unique] */
1563                 uint32_t offered;
1564         } in;
1565
1566         struct {
1567                 DATA_BLOB *info;/* [unique] */
1568                 uint32_t *needed;/* [ref] */
1569                 uint32_t *count;/* [ref] */
1570                 WERROR result;
1571         } out;
1572
1573 };
1574
1575
1576 struct __spoolss_EnumPrinters {
1577         struct {
1578                 uint32_t level;
1579                 uint32_t count;
1580         } in;
1581
1582         struct {
1583                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
1584         } out;
1585
1586 };
1587
1588
1589 struct spoolss_EnumPrinters {
1590         struct {
1591                 uint32_t flags;
1592                 const char *server;/* [unique,charset(UTF16)] */
1593                 uint32_t level;
1594                 DATA_BLOB *buffer;/* [unique] */
1595                 uint32_t offered;
1596         } in;
1597
1598         struct {
1599                 uint32_t *count;/* [ref] */
1600                 union spoolss_PrinterInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
1601                 uint32_t *needed;/* [ref] */
1602                 WERROR result;
1603         } out;
1604
1605 };
1606
1607
1608 struct spoolss_OpenPrinter {
1609         struct {
1610                 const char *printername;/* [unique,charset(UTF16)] */
1611                 const char *datatype;/* [unique,charset(UTF16)] */
1612                 struct spoolss_DevmodeContainer devmode_ctr;
1613                 uint32_t access_mask;
1614         } in;
1615
1616         struct {
1617                 struct policy_handle *handle;/* [ref] */
1618                 WERROR result;
1619         } out;
1620
1621 };
1622
1623
1624 struct spoolss_SetJob {
1625         struct {
1626                 struct policy_handle *handle;/* [ref] */
1627                 uint32_t job_id;
1628                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
1629                 enum spoolss_JobControl command;
1630         } in;
1631
1632         struct {
1633                 WERROR result;
1634         } out;
1635
1636 };
1637
1638
1639 struct spoolss_GetJob {
1640         struct {
1641                 struct policy_handle *handle;/* [ref] */
1642                 uint32_t job_id;
1643                 uint32_t level;
1644                 DATA_BLOB *buffer;/* [unique] */
1645                 uint32_t offered;
1646         } in;
1647
1648         struct {
1649                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1650                 uint32_t *needed;/* [ref] */
1651                 WERROR result;
1652         } out;
1653
1654 };
1655
1656
1657 struct _spoolss_EnumJobs {
1658         struct {
1659                 struct policy_handle *handle;/* [ref] */
1660                 uint32_t firstjob;
1661                 uint32_t numjobs;
1662                 uint32_t level;
1663                 DATA_BLOB *buffer;/* [unique] */
1664                 uint32_t offered;
1665         } in;
1666
1667         struct {
1668                 DATA_BLOB *info;/* [unique] */
1669                 uint32_t *needed;/* [ref] */
1670                 uint32_t *count;/* [ref] */
1671                 WERROR result;
1672         } out;
1673
1674 };
1675
1676
1677 struct __spoolss_EnumJobs {
1678         struct {
1679                 uint32_t level;
1680                 uint32_t count;
1681         } in;
1682
1683         struct {
1684                 union spoolss_JobInfo *info;/* [switch_is(level)] */
1685         } out;
1686
1687 };
1688
1689
1690 struct spoolss_EnumJobs {
1691         struct {
1692                 struct policy_handle *handle;/* [ref] */
1693                 uint32_t firstjob;
1694                 uint32_t numjobs;
1695                 uint32_t level;
1696                 DATA_BLOB *buffer;/* [unique] */
1697                 uint32_t offered;
1698         } in;
1699
1700         struct {
1701                 uint32_t *count;/* [ref] */
1702                 union spoolss_JobInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
1703                 uint32_t *needed;/* [ref] */
1704                 WERROR result;
1705         } out;
1706
1707 };
1708
1709
1710 struct spoolss_AddPrinter {
1711         struct {
1712                 WERROR result;
1713         } out;
1714
1715 };
1716
1717
1718 struct spoolss_DeletePrinter {
1719         struct {
1720                 struct policy_handle *handle;/* [ref] */
1721         } in;
1722
1723         struct {
1724                 WERROR result;
1725         } out;
1726
1727 };
1728
1729
1730 struct spoolss_SetPrinter {
1731         struct {
1732                 struct policy_handle *handle;/* [ref] */
1733                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
1734                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
1735                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
1736                 enum spoolss_PrinterControl command;
1737         } in;
1738
1739         struct {
1740                 WERROR result;
1741         } out;
1742
1743 };
1744
1745
1746 struct spoolss_GetPrinter {
1747         struct {
1748                 struct policy_handle *handle;/* [ref] */
1749                 uint32_t level;
1750                 DATA_BLOB *buffer;/* [unique] */
1751                 uint32_t offered;
1752         } in;
1753
1754         struct {
1755                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1756                 uint32_t *needed;/* [ref] */
1757                 WERROR result;
1758         } out;
1759
1760 };
1761
1762
1763 struct spoolss_AddPrinterDriver {
1764         struct {
1765                 const char *servername;/* [unique,charset(UTF16)] */
1766                 struct spoolss_AddDriverInfoCtr *info_ctr;/* [ref] */
1767         } in;
1768
1769         struct {
1770                 WERROR result;
1771         } out;
1772
1773 };
1774
1775
1776 struct _spoolss_EnumPrinterDrivers {
1777         struct {
1778                 const char *server;/* [unique,charset(UTF16)] */
1779                 const char *environment;/* [unique,charset(UTF16)] */
1780                 uint32_t level;
1781                 DATA_BLOB *buffer;/* [unique] */
1782                 uint32_t offered;
1783         } in;
1784
1785         struct {
1786                 DATA_BLOB *info;/* [unique] */
1787                 uint32_t *needed;/* [ref] */
1788                 uint32_t *count;/* [ref] */
1789                 WERROR result;
1790         } out;
1791
1792 };
1793
1794
1795 struct __spoolss_EnumPrinterDrivers {
1796         struct {
1797                 uint32_t level;
1798                 uint32_t count;
1799         } in;
1800
1801         struct {
1802                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
1803         } out;
1804
1805 };
1806
1807
1808 struct spoolss_EnumPrinterDrivers {
1809         struct {
1810                 const char *server;/* [unique,charset(UTF16)] */
1811                 const char *environment;/* [unique,charset(UTF16)] */
1812                 uint32_t level;
1813                 DATA_BLOB *buffer;/* [unique] */
1814                 uint32_t offered;
1815         } in;
1816
1817         struct {
1818                 uint32_t *count;/* [ref] */
1819                 union spoolss_DriverInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
1820                 uint32_t *needed;/* [ref] */
1821                 WERROR result;
1822         } out;
1823
1824 };
1825
1826
1827 struct spoolss_GetPrinterDriver {
1828         struct {
1829                 WERROR result;
1830         } out;
1831
1832 };
1833
1834
1835 struct spoolss_GetPrinterDriverDirectory {
1836         struct {
1837                 const char *server;/* [unique,charset(UTF16)] */
1838                 const char *environment;/* [unique,charset(UTF16)] */
1839                 uint32_t level;
1840                 DATA_BLOB *buffer;/* [unique] */
1841                 uint32_t offered;
1842         } in;
1843
1844         struct {
1845                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1846                 uint32_t *needed;/* [ref] */
1847                 WERROR result;
1848         } out;
1849
1850 };
1851
1852
1853 struct spoolss_DeletePrinterDriver {
1854         struct {
1855                 const char *server;/* [unique,charset(UTF16)] */
1856                 const char *architecture;/* [charset(UTF16)] */
1857                 const char *driver;/* [charset(UTF16)] */
1858         } in;
1859
1860         struct {
1861                 WERROR result;
1862         } out;
1863
1864 };
1865
1866
1867 struct spoolss_AddPrintProcessor {
1868         struct {
1869                 const char *server;/* [unique,charset(UTF16)] */
1870                 const char *architecture;/* [charset(UTF16)] */
1871                 const char *path_name;/* [charset(UTF16)] */
1872                 const char *print_processor_name;/* [charset(UTF16)] */
1873         } in;
1874
1875         struct {
1876                 WERROR result;
1877         } out;
1878
1879 };
1880
1881
1882 struct _spoolss_EnumPrintProcessors {
1883         struct {
1884                 const char *servername;/* [unique,charset(UTF16)] */
1885                 const char *environment;/* [unique,charset(UTF16)] */
1886                 uint32_t level;
1887                 DATA_BLOB *buffer;/* [unique] */
1888                 uint32_t offered;
1889         } in;
1890
1891         struct {
1892                 DATA_BLOB *info;/* [unique] */
1893                 uint32_t *needed;/* [ref] */
1894                 uint32_t *count;/* [ref] */
1895                 WERROR result;
1896         } out;
1897
1898 };
1899
1900
1901 struct __spoolss_EnumPrintProcessors {
1902         struct {
1903                 uint32_t level;
1904                 uint32_t count;
1905         } in;
1906
1907         struct {
1908                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
1909         } out;
1910
1911 };
1912
1913
1914 struct spoolss_EnumPrintProcessors {
1915         struct {
1916                 const char *servername;/* [unique,charset(UTF16)] */
1917                 const char *environment;/* [unique,charset(UTF16)] */
1918                 uint32_t level;
1919                 DATA_BLOB *buffer;/* [unique] */
1920                 uint32_t offered;
1921         } in;
1922
1923         struct {
1924                 uint32_t *count;/* [ref] */
1925                 union spoolss_PrintProcessorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
1926                 uint32_t *needed;/* [ref] */
1927                 WERROR result;
1928         } out;
1929
1930 };
1931
1932
1933 struct spoolss_GetPrintProcessorDirectory {
1934         struct {
1935                 const char *server;/* [unique,charset(UTF16)] */
1936                 const char *environment;/* [unique,charset(UTF16)] */
1937                 uint32_t level;
1938                 DATA_BLOB *buffer;/* [unique] */
1939                 uint32_t offered;
1940         } in;
1941
1942         struct {
1943                 union spoolss_PrintProcessorDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1944                 uint32_t *needed;/* [ref] */
1945                 WERROR result;
1946         } out;
1947
1948 };
1949
1950
1951 struct spoolss_StartDocPrinter {
1952         struct {
1953                 struct policy_handle *handle;/* [ref] */
1954                 uint32_t level;
1955                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
1956         } in;
1957
1958         struct {
1959                 uint32_t *job_id;/* [ref] */
1960                 WERROR result;
1961         } out;
1962
1963 };
1964
1965
1966 struct spoolss_StartPagePrinter {
1967         struct {
1968                 struct policy_handle *handle;/* [ref] */
1969         } in;
1970
1971         struct {
1972                 WERROR result;
1973         } out;
1974
1975 };
1976
1977
1978 struct spoolss_WritePrinter {
1979         struct {
1980                 struct policy_handle *handle;/* [ref] */
1981                 DATA_BLOB data;
1982                 uint32_t _data_size;/* [value(r->in.data.length)] */
1983         } in;
1984
1985         struct {
1986                 uint32_t *num_written;/* [ref] */
1987                 WERROR result;
1988         } out;
1989
1990 };
1991
1992
1993 struct spoolss_EndPagePrinter {
1994         struct {
1995                 struct policy_handle *handle;/* [ref] */
1996         } in;
1997
1998         struct {
1999                 WERROR result;
2000         } out;
2001
2002 };
2003
2004
2005 struct spoolss_AbortPrinter {
2006         struct {
2007                 struct policy_handle *handle;/* [ref] */
2008         } in;
2009
2010         struct {
2011                 WERROR result;
2012         } out;
2013
2014 };
2015
2016
2017 struct spoolss_ReadPrinter {
2018         struct {
2019                 struct policy_handle *handle;/* [ref] */
2020                 uint32_t data_size;
2021         } in;
2022
2023         struct {
2024                 uint8_t *data;/* [ref,size_is(data_size)] */
2025                 uint32_t *_data_size;/* [ref] */
2026                 WERROR result;
2027         } out;
2028
2029 };
2030
2031
2032 struct spoolss_EndDocPrinter {
2033         struct {
2034                 struct policy_handle *handle;/* [ref] */
2035         } in;
2036
2037         struct {
2038                 WERROR result;
2039         } out;
2040
2041 };
2042
2043
2044 struct spoolss_AddJob {
2045         struct {
2046                 struct policy_handle *handle;/* [ref] */
2047                 uint32_t level;
2048                 uint32_t offered;
2049                 uint8_t *buffer;/* [unique,size_is(offered)] */
2050         } in;
2051
2052         struct {
2053                 uint32_t *needed;/* [ref] */
2054                 uint8_t *buffer;/* [unique,size_is(offered)] */
2055                 WERROR result;
2056         } out;
2057
2058 };
2059
2060
2061 struct spoolss_ScheduleJob {
2062         struct {
2063                 struct policy_handle *handle;/* [ref] */
2064                 uint32_t jobid;
2065         } in;
2066
2067         struct {
2068                 WERROR result;
2069         } out;
2070
2071 };
2072
2073
2074 struct _spoolss_GetPrinterData {
2075         struct {
2076                 struct policy_handle *handle;/* [ref] */
2077                 const char *value_name;/* [charset(UTF16)] */
2078                 uint32_t offered;
2079         } in;
2080
2081         struct {
2082                 enum spoolss_PrinterDataType *type;/* [ref] */
2083                 DATA_BLOB data;
2084                 uint32_t *needed;/* [ref] */
2085                 WERROR result;
2086         } out;
2087
2088 };
2089
2090
2091 struct __spoolss_GetPrinterData {
2092         struct {
2093                 enum spoolss_PrinterDataType type;
2094         } in;
2095
2096         struct {
2097                 union spoolss_PrinterData data;/* [switch_is(type)] */
2098         } out;
2099
2100 };
2101
2102
2103 struct spoolss_GetPrinterData {
2104         struct {
2105                 struct policy_handle *handle;/* [ref] */
2106                 const char *value_name;/* [charset(UTF16)] */
2107                 uint32_t offered;
2108         } in;
2109
2110         struct {
2111                 enum spoolss_PrinterDataType *type;/* [ref] */
2112                 union spoolss_PrinterData data;/* [subcontext_size(offered),subcontext(4),switch_is(*type)] */
2113                 uint32_t *needed;/* [ref] */
2114                 WERROR result;
2115         } out;
2116
2117 };
2118
2119
2120 struct _spoolss_SetPrinterData {
2121         struct {
2122                 struct policy_handle *handle;/* [ref] */
2123                 const char *value_name;/* [charset(UTF16)] */
2124                 enum spoolss_PrinterDataType type;
2125                 DATA_BLOB data;
2126                 uint32_t _offered;
2127         } in;
2128
2129         struct {
2130                 WERROR result;
2131         } out;
2132
2133 };
2134
2135
2136 struct __spoolss_SetPrinterData {
2137         struct {
2138                 enum spoolss_PrinterDataType type;
2139         } in;
2140
2141         struct {
2142                 union spoolss_PrinterData data;/* [switch_is(type)] */
2143         } out;
2144
2145 };
2146
2147
2148 struct spoolss_SetPrinterData {
2149         struct {
2150                 struct policy_handle *handle;/* [ref] */
2151                 const char *value_name;/* [charset(UTF16)] */
2152                 enum spoolss_PrinterDataType type;
2153                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
2154                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
2155         } in;
2156
2157         struct {
2158                 WERROR result;
2159         } out;
2160
2161 };
2162
2163
2164 struct spoolss_WaitForPrinterChange {
2165         struct {
2166                 WERROR result;
2167         } out;
2168
2169 };
2170
2171
2172 struct spoolss_ClosePrinter {
2173         struct {
2174                 struct policy_handle *handle;/* [ref] */
2175         } in;
2176
2177         struct {
2178                 struct policy_handle *handle;/* [ref] */
2179                 WERROR result;
2180         } out;
2181
2182 };
2183
2184
2185 struct spoolss_AddForm {
2186         struct {
2187                 struct policy_handle *handle;/* [ref] */
2188                 uint32_t level;
2189                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
2190         } in;
2191
2192         struct {
2193                 WERROR result;
2194         } out;
2195
2196 };
2197
2198
2199 struct spoolss_DeleteForm {
2200         struct {
2201                 struct policy_handle *handle;/* [ref] */
2202                 const char *form_name;/* [charset(UTF16)] */
2203         } in;
2204
2205         struct {
2206                 WERROR result;
2207         } out;
2208
2209 };
2210
2211
2212 struct spoolss_GetForm {
2213         struct {
2214                 struct policy_handle *handle;/* [ref] */
2215                 const char *form_name;/* [charset(UTF16)] */
2216                 uint32_t level;
2217                 DATA_BLOB *buffer;/* [unique] */
2218                 uint32_t offered;
2219         } in;
2220
2221         struct {
2222                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2223                 uint32_t *needed;/* [ref] */
2224                 WERROR result;
2225         } out;
2226
2227 };
2228
2229
2230 struct spoolss_SetForm {
2231         struct {
2232                 struct policy_handle *handle;/* [ref] */
2233                 const char *form_name;/* [charset(UTF16)] */
2234                 uint32_t level;
2235                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
2236         } in;
2237
2238         struct {
2239                 WERROR result;
2240         } out;
2241
2242 };
2243
2244
2245 struct _spoolss_EnumForms {
2246         struct {
2247                 struct policy_handle *handle;/* [ref] */
2248                 uint32_t level;
2249                 DATA_BLOB *buffer;/* [unique] */
2250                 uint32_t offered;
2251         } in;
2252
2253         struct {
2254                 DATA_BLOB *info;/* [unique] */
2255                 uint32_t *needed;/* [ref] */
2256                 uint32_t *count;/* [ref] */
2257                 WERROR result;
2258         } out;
2259
2260 };
2261
2262
2263 struct __spoolss_EnumForms {
2264         struct {
2265                 uint32_t level;
2266                 uint32_t count;
2267         } in;
2268
2269         struct {
2270                 union spoolss_FormInfo *info;/* [switch_is(level)] */
2271         } out;
2272
2273 };
2274
2275
2276 struct spoolss_EnumForms {
2277         struct {
2278                 struct policy_handle *handle;/* [ref] */
2279                 uint32_t level;
2280                 DATA_BLOB *buffer;/* [unique] */
2281                 uint32_t offered;
2282         } in;
2283
2284         struct {
2285                 uint32_t *count;/* [ref] */
2286                 union spoolss_FormInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2287                 uint32_t *needed;/* [ref] */
2288                 WERROR result;
2289         } out;
2290
2291 };
2292
2293
2294 struct _spoolss_EnumPorts {
2295         struct {
2296                 const char *servername;/* [unique,charset(UTF16)] */
2297                 uint32_t level;
2298                 DATA_BLOB *buffer;/* [unique] */
2299                 uint32_t offered;
2300         } in;
2301
2302         struct {
2303                 DATA_BLOB *info;/* [unique] */
2304                 uint32_t *needed;/* [ref] */
2305                 uint32_t *count;/* [ref] */
2306                 WERROR result;
2307         } out;
2308
2309 };
2310
2311
2312 struct __spoolss_EnumPorts {
2313         struct {
2314                 uint32_t level;
2315                 uint32_t count;
2316         } in;
2317
2318         struct {
2319                 union spoolss_PortInfo *info;/* [switch_is(level)] */
2320         } out;
2321
2322 };
2323
2324
2325 struct spoolss_EnumPorts {
2326         struct {
2327                 const char *servername;/* [unique,charset(UTF16)] */
2328                 uint32_t level;
2329                 DATA_BLOB *buffer;/* [unique] */
2330                 uint32_t offered;
2331         } in;
2332
2333         struct {
2334                 uint32_t *count;/* [ref] */
2335                 union spoolss_PortInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2336                 uint32_t *needed;/* [ref] */
2337                 WERROR result;
2338         } out;
2339
2340 };
2341
2342
2343 struct _spoolss_EnumMonitors {
2344         struct {
2345                 const char *servername;/* [unique,charset(UTF16)] */
2346                 uint32_t level;
2347                 DATA_BLOB *buffer;/* [unique] */
2348                 uint32_t offered;
2349         } in;
2350
2351         struct {
2352                 DATA_BLOB *info;/* [unique] */
2353                 uint32_t *needed;/* [ref] */
2354                 uint32_t *count;/* [ref] */
2355                 WERROR result;
2356         } out;
2357
2358 };
2359
2360
2361 struct __spoolss_EnumMonitors {
2362         struct {
2363                 uint32_t level;
2364                 uint32_t count;
2365         } in;
2366
2367         struct {
2368                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
2369         } out;
2370
2371 };
2372
2373
2374 struct spoolss_EnumMonitors {
2375         struct {
2376                 const char *servername;/* [unique,charset(UTF16)] */
2377                 uint32_t level;
2378                 DATA_BLOB *buffer;/* [unique] */
2379                 uint32_t offered;
2380         } in;
2381
2382         struct {
2383                 uint32_t *count;/* [ref] */
2384                 union spoolss_MonitorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2385                 uint32_t *needed;/* [ref] */
2386                 WERROR result;
2387         } out;
2388
2389 };
2390
2391
2392 struct spoolss_AddPort {
2393         struct {
2394                 const char *server_name;/* [unique,charset(UTF16)] */
2395                 uint32_t unknown;
2396                 const char *monitor_name;/* [charset(UTF16)] */
2397         } in;
2398
2399         struct {
2400                 WERROR result;
2401         } out;
2402
2403 };
2404
2405
2406 struct spoolss_ConfigurePort {
2407         struct {
2408                 WERROR result;
2409         } out;
2410
2411 };
2412
2413
2414 struct spoolss_DeletePort {
2415         struct {
2416                 WERROR result;
2417         } out;
2418
2419 };
2420
2421
2422 struct spoolss_CreatePrinterIC {
2423         struct {
2424                 WERROR result;
2425         } out;
2426
2427 };
2428
2429
2430 struct spoolss_PlayGDIScriptOnPrinterIC {
2431         struct {
2432                 WERROR result;
2433         } out;
2434
2435 };
2436
2437
2438 struct spoolss_DeletePrinterIC {
2439         struct {
2440                 WERROR result;
2441         } out;
2442
2443 };
2444
2445
2446 struct spoolss_AddPrinterConnection {
2447         struct {
2448                 WERROR result;
2449         } out;
2450
2451 };
2452
2453
2454 struct spoolss_DeletePrinterConnection {
2455         struct {
2456                 WERROR result;
2457         } out;
2458
2459 };
2460
2461
2462 struct spoolss_PrinterMessageBox {
2463         struct {
2464                 WERROR result;
2465         } out;
2466
2467 };
2468
2469
2470 struct spoolss_AddMonitor {
2471         struct {
2472                 WERROR result;
2473         } out;
2474
2475 };
2476
2477
2478 struct spoolss_DeleteMonitor {
2479         struct {
2480                 WERROR result;
2481         } out;
2482
2483 };
2484
2485
2486 struct spoolss_DeletePrintProcessor {
2487         struct {
2488                 WERROR result;
2489         } out;
2490
2491 };
2492
2493
2494 struct spoolss_AddPrintProvidor {
2495         struct {
2496                 WERROR result;
2497         } out;
2498
2499 };
2500
2501
2502 struct spoolss_DeletePrintProvidor {
2503         struct {
2504                 WERROR result;
2505         } out;
2506
2507 };
2508
2509
2510 struct spoolss_EnumPrintProcDataTypes {
2511         struct {
2512                 WERROR result;
2513         } out;
2514
2515 };
2516
2517
2518 struct spoolss_ResetPrinter {
2519         struct {
2520                 struct policy_handle *handle;/* [ref] */
2521                 const char *data_type;/* [unique,charset(UTF16)] */
2522                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2523         } in;
2524
2525         struct {
2526                 WERROR result;
2527         } out;
2528
2529 };
2530
2531
2532 struct spoolss_GetPrinterDriver2 {
2533         struct {
2534                 struct policy_handle *handle;/* [ref] */
2535                 const char *architecture;/* [unique,charset(UTF16)] */
2536                 uint32_t level;
2537                 DATA_BLOB *buffer;/* [unique] */
2538                 uint32_t offered;
2539                 uint32_t client_major_version;
2540                 uint32_t client_minor_version;
2541         } in;
2542
2543         struct {
2544                 union spoolss_DriverInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2545                 uint32_t *needed;/* [ref] */
2546                 uint32_t *server_major_version;/* [ref] */
2547                 uint32_t *server_minor_version;/* [ref] */
2548                 WERROR result;
2549         } out;
2550
2551 };
2552
2553
2554 struct spoolss_FindFirstPrinterChangeNotification {
2555         struct {
2556                 WERROR result;
2557         } out;
2558
2559 };
2560
2561
2562 struct spoolss_FindNextPrinterChangeNotification {
2563         struct {
2564                 WERROR result;
2565         } out;
2566
2567 };
2568
2569
2570 struct spoolss_FindClosePrinterNotify {
2571         struct {
2572                 struct policy_handle *handle;/* [ref] */
2573         } in;
2574
2575         struct {
2576                 WERROR result;
2577         } out;
2578
2579 };
2580
2581
2582 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
2583         struct {
2584                 WERROR result;
2585         } out;
2586
2587 };
2588
2589
2590 struct spoolss_ReplyOpenPrinter {
2591         struct {
2592                 const char *server_name;/* [charset(UTF16)] */
2593                 uint32_t printer_local;
2594                 enum winreg_Type type;
2595                 uint32_t bufsize;/* [range(0,512)] */
2596                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2597         } in;
2598
2599         struct {
2600                 struct policy_handle *handle;/* [ref] */
2601                 WERROR result;
2602         } out;
2603
2604 };
2605
2606
2607 struct spoolss_RouterReplyPrinter {
2608         struct {
2609                 struct policy_handle *handle;/* [ref] */
2610                 uint32_t flags;
2611                 uint32_t bufsize;/* [range(0,512)] */
2612                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
2613         } in;
2614
2615         struct {
2616                 WERROR result;
2617         } out;
2618
2619 };
2620
2621
2622 struct spoolss_ReplyClosePrinter {
2623         struct {
2624                 struct policy_handle *handle;/* [ref] */
2625         } in;
2626
2627         struct {
2628                 struct policy_handle *handle;/* [ref] */
2629                 WERROR result;
2630         } out;
2631
2632 };
2633
2634
2635 struct spoolss_AddPortEx {
2636         struct {
2637                 WERROR result;
2638         } out;
2639
2640 };
2641
2642
2643 struct spoolss_RouterFindFirstPrinterChangeNotification {
2644         struct {
2645                 WERROR result;
2646         } out;
2647
2648 };
2649
2650
2651 struct spoolss_SpoolerInit {
2652         struct {
2653                 WERROR result;
2654         } out;
2655
2656 };
2657
2658
2659 struct spoolss_ResetPrinterEx {
2660         struct {
2661                 WERROR result;
2662         } out;
2663
2664 };
2665
2666
2667 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
2668         struct {
2669                 struct policy_handle *handle;/* [ref] */
2670                 uint32_t flags;
2671                 uint32_t options;
2672                 const char *local_machine;/* [unique,charset(UTF16)] */
2673                 uint32_t printer_local;
2674                 struct spoolss_NotifyOption *notify_options;/* [unique] */
2675         } in;
2676
2677         struct {
2678                 WERROR result;
2679         } out;
2680
2681 };
2682
2683
2684 struct spoolss_RouterReplyPrinterEx {
2685         struct {
2686                 struct policy_handle *handle;/* [ref] */
2687                 uint32_t color;
2688                 uint32_t flags;
2689                 uint32_t reply_type;
2690                 union spoolss_ReplyPrinterInfo info;/* [switch_is(reply_type)] */
2691         } in;
2692
2693         struct {
2694                 uint32_t *reply_result;/* [ref] */
2695                 WERROR result;
2696         } out;
2697
2698 };
2699
2700
2701 struct spoolss_RouterRefreshPrinterChangeNotify {
2702         struct {
2703                 struct policy_handle *handle;/* [ref] */
2704                 uint32_t change_low;
2705                 struct spoolss_NotifyOption *options;/* [unique] */
2706         } in;
2707
2708         struct {
2709                 struct spoolss_NotifyInfo **info;/* [ref] */
2710                 WERROR result;
2711         } out;
2712
2713 };
2714
2715
2716 struct spoolss_44 {
2717         struct {
2718                 WERROR result;
2719         } out;
2720
2721 };
2722
2723
2724 struct spoolss_OpenPrinterEx {
2725         struct {
2726                 const char *printername;/* [unique,charset(UTF16)] */
2727                 const char *datatype;/* [unique,charset(UTF16)] */
2728                 struct spoolss_DevmodeContainer devmode_ctr;
2729                 uint32_t access_mask;
2730                 uint32_t level;
2731                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
2732         } in;
2733
2734         struct {
2735                 struct policy_handle *handle;/* [ref] */
2736                 WERROR result;
2737         } out;
2738
2739 };
2740
2741
2742 struct spoolss_AddPrinterEx {
2743         struct {
2744                 const char *server;/* [unique,charset(UTF16)] */
2745                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2746                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2747                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2748                 struct spoolss_UserLevelCtr *userlevel_ctr;/* [ref] */
2749         } in;
2750
2751         struct {
2752                 struct policy_handle *handle;/* [ref] */
2753                 WERROR result;
2754         } out;
2755
2756 };
2757
2758
2759 struct spoolss_47 {
2760         struct {
2761                 WERROR result;
2762         } out;
2763
2764 };
2765
2766
2767 struct spoolss_EnumPrinterData {
2768         struct {
2769                 struct policy_handle *handle;/* [ref] */
2770                 uint32_t enum_index;
2771                 uint32_t value_offered;
2772                 uint32_t data_offered;
2773         } in;
2774
2775         struct {
2776                 const char *value_name;/* [charset(UTF16),size_is(value_offered/2)] */
2777                 uint32_t *value_needed;/* [ref] */
2778                 uint32_t *printerdata_type;/* [ref] */
2779                 DATA_BLOB *buffer;/* [ref] */
2780                 uint32_t *data_needed;/* [ref] */
2781                 WERROR result;
2782         } out;
2783
2784 };
2785
2786
2787 struct spoolss_DeletePrinterData {
2788         struct {
2789                 struct policy_handle *handle;/* [ref] */
2790                 const char *value_name;/* [charset(UTF16)] */
2791         } in;
2792
2793         struct {
2794                 WERROR result;
2795         } out;
2796
2797 };
2798
2799
2800 struct spoolss_4a {
2801         struct {
2802                 WERROR result;
2803         } out;
2804
2805 };
2806
2807
2808 struct spoolss_4b {
2809         struct {
2810                 WERROR result;
2811         } out;
2812
2813 };
2814
2815
2816 struct spoolss_4c {
2817         struct {
2818                 WERROR result;
2819         } out;
2820
2821 };
2822
2823
2824 struct spoolss_SetPrinterDataEx {
2825         struct {
2826                 struct policy_handle *handle;/* [ref] */
2827                 const char *key_name;/* [charset(UTF16)] */
2828                 const char *value_name;/* [charset(UTF16)] */
2829                 uint32_t type;
2830                 uint8_t *buffer;/* [ref,size_is(offered)] */
2831                 uint32_t offered;
2832         } in;
2833
2834         struct {
2835                 WERROR result;
2836         } out;
2837
2838 };
2839
2840
2841 struct spoolss_GetPrinterDataEx {
2842         struct {
2843                 struct policy_handle *handle;/* [ref] */
2844                 const char *key_name;/* [charset(UTF16)] */
2845                 const char *value_name;/* [charset(UTF16)] */
2846                 uint32_t offered;
2847         } in;
2848
2849         struct {
2850                 uint32_t *type;/* [ref] */
2851                 uint8_t *buffer;/* [ref,size_is(offered)] */
2852                 uint32_t *needed;/* [ref] */
2853                 WERROR result;
2854         } out;
2855
2856 };
2857
2858
2859 struct spoolss_EnumPrinterDataEx {
2860         struct {
2861                 struct policy_handle *handle;/* [ref] */
2862                 const char *key_name;/* [charset(UTF16)] */
2863                 uint32_t offered;
2864         } in;
2865
2866         struct {
2867                 uint8_t *buffer;/* [ref,size_is(offered)] */
2868                 uint32_t *needed;/* [ref] */
2869                 uint32_t *count;/* [ref] */
2870                 WERROR result;
2871         } out;
2872
2873 };
2874
2875
2876 struct spoolss_EnumPrinterKey {
2877         struct {
2878                 struct policy_handle *handle;/* [ref] */
2879                 const char *key_name;/* [charset(UTF16)] */
2880                 uint32_t key_buffer_size;
2881         } in;
2882
2883         struct {
2884                 uint16_t *key_buffer;/* [ref,size_is(key_buffer_size/2)] */
2885                 uint32_t *needed;/* [ref] */
2886                 WERROR result;
2887         } out;
2888
2889 };
2890
2891
2892 struct spoolss_DeletePrinterDataEx {
2893         struct {
2894                 struct policy_handle *handle;/* [ref] */
2895                 const char *key_name;/* [charset(UTF16)] */
2896                 const char *value_name;/* [charset(UTF16)] */
2897         } in;
2898
2899         struct {
2900                 WERROR result;
2901         } out;
2902
2903 };
2904
2905
2906 struct spoolss_DeletePrinterKey {
2907         struct {
2908                 struct policy_handle *handle;/* [ref] */
2909                 const char *key_name;/* [charset(UTF16)] */
2910         } in;
2911
2912         struct {
2913                 WERROR result;
2914         } out;
2915
2916 };
2917
2918
2919 struct spoolss_53 {
2920         struct {
2921                 WERROR result;
2922         } out;
2923
2924 };
2925
2926
2927 struct spoolss_DeletePrinterDriverEx {
2928         struct {
2929                 const char *server;/* [unique,charset(UTF16)] */
2930                 const char *architecture;/* [charset(UTF16)] */
2931                 const char *driver;/* [charset(UTF16)] */
2932                 uint32_t delete_flags;
2933                 uint32_t version;
2934         } in;
2935
2936         struct {
2937                 WERROR result;
2938         } out;
2939
2940 };
2941
2942
2943 struct spoolss_55 {
2944         struct {
2945                 WERROR result;
2946         } out;
2947
2948 };
2949
2950
2951 struct spoolss_56 {
2952         struct {
2953                 WERROR result;
2954         } out;
2955
2956 };
2957
2958
2959 struct spoolss_57 {
2960         struct {
2961                 WERROR result;
2962         } out;
2963
2964 };
2965
2966
2967 struct spoolss_XcvData {
2968         struct {
2969                 struct policy_handle *handle;/* [ref] */
2970                 const char *function_name;/* [charset(UTF16)] */
2971                 DATA_BLOB in_data;
2972                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
2973                 uint32_t out_data_size;
2974                 uint32_t *status_code;/* [ref] */
2975         } in;
2976
2977         struct {
2978                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
2979                 uint32_t *needed;/* [ref] */
2980                 uint32_t *status_code;/* [ref] */
2981                 WERROR result;
2982         } out;
2983
2984 };
2985
2986
2987 struct spoolss_AddPrinterDriverEx {
2988         struct {
2989                 const char *servername;/* [unique,charset(UTF16)] */
2990                 struct spoolss_AddDriverInfoCtr *info_ctr;/* [ref] */
2991                 uint32_t flags;
2992         } in;
2993
2994         struct {
2995                 WERROR result;
2996         } out;
2997
2998 };
2999
3000
3001 struct spoolss_5a {
3002         struct {
3003                 WERROR result;
3004         } out;
3005
3006 };
3007
3008
3009 struct spoolss_5b {
3010         struct {
3011                 WERROR result;
3012         } out;
3013
3014 };
3015
3016
3017 struct spoolss_5c {
3018         struct {
3019                 WERROR result;
3020         } out;
3021
3022 };
3023
3024
3025 struct spoolss_5d {
3026         struct {
3027                 WERROR result;
3028         } out;
3029
3030 };
3031
3032
3033 struct spoolss_5e {
3034         struct {
3035                 WERROR result;
3036         } out;
3037
3038 };
3039
3040
3041 struct spoolss_5f {
3042         struct {
3043                 WERROR result;
3044         } out;
3045
3046 };
3047
3048 #endif /* _HEADER_spoolss */