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