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