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