s3-spoolss: use PRINTER_ENUM_NAME and remove double enum define.
[samba.git] / librpc / gen_ndr / spoolss.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "librpc/gen_ndr/misc.h"
6 #include "librpc/gen_ndr/security.h"
7 #include "librpc/gen_ndr/winreg.h"
8 #ifndef _HEADER_spoolss
9 #define _HEADER_spoolss
10
11 #define SPOOLSS_ARCHITECTURE_NT_X86     ( "Windows NT x86" )
12 #define SERVER_ALL_ACCESS       ( SEC_STD_REQUIRED|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
13 #define SERVER_READ     ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
14 #define SERVER_WRITE    ( STANDARD_RIGHTS_WRITE_ACCESS|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
15 #define SERVER_EXECUTE  ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
16 #define PRINTER_ALL_ACCESS      ( SEC_STD_REQUIRED|PRINTER_ACCESS_ADMINISTER|PRINTER_ACCESS_USE )
17 #define PRINTER_READ    ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
18 #define PRINTER_WRITE   ( STANDARD_RIGHTS_WRITE_ACCESS|PRINTER_ACCESS_USE )
19 #define PRINTER_EXECUTE ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
20 #define JOB_ALL_ACCESS  ( SEC_STD_REQUIRED|JOB_ACCESS_ADMINISTER )
21 #define JOB_READ        ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
22 #define JOB_WRITE       ( STANDARD_RIGHTS_WRITE_ACCESS|JOB_ACCESS_ADMINISTER )
23 #define JOB_EXECUTE     ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
24 #define PRINTER_ACE_FULL_CONTROL        ( SEC_GENERIC_ALL|PRINTER_ALL_ACCESS )
25 #define PRINTER_ACE_MANAGE_DOCUMENTS    ( SEC_GENERIC_ALL|READ_CONTROL_ACCESS )
26 #define PRINTER_ACE_PRINT       ( GENERIC_EXECUTE_ACCESS|READ_CONTROL_ACCESS|PRINTER_ACCESS_USE )
27 struct spoolss_Time {
28         uint16_t year;
29         uint16_t month;
30         uint16_t day_of_week;
31         uint16_t day;
32         uint16_t hour;
33         uint16_t minute;
34         uint16_t second;
35         uint16_t millisecond;
36 };
37
38 struct spoolss_PrinterInfo0 {
39         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
40         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
41         uint32_t cjobs;
42         uint32_t total_jobs;
43         uint32_t total_bytes;
44         struct spoolss_Time time;
45         uint32_t global_counter;
46         uint32_t total_pages;
47         uint32_t version;
48         uint32_t unknown10;
49         uint32_t unknown11;
50         uint32_t unknown12;
51         uint32_t session_counter;
52         uint32_t unknown14;
53         uint32_t printer_errors;
54         uint32_t unknown16;
55         uint32_t unknown17;
56         uint32_t unknown18;
57         uint32_t unknown19;
58         uint32_t change_id;
59         uint32_t unknown21;
60         uint32_t status;
61         uint32_t unknown23;
62         uint32_t c_setprinter;
63         uint16_t unknown25;
64         uint16_t unknown26;
65         uint32_t unknown27;
66         uint32_t unknown28;
67         uint32_t unknown29;
68 };
69
70 struct spoolss_DeviceMode {
71         const char *devicename;/* [charset(UTF16)] */
72         uint16_t specversion;
73         uint16_t driverversion;
74         uint16_t size;
75         uint16_t __driverextra_length;/* [value(r->driverextra_data.length)] */
76         uint32_t fields;
77         uint16_t orientation;
78         uint16_t papersize;
79         uint16_t paperlength;
80         uint16_t paperwidth;
81         uint16_t scale;
82         uint16_t copies;
83         uint16_t defaultsource;
84         uint16_t printquality;
85         uint16_t color;
86         uint16_t duplex;
87         uint16_t yresolution;
88         uint16_t ttoption;
89         uint16_t collate;
90         const char *formname;/* [charset(UTF16)] */
91         uint16_t logpixels;
92         uint32_t bitsperpel;
93         uint32_t pelswidth;
94         uint32_t pelsheight;
95         uint32_t displayflags;
96         uint32_t displayfrequency;
97         uint32_t icmmethod;
98         uint32_t icmintent;
99         uint32_t mediatype;
100         uint32_t dithertype;
101         uint32_t reserved1;
102         uint32_t reserved2;
103         uint32_t panningwidth;
104         uint32_t panningheight;
105         DATA_BLOB driverextra_data;/* [subcontext_size(__driverextra_length),subcontext(0),flag(LIBNDR_FLAG_REMAINING)] */
106 }/* [gensize,public] */;
107
108 /* bitmap spoolss_EnumPrinterFlags */
109 #define PRINTER_ENUM_DEFAULT ( 0x00000001 )
110 #define PRINTER_ENUM_LOCAL ( 0x00000002 )
111 #define PRINTER_ENUM_CONNECTIONS ( 0x00000004 )
112 #define PRINTER_ENUM_FAVORITE ( 0x00000004 )
113 #define PRINTER_ENUM_NAME ( 0x00000008 )
114 #define PRINTER_ENUM_REMOTE ( 0x00000010 )
115 #define PRINTER_ENUM_SHARED ( 0x00000020 )
116 #define PRINTER_ENUM_NETWORK ( 0x00000040 )
117 #define PRINTER_ENUM_EXPAND ( 0x00004000 )
118 #define PRINTER_ENUM_CONTAINER ( 0x00008000 )
119 #define PRINTER_ENUM_ICON1 ( 0x00010000 )
120 #define PRINTER_ENUM_ICON2 ( 0x00020000 )
121 #define PRINTER_ENUM_ICON3 ( 0x00040000 )
122 #define PRINTER_ENUM_ICON4 ( 0x00080000 )
123 #define PRINTER_ENUM_ICON5 ( 0x00100000 )
124 #define PRINTER_ENUM_ICON6 ( 0x00200000 )
125 #define PRINTER_ENUM_ICON7 ( 0x00400000 )
126 #define PRINTER_ENUM_ICON8 ( 0x00800000 )
127 #define PRINTER_ENUM_HIDE ( 0x01000000 )
128
129 struct spoolss_PrinterInfo1 {
130         uint32_t flags;
131         const char * name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
132         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
133         const char * comment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
134 };
135
136 /* bitmap spoolss_PrinterAttributes */
137 #define PRINTER_ATTRIBUTE_QUEUED ( 0x00000001 )
138 #define PRINTER_ATTRIBUTE_DIRECT ( 0x00000002 )
139 #define PRINTER_ATTRIBUTE_DEFAULT ( 0x00000004 )
140 #define PRINTER_ATTRIBUTE_SHARED ( 0x00000008 )
141 #define PRINTER_ATTRIBUTE_NETWORK ( 0x00000010 )
142 #define PRINTER_ATTRIBUTE_HIDDEN ( 0x00000020 )
143 #define PRINTER_ATTRIBUTE_LOCAL ( 0x00000040 )
144 #define PRINTER_ATTRIBUTE_ENABLE_DEVQ ( 0x00000080 )
145 #define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS ( 0x00000100 )
146 #define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST ( 0x00000200 )
147 #define PRINTER_ATTRIBUTE_WORK_OFFLINE ( 0x00000400 )
148 #define PRINTER_ATTRIBUTE_ENABLE_BIDI ( 0x00000800 )
149 #define PRINTER_ATTRIBUTE_RAW_ONLY ( 0x00001000 )
150 #define PRINTER_ATTRIBUTE_PUBLISHED ( 0x00002000 )
151 #define PRINTER_ATTRIBUTE_FAX ( 0x00004000 )
152 #define PRINTER_ATTRIBUTE_TS ( 0x00008000 )
153
154 /* bitmap spoolss_PrinterStatus */
155 #define PRINTER_STATUS_PAUSED ( 0x00000001 )
156 #define PRINTER_STATUS_ERROR ( 0x00000002 )
157 #define PRINTER_STATUS_PENDING_DELETION ( 0x00000004 )
158 #define PRINTER_STATUS_PAPER_JAM ( 0x00000008 )
159 #define PRINTER_STATUS_PAPER_OUT ( 0x00000010 )
160 #define PRINTER_STATUS_MANUAL_FEED ( 0x00000020 )
161 #define PRINTER_STATUS_PAPER_PROBLEM ( 0x00000040 )
162 #define PRINTER_STATUS_OFFLINE ( 0x00000080 )
163 #define PRINTER_STATUS_IO_ACTIVE ( 0x00000100 )
164 #define PRINTER_STATUS_BUSY ( 0x00000200 )
165 #define PRINTER_STATUS_PRINTING ( 0x00000400 )
166 #define PRINTER_STATUS_OUTPUT_BIN_FULL ( 0x00000800 )
167 #define PRINTER_STATUS_NOT_AVAILABLE ( 0x00001000 )
168 #define PRINTER_STATUS_WAITING ( 0x00002000 )
169 #define PRINTER_STATUS_PROCESSING ( 0x00004000 )
170 #define PRINTER_STATUS_INITIALIZING ( 0x00008000 )
171 #define PRINTER_STATUS_WARMING_UP ( 0x00010000 )
172 #define PRINTER_STATUS_TONER_LOW ( 0x00020000 )
173 #define PRINTER_STATUS_NO_TONER ( 0x00040000 )
174 #define PRINTER_STATUS_PAGE_PUNT ( 0x00080000 )
175 #define PRINTER_STATUS_USER_INTERVENTION ( 0x00100000 )
176 #define PRINTER_STATUS_OUT_OF_MEMORY ( 0x00200000 )
177 #define PRINTER_STATUS_DOOR_OPEN ( 0x00400000 )
178 #define PRINTER_STATUS_SERVER_UNKNOWN ( 0x00800000 )
179 #define PRINTER_STATUS_POWER_SAVE ( 0x01000000 )
180
181 struct spoolss_PrinterInfo2 {
182         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
183         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
184         const char * sharename;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
185         const char * portname;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
186         const char * drivername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
187         const char * comment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
188         const char * location;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
189         struct spoolss_DeviceMode *devmode;/* [relative,subcontext(0)] */
190         const char * sepfile;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
191         const char * printprocessor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
192         const char * datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
193         const char * parameters;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
194         struct security_descriptor *secdesc;/* [relative,subcontext(0)] */
195         uint32_t attributes;
196         uint32_t priority;
197         uint32_t defaultpriority;
198         uint32_t starttime;
199         uint32_t untiltime;
200         uint32_t status;
201         uint32_t cjobs;
202         uint32_t averageppm;
203 };
204
205 struct spoolss_PrinterInfo3 {
206         struct security_descriptor *secdesc;/* [relative,subcontext(0)] */
207 };
208
209 struct spoolss_PrinterInfo4 {
210         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
211         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
212         uint32_t attributes;
213 };
214
215 struct spoolss_PrinterInfo5 {
216         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
217         const char * portname;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
218         uint32_t attributes;
219         uint32_t device_not_selected_timeout;
220         uint32_t transmission_retry_timeout;
221 };
222
223 struct spoolss_PrinterInfo6 {
224         uint32_t status;
225 };
226
227 /* bitmap spoolss_DsPrintAction */
228 #define DSPRINT_PUBLISH ( 0x00000001 )
229 #define DSPRINT_UPDATE ( 0x00000002 )
230 #define DSPRINT_UNPUBLISH ( 0x00000004 )
231 #define DSPRINT_REPUBLISH ( 0x00000008 )
232 #define DSPRINT_PENDING ( 0x80000000 )
233
234 struct spoolss_PrinterInfo7 {
235         const char * guid;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
236         uint32_t action;
237 };
238
239 struct spoolss_DeviceModeInfo {
240         struct spoolss_DeviceMode *devmode;/* [relative,subcontext(0)] */
241 };
242
243 union spoolss_PrinterInfo {
244         struct spoolss_PrinterInfo0 info0;/* [case(0)] */
245         struct spoolss_PrinterInfo1 info1;/* [case] */
246         struct spoolss_PrinterInfo2 info2;/* [case(2)] */
247         struct spoolss_PrinterInfo3 info3;/* [case(3)] */
248         struct spoolss_PrinterInfo4 info4;/* [case(4)] */
249         struct spoolss_PrinterInfo5 info5;/* [case(5)] */
250         struct spoolss_PrinterInfo6 info6;/* [case(6)] */
251         struct spoolss_PrinterInfo7 info7;/* [case(7)] */
252         struct spoolss_DeviceModeInfo info8;/* [case(8)] */
253         struct spoolss_DeviceModeInfo info9;/* [case(9)] */
254 }/* [relative_base,nodiscriminant,public] */;
255
256 struct spoolss_DevmodeContainer {
257         uint32_t _ndr_size;/* [value(_ndr_size_spoolss_DeviceMode(devmode,ndr->iconv_convenience,ndr->flags))] */
258         struct spoolss_DeviceMode *devmode;/* [unique,subcontext_size(_ndr_size),subcontext(4)] */
259 };
260
261 struct spoolss_JobInfo1 {
262         uint32_t job_id;
263         const char * printer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
264         const char * server_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
265         const char * user_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
266         const char * document_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
267         const char * data_type;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
268         const char * text_status;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
269         uint32_t status;
270         uint32_t priority;
271         uint32_t position;
272         uint32_t total_pages;
273         uint32_t pages_printed;
274         struct spoolss_Time time;
275 };
276
277 union spoolss_JobInfo {
278         struct spoolss_JobInfo1 info1;/* [case] */
279 }/* [relative_base,nodiscriminant,public] */;
280
281 struct spoolss_JobInfoContainer {
282         uint32_t level;
283         union spoolss_JobInfo info;/* [switch_is(level)] */
284 };
285
286 enum spoolss_JobControl
287 #ifndef USE_UINT_ENUMS
288  {
289         SPOOLSS_JOB_CONTROL_PAUSE=1,
290         SPOOLSS_JOB_CONTROL_RESUME=2,
291         SPOOLSS_JOB_CONTROL_CANCEL=3,
292         SPOOLSS_JOB_CONTROL_RESTART=4,
293         SPOOLSS_JOB_CONTROL_DELETE=5,
294         SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER=6,
295         SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED=7
296 }
297 #else
298  { __donnot_use_enum_spoolss_JobControl=0x7FFFFFFF}
299 #define SPOOLSS_JOB_CONTROL_PAUSE ( 1 )
300 #define SPOOLSS_JOB_CONTROL_RESUME ( 2 )
301 #define SPOOLSS_JOB_CONTROL_CANCEL ( 3 )
302 #define SPOOLSS_JOB_CONTROL_RESTART ( 4 )
303 #define SPOOLSS_JOB_CONTROL_DELETE ( 5 )
304 #define SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER ( 6 )
305 #define SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED ( 7 )
306 #endif
307 ;
308
309 enum spoolss_PrinterControl
310 #ifndef USE_UINT_ENUMS
311  {
312         SPOOLSS_PRINTER_CONTROL_UNPAUSE=0,
313         SPOOLSS_PRINTER_CONTROL_PAUSE=1,
314         SPOOLSS_PRINTER_CONTROL_RESUME=2,
315         SPOOLSS_PRINTER_CONTROL_PURGE=3,
316         SPOOLSS_PRINTER_CONTROL_SET_STATUS=4
317 }
318 #else
319  { __donnot_use_enum_spoolss_PrinterControl=0x7FFFFFFF}
320 #define SPOOLSS_PRINTER_CONTROL_UNPAUSE ( 0 )
321 #define SPOOLSS_PRINTER_CONTROL_PAUSE ( 1 )
322 #define SPOOLSS_PRINTER_CONTROL_RESUME ( 2 )
323 #define SPOOLSS_PRINTER_CONTROL_PURGE ( 3 )
324 #define SPOOLSS_PRINTER_CONTROL_SET_STATUS ( 4 )
325 #endif
326 ;
327
328 union spoolss_SetPrinterInfo {
329         struct spoolss_PrinterInfo0 *info0;/* [unique,case(0)] */
330         struct spoolss_PrinterInfo1 *info1;/* [unique,case] */
331         struct spoolss_PrinterInfo2 *info2;/* [unique,case(2)] */
332         struct spoolss_PrinterInfo3 *info3;/* [unique,case(3)] */
333         struct spoolss_PrinterInfo4 *info4;/* [unique,case(4)] */
334         struct spoolss_PrinterInfo5 *info5;/* [unique,case(5)] */
335         struct spoolss_PrinterInfo6 *info6;/* [unique,case(6)] */
336         struct spoolss_PrinterInfo7 *info7;/* [unique,case(7)] */
337         struct spoolss_DeviceModeInfo *info8;/* [unique,case(8)] */
338         struct spoolss_DeviceModeInfo *info9;/* [unique,case(9)] */
339 }/* [switch_type(uint32)] */;
340
341 struct spoolss_DriverInfo1 {
342         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
343 };
344
345 enum spoolss_DriverOSVersion
346 #ifndef USE_UINT_ENUMS
347  {
348         SPOOLSS_DRIVER_VERSION_9X=0,
349         SPOOLSS_DRIVER_VERSION_NT35=1,
350         SPOOLSS_DRIVER_VERSION_NT4=2,
351         SPOOLSS_DRIVER_VERSION_200X=3
352 }
353 #else
354  { __donnot_use_enum_spoolss_DriverOSVersion=0x7FFFFFFF}
355 #define SPOOLSS_DRIVER_VERSION_9X ( 0 )
356 #define SPOOLSS_DRIVER_VERSION_NT35 ( 1 )
357 #define SPOOLSS_DRIVER_VERSION_NT4 ( 2 )
358 #define SPOOLSS_DRIVER_VERSION_200X ( 3 )
359 #endif
360 ;
361
362 struct spoolss_DriverInfo2 {
363         enum spoolss_DriverOSVersion version;
364         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
365         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
366         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
367         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
368         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
369 };
370
371 struct spoolss_DriverInfo3 {
372         enum spoolss_DriverOSVersion version;
373         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
374         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
375         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
376         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
377         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
378         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
379         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
380         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
381         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
382 };
383
384 struct spoolss_DriverInfo4 {
385         enum spoolss_DriverOSVersion version;
386         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
387         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
388         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
389         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
390         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
391         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
392         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
393         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
394         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
395         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
396 };
397
398 struct spoolss_DriverInfo5 {
399         enum spoolss_DriverOSVersion version;
400         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
401         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
402         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
403         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
404         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
405         uint32_t driver_attributes;
406         uint32_t config_version;
407         uint32_t driver_version;
408 };
409
410 struct spoolss_DriverInfo6 {
411         enum spoolss_DriverOSVersion version;
412         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
413         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
414         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
415         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
416         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
417         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
418         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
419         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
420         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
421         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
422         NTTIME driver_data;
423         uint64_t driver_version;
424         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
425         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
426         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
427         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
428 };
429
430 union spoolss_DriverInfo {
431         struct spoolss_DriverInfo1 info1;/* [case] */
432         struct spoolss_DriverInfo2 info2;/* [case(2)] */
433         struct spoolss_DriverInfo3 info3;/* [case(3)] */
434         struct spoolss_DriverInfo4 info4;/* [case(4)] */
435         struct spoolss_DriverInfo5 info5;/* [case(5)] */
436         struct spoolss_DriverInfo6 info6;/* [case(6)] */
437 }/* [relative_base,nodiscriminant,public] */;
438
439 struct spoolss_DriverDirectoryInfo1 {
440         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
441 };
442
443 union spoolss_DriverDirectoryInfo {
444         struct spoolss_DriverDirectoryInfo1 info1;/* [case] */
445 }/* [gensize,relative_base,nodiscriminant,public] */;
446
447 struct spoolss_PrintProcessorInfo1 {
448         const char * print_processor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
449 };
450
451 union spoolss_PrintProcessorInfo {
452         struct spoolss_PrintProcessorInfo1 info1;/* [case] */
453 }/* [relative_base,nodiscriminant,public] */;
454
455 struct spoolss_DocumentInfo1 {
456         const char *document_name;/* [unique,charset(UTF16)] */
457         const char *output_file;/* [unique,charset(UTF16)] */
458         const char *datatype;/* [unique,charset(UTF16)] */
459 };
460
461 union spoolss_DocumentInfo {
462         struct spoolss_DocumentInfo1 *info1;/* [unique,case] */
463 }/* [switch_type(uint32)] */;
464
465 struct spoolss_OSVersion {
466         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersion(r,ndr->iconv_convenience,ndr->flags))] */
467         uint32_t major;
468         uint32_t minor;
469         uint32_t build;
470         uint32_t unknown;/* [value(2)] */
471         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
472 }/* [gensize,public] */;
473
474 struct spoolss_OSVersionEx {
475         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersionEx(r,ndr->iconv_convenience,ndr->flags))] */
476         uint32_t major;
477         uint32_t minor;
478         uint32_t build;
479         uint32_t unknown1;/* [value(2)] */
480         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
481         uint32_t unknown2;
482         uint32_t unknown3;
483 }/* [gensize,public] */;
484
485 enum spoolss_PrinterDataType
486 #ifndef USE_UINT_ENUMS
487  {
488         SPOOLSS_PRINTER_DATA_TYPE_NULL=0,
489         SPOOLSS_PRINTER_DATA_TYPE_STRING=1,
490         SPOOLSS_PRINTER_DATA_TYPE_BINARY=3,
491         SPOOLSS_PRINTER_DATA_TYPE_UINT32=4,
492         SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY=7
493 }
494 #else
495  { __donnot_use_enum_spoolss_PrinterDataType=0x7FFFFFFF}
496 #define SPOOLSS_PRINTER_DATA_TYPE_NULL ( 0 )
497 #define SPOOLSS_PRINTER_DATA_TYPE_STRING ( 1 )
498 #define SPOOLSS_PRINTER_DATA_TYPE_BINARY ( 3 )
499 #define SPOOLSS_PRINTER_DATA_TYPE_UINT32 ( 4 )
500 #define SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY ( 7 )
501 #endif
502 ;
503
504 union spoolss_PrinterData {
505         const char * string;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(SPOOLSS_PRINTER_DATA_TYPE_STRING)] */
506         DATA_BLOB binary;/* [flag(LIBNDR_FLAG_REMAINING),case(SPOOLSS_PRINTER_DATA_TYPE_BINARY)] */
507         uint32_t value;/* [case(SPOOLSS_PRINTER_DATA_TYPE_UINT32)] */
508         const char ** string_array;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(SPOOLSS_PRINTER_DATA_TYPE_STRING_ARRAY)] */
509         DATA_BLOB data;/* [flag(LIBNDR_FLAG_REMAINING),default] */
510 }/* [gensize,public,nodiscriminant] */;
511
512 enum spoolss_FormFlags
513 #ifndef USE_UINT_ENUMS
514  {
515         SPOOLSS_FORM_USER=0,
516         SPOOLSS_FORM_BUILTIN=1,
517         SPOOLSS_FORM_PRINTER=2
518 }
519 #else
520  { __donnot_use_enum_spoolss_FormFlags=0x7FFFFFFF}
521 #define SPOOLSS_FORM_USER ( 0 )
522 #define SPOOLSS_FORM_BUILTIN ( 1 )
523 #define SPOOLSS_FORM_PRINTER ( 2 )
524 #endif
525 ;
526
527 struct spoolss_FormSize {
528         uint32_t width;
529         uint32_t height;
530 };
531
532 struct spoolss_FormArea {
533         uint32_t left;
534         uint32_t top;
535         uint32_t right;
536         uint32_t bottom;
537 };
538
539 struct spoolss_FormInfo1 {
540         enum spoolss_FormFlags flags;
541         const char * form_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
542         struct spoolss_FormSize size;
543         struct spoolss_FormArea area;
544 };
545
546 union spoolss_FormInfo {
547         struct spoolss_FormInfo1 info1;/* [case] */
548 }/* [relative_base,gensize,public,nodiscriminant] */;
549
550 struct spoolss_AddFormInfo1 {
551         enum spoolss_FormFlags flags;
552         const char *form_name;/* [unique,charset(UTF16)] */
553         struct spoolss_FormSize size;
554         struct spoolss_FormArea area;
555 };
556
557 union spoolss_AddFormInfo {
558         struct spoolss_AddFormInfo1 *info1;/* [unique,case] */
559 }/* [switch_type(uint32)] */;
560
561 struct spoolss_PortInfo1 {
562         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
563 };
564
565 /* bitmap spoolss_PortType */
566 #define SPOOLSS_PORT_TYPE_WRITE ( 0x00000001 )
567 #define SPOOLSS_PORT_TYPE_READ ( 0x00000002 )
568 #define SPOOLSS_PORT_TYPE_REDIRECTED ( 0x00000004 )
569 #define SPOOLSS_PORT_TYPE_NET_ATTACHED ( 0x00000008 )
570
571 struct spoolss_PortInfo2 {
572         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
573         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
574         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
575         uint32_t port_type;
576         uint32_t reserved;
577 };
578
579 union spoolss_PortInfo {
580         struct spoolss_PortInfo1 info1;/* [case] */
581         struct spoolss_PortInfo2 info2;/* [case(2)] */
582 }/* [relative_base,nodiscriminant,public] */;
583
584 struct spoolss_MonitorInfo1 {
585         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
586 };
587
588 struct spoolss_MonitorInfo2 {
589         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
590         const char * environment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
591         const char * dll_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
592 };
593
594 union spoolss_MonitorInfo {
595         struct spoolss_MonitorInfo1 info1;/* [case] */
596         struct spoolss_MonitorInfo2 info2;/* [case(2)] */
597 }/* [relative_base,nodiscriminant,public] */;
598
599 enum spoolss_Field
600 #ifndef USE_UINT_ENUMS
601  {
602         SPOOLSS_FIELD_SERVER_NAME=0,
603         SPOOLSS_FIELD_PRINTER_NAME=1,
604         SPOOLSS_FIELD_SHARE_NAME=2,
605         SPOOLSS_FIELD_PORT_NAME=3,
606         SPOOLSS_FIELD_DRIVER_NAME=4,
607         SPOOLSS_FIELD_COMMENT=5,
608         SPOOLSS_FIELD_LOCATION=6,
609         SPOOLSS_FIELD_DEVMODE=7,
610         SPOOLSS_FIELD_SEPFILE=8,
611         SPOOLSS_FIELD_PRINT_PROCESSOR=9,
612         SPOOLSS_FIELD_PARAMETERS=10,
613         SPOOLSS_FIELD_DATATYPE=11,
614         SPOOLSS_FIELD_SECURITY_DESCRIPTOR=12,
615         SPOOLSS_FIELD_ATTRIBUTES=13,
616         SPOOLSS_FIELD_PRIORITY=14,
617         SPOOLSS_FIELD_DEFAULT_PRIORITY=15,
618         SPOOLSS_FIELD_START_TIME=16,
619         SPOOLSS_FIELD_UNTIL_TIME=17,
620         SPOOLSS_FIELD_STATUS=18,
621         SPOOLSS_FIELD_STATUS_STRING=19,
622         SPOOLSS_FIELD_CJOBS=20,
623         SPOOLSS_FIELD_AVERAGE_PPM=21,
624         SPOOLSS_FIELD_TOTAL_PAGES=22,
625         SPOOLSS_FIELD_PAGES_PRINTED=23,
626         SPOOLSS_FIELD_TOTAL_BYTES=24,
627         SPOOLSS_FIELD_BYTES_PRINTED=25
628 }
629 #else
630  { __donnot_use_enum_spoolss_Field=0x7FFFFFFF}
631 #define SPOOLSS_FIELD_SERVER_NAME ( 0 )
632 #define SPOOLSS_FIELD_PRINTER_NAME ( 1 )
633 #define SPOOLSS_FIELD_SHARE_NAME ( 2 )
634 #define SPOOLSS_FIELD_PORT_NAME ( 3 )
635 #define SPOOLSS_FIELD_DRIVER_NAME ( 4 )
636 #define SPOOLSS_FIELD_COMMENT ( 5 )
637 #define SPOOLSS_FIELD_LOCATION ( 6 )
638 #define SPOOLSS_FIELD_DEVMODE ( 7 )
639 #define SPOOLSS_FIELD_SEPFILE ( 8 )
640 #define SPOOLSS_FIELD_PRINT_PROCESSOR ( 9 )
641 #define SPOOLSS_FIELD_PARAMETERS ( 10 )
642 #define SPOOLSS_FIELD_DATATYPE ( 11 )
643 #define SPOOLSS_FIELD_SECURITY_DESCRIPTOR ( 12 )
644 #define SPOOLSS_FIELD_ATTRIBUTES ( 13 )
645 #define SPOOLSS_FIELD_PRIORITY ( 14 )
646 #define SPOOLSS_FIELD_DEFAULT_PRIORITY ( 15 )
647 #define SPOOLSS_FIELD_START_TIME ( 16 )
648 #define SPOOLSS_FIELD_UNTIL_TIME ( 17 )
649 #define SPOOLSS_FIELD_STATUS ( 18 )
650 #define SPOOLSS_FIELD_STATUS_STRING ( 19 )
651 #define SPOOLSS_FIELD_CJOBS ( 20 )
652 #define SPOOLSS_FIELD_AVERAGE_PPM ( 21 )
653 #define SPOOLSS_FIELD_TOTAL_PAGES ( 22 )
654 #define SPOOLSS_FIELD_PAGES_PRINTED ( 23 )
655 #define SPOOLSS_FIELD_TOTAL_BYTES ( 24 )
656 #define SPOOLSS_FIELD_BYTES_PRINTED ( 25 )
657 #endif
658 ;
659
660 enum spoolss_NotifyType
661 #ifndef USE_UINT_ENUMS
662  {
663         SPOOLSS_NOTIFY_PRINTER=0,
664         SPOOLSS_NOTIFY_JOB=1
665 }
666 #else
667  { __donnot_use_enum_spoolss_NotifyType=0x7FFFFFFF}
668 #define SPOOLSS_NOTIFY_PRINTER ( 0 )
669 #define SPOOLSS_NOTIFY_JOB ( 1 )
670 #endif
671 ;
672
673 struct spoolss_NotifyOptionsArray {
674         enum spoolss_NotifyType type;
675         uint16_t u1;
676         uint32_t u2;
677         uint32_t u3;
678         uint32_t count;
679         enum spoolss_Field *fields;/* [unique,size_is(count)] */
680 };
681
682 struct spoolss_NotifyOptionsContainer {
683         uint32_t version;
684         uint32_t flags;
685         uint32_t count;
686         struct spoolss_NotifyOptionsArray *options;/* [unique,size_is(count)] */
687 };
688
689 struct spoolss_NotifyUTF16String {
690         uint32_t size;
691         const char *string;/* [unique,charset(UTF16),size_is(size/2)] */
692 };
693
694 struct spoolss_NotifyDOSString {
695         uint32_t size;
696         const char *string;/* [unique,charset(DOS),size_is(size)] */
697 };
698
699 struct spoolss_NotifyBlobData {
700         uint16_t data[8];
701 };
702
703 struct spoolss_NotifyBlob {
704         uint32_t len;
705         struct spoolss_NotifyBlobData *data;/* [unique] */
706 };
707
708 union spoolss_NotifyData {
709         int64_t integer;/* [case] */
710         struct spoolss_NotifyUTF16String utf16_string;/* [case(2)] */
711         struct spoolss_NotifyDOSString ascii_string;/* [case(3)] */
712         struct spoolss_NotifyBlob blob;/* [case(4)] */
713 }/* [switch_type(uint32)] */;
714
715 struct spoolss_Notify {
716         enum spoolss_NotifyType type;
717         enum spoolss_Field field;
718         uint32_t variable_type;
719         uint32_t job_id;
720         union spoolss_NotifyData data;/* [switch_is(variable_type)] */
721 };
722
723 struct spoolss_NotifyInfo {
724         uint32_t version;
725         uint32_t flags;
726         uint32_t count;
727         struct spoolss_Notify *notifies;/* [size_is(count)] */
728 };
729
730 struct spoolss_UserLevel1 {
731         uint32_t size;
732         const char *client;/* [unique,charset(UTF16)] */
733         const char *user;/* [unique,charset(UTF16)] */
734         uint32_t build;
735         uint32_t major;
736         uint32_t minor;
737         uint32_t processor;
738 };
739
740 union spoolss_UserLevel {
741         struct spoolss_UserLevel1 *level1;/* [unique,case] */
742 };
743
744 /* bitmap spoolss_AccessRights */
745 #define SERVER_ACCESS_ADMINISTER ( 0x00000001 )
746 #define SERVER_ACCESS_ENUMERATE ( 0x00000002 )
747 #define PRINTER_ACCESS_ADMINISTER ( 0x00000004 )
748 #define PRINTER_ACCESS_USE ( 0x00000008 )
749 #define JOB_ACCESS_ADMINISTER ( 0x00000010 )
750
751 /* bitmap spoolss_DeleteDriverFlags */
752 #define DPD_DELETE_UNUSED_FILES ( 0x00000001 )
753 #define DPD_DELETE_SPECIFIC_VERSION ( 0x00000002 )
754 #define DPD_DELETE_ALL_FILES ( 0x00000004 )
755
756
757 struct _spoolss_EnumPrinters {
758         struct {
759                 uint32_t flags;
760                 const char *server;/* [unique,charset(UTF16)] */
761                 uint32_t level;
762                 DATA_BLOB *buffer;/* [unique] */
763                 uint32_t offered;
764         } in;
765
766         struct {
767                 DATA_BLOB *info;/* [unique] */
768                 uint32_t *needed;/* [ref] */
769                 uint32_t count;
770                 WERROR result;
771         } out;
772
773 };
774
775
776 struct __spoolss_EnumPrinters {
777         struct {
778                 uint32_t level;
779                 uint32_t count;
780         } in;
781
782         struct {
783                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
784         } out;
785
786 };
787
788
789 struct spoolss_EnumPrinters {
790         struct {
791                 uint32_t flags;
792                 const char *server;/* [unique,charset(UTF16)] */
793                 uint32_t level;
794                 DATA_BLOB *buffer;/* [unique] */
795                 uint32_t offered;
796         } in;
797
798         struct {
799                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level),size_is(count)] */
800                 uint32_t *needed;/* [ref] */
801                 uint32_t count;
802                 WERROR result;
803         } out;
804
805 };
806
807
808 struct spoolss_OpenPrinter {
809         struct {
810                 const char *printername;/* [unique,charset(UTF16)] */
811                 const char *datatype;/* [unique,charset(UTF16)] */
812                 struct spoolss_DevmodeContainer devmode_ctr;
813                 uint32_t access_mask;
814         } in;
815
816         struct {
817                 struct policy_handle *handle;/* [ref] */
818                 WERROR result;
819         } out;
820
821 };
822
823
824 struct spoolss_SetJob {
825         struct {
826                 struct policy_handle *handle;/* [ref] */
827                 uint32_t job_id;
828                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
829                 enum spoolss_JobControl command;
830         } in;
831
832         struct {
833                 WERROR result;
834         } out;
835
836 };
837
838
839 struct spoolss_GetJob {
840         struct {
841                 struct policy_handle *handle;/* [ref] */
842                 uint32_t job_id;
843                 uint32_t level;
844                 DATA_BLOB *buffer;/* [unique] */
845                 uint32_t offered;
846         } in;
847
848         struct {
849                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
850                 uint32_t *needed;/* [ref] */
851                 WERROR result;
852         } out;
853
854 };
855
856
857 struct _spoolss_EnumJobs {
858         struct {
859                 struct policy_handle *handle;/* [ref] */
860                 uint32_t firstjob;
861                 uint32_t numjobs;
862                 uint32_t level;
863                 DATA_BLOB *buffer;/* [unique] */
864                 uint32_t offered;
865         } in;
866
867         struct {
868                 DATA_BLOB *info;/* [unique] */
869                 uint32_t *needed;/* [ref] */
870                 uint32_t count;
871                 WERROR result;
872         } out;
873
874 };
875
876
877 struct __spoolss_EnumJobs {
878         struct {
879                 uint32_t level;
880                 uint32_t count;
881         } in;
882
883         struct {
884                 union spoolss_JobInfo *info;/* [switch_is(level)] */
885         } out;
886
887 };
888
889
890 struct spoolss_EnumJobs {
891         struct {
892                 struct policy_handle *handle;/* [ref] */
893                 uint32_t firstjob;
894                 uint32_t numjobs;
895                 uint32_t level;
896                 DATA_BLOB *buffer;/* [unique] */
897                 uint32_t offered;
898         } in;
899
900         struct {
901                 union spoolss_JobInfo *info;/* [unique,switch_is(level),size_is(count)] */
902                 uint32_t *needed;/* [ref] */
903                 uint32_t count;
904                 WERROR result;
905         } out;
906
907 };
908
909
910 struct spoolss_AddPrinter {
911         struct {
912                 WERROR result;
913         } out;
914
915 };
916
917
918 struct spoolss_DeletePrinter {
919         struct {
920                 struct policy_handle *handle;/* [ref] */
921         } in;
922
923         struct {
924                 WERROR result;
925         } out;
926
927 };
928
929
930 struct spoolss_SetPrinter {
931         struct {
932                 struct policy_handle *handle;/* [ref] */
933                 uint32_t level;
934                 union spoolss_SetPrinterInfo info;/* [switch_is(level)] */
935                 struct spoolss_DevmodeContainer devmode_ctr;
936                 struct sec_desc_buf secdesc_ctr;
937                 enum spoolss_PrinterControl command;
938         } in;
939
940         struct {
941                 WERROR result;
942         } out;
943
944 };
945
946
947 struct spoolss_GetPrinter {
948         struct {
949                 struct policy_handle *handle;/* [ref] */
950                 uint32_t level;
951                 DATA_BLOB *buffer;/* [unique] */
952                 uint32_t offered;
953         } in;
954
955         struct {
956                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
957                 uint32_t *needed;/* [ref] */
958                 WERROR result;
959         } out;
960
961 };
962
963
964 struct spoolss_AddPrinterDriver {
965         struct {
966                 WERROR result;
967         } out;
968
969 };
970
971
972 struct _spoolss_EnumPrinterDrivers {
973         struct {
974                 const char *server;/* [unique,charset(UTF16)] */
975                 const char *environment;/* [unique,charset(UTF16)] */
976                 uint32_t level;
977                 DATA_BLOB *buffer;/* [unique] */
978                 uint32_t offered;
979         } in;
980
981         struct {
982                 DATA_BLOB *info;/* [unique] */
983                 uint32_t *needed;/* [ref] */
984                 uint32_t count;
985                 WERROR result;
986         } out;
987
988 };
989
990
991 struct __spoolss_EnumPrinterDrivers {
992         struct {
993                 uint32_t level;
994                 uint32_t count;
995         } in;
996
997         struct {
998                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
999         } out;
1000
1001 };
1002
1003
1004 struct spoolss_EnumPrinterDrivers {
1005         struct {
1006                 const char *server;/* [unique,charset(UTF16)] */
1007                 const char *environment;/* [unique,charset(UTF16)] */
1008                 uint32_t level;
1009                 DATA_BLOB *buffer;/* [unique] */
1010                 uint32_t offered;
1011         } in;
1012
1013         struct {
1014                 union spoolss_DriverInfo *info;/* [unique,switch_is(level),size_is(count)] */
1015                 uint32_t *needed;/* [ref] */
1016                 uint32_t count;
1017                 WERROR result;
1018         } out;
1019
1020 };
1021
1022
1023 struct spoolss_GetPrinterDriver {
1024         struct {
1025                 WERROR result;
1026         } out;
1027
1028 };
1029
1030
1031 struct spoolss_GetPrinterDriverDirectory {
1032         struct {
1033                 const char *server;/* [unique,charset(UTF16)] */
1034                 const char *environment;/* [unique,charset(UTF16)] */
1035                 uint32_t level;
1036                 DATA_BLOB *buffer;/* [unique] */
1037                 uint32_t offered;
1038         } in;
1039
1040         struct {
1041                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1042                 uint32_t *needed;/* [ref] */
1043                 WERROR result;
1044         } out;
1045
1046 };
1047
1048
1049 struct spoolss_DeletePrinterDriver {
1050         struct {
1051                 const char *server;/* [unique,charset(UTF16)] */
1052                 const char *architecture;/* [charset(UTF16)] */
1053                 const char *driver;/* [charset(UTF16)] */
1054         } in;
1055
1056         struct {
1057                 WERROR result;
1058         } out;
1059
1060 };
1061
1062
1063 struct spoolss_AddPrintProcessor {
1064         struct {
1065                 WERROR result;
1066         } out;
1067
1068 };
1069
1070
1071 struct _spoolss_EnumPrintProcessors {
1072         struct {
1073                 const char *servername;/* [unique,charset(UTF16)] */
1074                 const char *environment;/* [unique,charset(UTF16)] */
1075                 uint32_t level;
1076                 DATA_BLOB *buffer;/* [unique] */
1077                 uint32_t offered;
1078         } in;
1079
1080         struct {
1081                 DATA_BLOB *info;/* [unique] */
1082                 uint32_t *needed;/* [ref] */
1083                 uint32_t count;
1084                 WERROR result;
1085         } out;
1086
1087 };
1088
1089
1090 struct __spoolss_EnumPrintProcessors {
1091         struct {
1092                 uint32_t level;
1093                 uint32_t count;
1094         } in;
1095
1096         struct {
1097                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
1098         } out;
1099
1100 };
1101
1102
1103 struct spoolss_EnumPrintProcessors {
1104         struct {
1105                 const char *servername;/* [unique,charset(UTF16)] */
1106                 const char *environment;/* [unique,charset(UTF16)] */
1107                 uint32_t level;
1108                 DATA_BLOB *buffer;/* [unique] */
1109                 uint32_t offered;
1110         } in;
1111
1112         struct {
1113                 union spoolss_PrintProcessorInfo *info;/* [unique,switch_is(level),size_is(count)] */
1114                 uint32_t *needed;/* [ref] */
1115                 uint32_t count;
1116                 WERROR result;
1117         } out;
1118
1119 };
1120
1121
1122 struct spoolss_GetPrintProcessorDirectory {
1123         struct {
1124                 WERROR result;
1125         } out;
1126
1127 };
1128
1129
1130 struct spoolss_StartDocPrinter {
1131         struct {
1132                 struct policy_handle *handle;/* [ref] */
1133                 uint32_t level;
1134                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
1135         } in;
1136
1137         struct {
1138                 uint32_t *job_id;/* [ref] */
1139                 WERROR result;
1140         } out;
1141
1142 };
1143
1144
1145 struct spoolss_StartPagePrinter {
1146         struct {
1147                 struct policy_handle *handle;/* [ref] */
1148         } in;
1149
1150         struct {
1151                 WERROR result;
1152         } out;
1153
1154 };
1155
1156
1157 struct spoolss_WritePrinter {
1158         struct {
1159                 struct policy_handle *handle;/* [ref] */
1160                 DATA_BLOB data;
1161                 uint32_t _data_size;/* [value(r->in.data.length)] */
1162         } in;
1163
1164         struct {
1165                 uint32_t *num_written;/* [ref] */
1166                 WERROR result;
1167         } out;
1168
1169 };
1170
1171
1172 struct spoolss_EndPagePrinter {
1173         struct {
1174                 struct policy_handle *handle;/* [ref] */
1175         } in;
1176
1177         struct {
1178                 WERROR result;
1179         } out;
1180
1181 };
1182
1183
1184 struct spoolss_AbortPrinter {
1185         struct {
1186                 struct policy_handle *handle;/* [ref] */
1187         } in;
1188
1189         struct {
1190                 WERROR result;
1191         } out;
1192
1193 };
1194
1195
1196 struct spoolss_ReadPrinter {
1197         struct {
1198                 struct policy_handle *handle;/* [ref] */
1199                 uint32_t data_size;
1200         } in;
1201
1202         struct {
1203                 uint8_t *data;/* [ref,size_is(data_size)] */
1204                 uint32_t *_data_size;/* [ref] */
1205                 WERROR result;
1206         } out;
1207
1208 };
1209
1210
1211 struct spoolss_EndDocPrinter {
1212         struct {
1213                 struct policy_handle *handle;/* [ref] */
1214         } in;
1215
1216         struct {
1217                 WERROR result;
1218         } out;
1219
1220 };
1221
1222
1223 struct spoolss_AddJob {
1224         struct {
1225                 WERROR result;
1226         } out;
1227
1228 };
1229
1230
1231 struct spoolss_ScheduleJob {
1232         struct {
1233                 WERROR result;
1234         } out;
1235
1236 };
1237
1238
1239 struct _spoolss_GetPrinterData {
1240         struct {
1241                 struct policy_handle *handle;/* [ref] */
1242                 const char *value_name;/* [charset(UTF16)] */
1243                 uint32_t offered;
1244         } in;
1245
1246         struct {
1247                 enum spoolss_PrinterDataType *type;/* [ref] */
1248                 DATA_BLOB data;
1249                 uint32_t *needed;/* [ref] */
1250                 WERROR result;
1251         } out;
1252
1253 };
1254
1255
1256 struct __spoolss_GetPrinterData {
1257         struct {
1258                 enum spoolss_PrinterDataType type;
1259         } in;
1260
1261         struct {
1262                 union spoolss_PrinterData data;/* [switch_is(type)] */
1263         } out;
1264
1265 };
1266
1267
1268 struct spoolss_GetPrinterData {
1269         struct {
1270                 struct policy_handle *handle;/* [ref] */
1271                 const char *value_name;/* [charset(UTF16)] */
1272                 uint32_t offered;
1273         } in;
1274
1275         struct {
1276                 enum spoolss_PrinterDataType *type;/* [ref] */
1277                 union spoolss_PrinterData data;/* [subcontext_size(offered),subcontext(4),switch_is(*type)] */
1278                 uint32_t *needed;/* [ref] */
1279                 WERROR result;
1280         } out;
1281
1282 };
1283
1284
1285 struct _spoolss_SetPrinterData {
1286         struct {
1287                 struct policy_handle *handle;/* [ref] */
1288                 const char *value_name;/* [charset(UTF16)] */
1289                 enum spoolss_PrinterDataType type;
1290                 DATA_BLOB data;
1291                 uint32_t _offered;
1292         } in;
1293
1294         struct {
1295                 WERROR result;
1296         } out;
1297
1298 };
1299
1300
1301 struct __spoolss_SetPrinterData {
1302         struct {
1303                 enum spoolss_PrinterDataType type;
1304         } in;
1305
1306         struct {
1307                 union spoolss_PrinterData data;/* [switch_is(type)] */
1308         } out;
1309
1310 };
1311
1312
1313 struct spoolss_SetPrinterData {
1314         struct {
1315                 struct policy_handle *handle;/* [ref] */
1316                 const char *value_name;/* [charset(UTF16)] */
1317                 enum spoolss_PrinterDataType type;
1318                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
1319                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
1320         } in;
1321
1322         struct {
1323                 WERROR result;
1324         } out;
1325
1326 };
1327
1328
1329 struct spoolss_WaitForPrinterChange {
1330         struct {
1331                 WERROR result;
1332         } out;
1333
1334 };
1335
1336
1337 struct spoolss_ClosePrinter {
1338         struct {
1339                 struct policy_handle *handle;/* [ref] */
1340         } in;
1341
1342         struct {
1343                 struct policy_handle *handle;/* [ref] */
1344                 WERROR result;
1345         } out;
1346
1347 };
1348
1349
1350 struct spoolss_AddForm {
1351         struct {
1352                 struct policy_handle *handle;/* [ref] */
1353                 uint32_t level;
1354                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1355         } in;
1356
1357         struct {
1358                 WERROR result;
1359         } out;
1360
1361 };
1362
1363
1364 struct spoolss_DeleteForm {
1365         struct {
1366                 struct policy_handle *handle;/* [ref] */
1367                 const char *form_name;/* [charset(UTF16)] */
1368         } in;
1369
1370         struct {
1371                 WERROR result;
1372         } out;
1373
1374 };
1375
1376
1377 struct spoolss_GetForm {
1378         struct {
1379                 struct policy_handle *handle;/* [ref] */
1380                 const char *form_name;/* [charset(UTF16)] */
1381                 uint32_t level;
1382                 DATA_BLOB *buffer;/* [unique] */
1383                 uint32_t offered;
1384         } in;
1385
1386         struct {
1387                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1388                 uint32_t *needed;/* [ref] */
1389                 WERROR result;
1390         } out;
1391
1392 };
1393
1394
1395 struct spoolss_SetForm {
1396         struct {
1397                 struct policy_handle *handle;/* [ref] */
1398                 const char *form_name;/* [charset(UTF16)] */
1399                 uint32_t level;
1400                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1401         } in;
1402
1403         struct {
1404                 WERROR result;
1405         } out;
1406
1407 };
1408
1409
1410 struct _spoolss_EnumForms {
1411         struct {
1412                 struct policy_handle *handle;/* [ref] */
1413                 uint32_t level;
1414                 DATA_BLOB *buffer;/* [unique] */
1415                 uint32_t offered;
1416         } in;
1417
1418         struct {
1419                 DATA_BLOB *info;/* [unique] */
1420                 uint32_t *needed;/* [ref] */
1421                 uint32_t count;
1422                 WERROR result;
1423         } out;
1424
1425 };
1426
1427
1428 struct __spoolss_EnumForms {
1429         struct {
1430                 uint32_t level;
1431                 uint32_t count;
1432         } in;
1433
1434         struct {
1435                 union spoolss_FormInfo *info;/* [switch_is(level)] */
1436         } out;
1437
1438 };
1439
1440
1441 struct spoolss_EnumForms {
1442         struct {
1443                 struct policy_handle *handle;/* [ref] */
1444                 uint32_t level;
1445                 DATA_BLOB *buffer;/* [unique] */
1446                 uint32_t offered;
1447         } in;
1448
1449         struct {
1450                 union spoolss_FormInfo *info;/* [unique,switch_is(level),size_is(count)] */
1451                 uint32_t *needed;/* [ref] */
1452                 uint32_t count;
1453                 WERROR result;
1454         } out;
1455
1456 };
1457
1458
1459 struct _spoolss_EnumPorts {
1460         struct {
1461                 const char *servername;/* [unique,charset(UTF16)] */
1462                 uint32_t level;
1463                 DATA_BLOB *buffer;/* [unique] */
1464                 uint32_t offered;
1465         } in;
1466
1467         struct {
1468                 DATA_BLOB *info;/* [unique] */
1469                 uint32_t *needed;/* [ref] */
1470                 uint32_t count;
1471                 WERROR result;
1472         } out;
1473
1474 };
1475
1476
1477 struct __spoolss_EnumPorts {
1478         struct {
1479                 uint32_t level;
1480                 uint32_t count;
1481         } in;
1482
1483         struct {
1484                 union spoolss_PortInfo *info;/* [switch_is(level)] */
1485         } out;
1486
1487 };
1488
1489
1490 struct spoolss_EnumPorts {
1491         struct {
1492                 const char *servername;/* [unique,charset(UTF16)] */
1493                 uint32_t level;
1494                 DATA_BLOB *buffer;/* [unique] */
1495                 uint32_t offered;
1496         } in;
1497
1498         struct {
1499                 union spoolss_PortInfo *info;/* [unique,switch_is(level),size_is(count)] */
1500                 uint32_t *needed;/* [ref] */
1501                 uint32_t count;
1502                 WERROR result;
1503         } out;
1504
1505 };
1506
1507
1508 struct _spoolss_EnumMonitors {
1509         struct {
1510                 const char *servername;/* [unique,charset(UTF16)] */
1511                 uint32_t level;
1512                 DATA_BLOB *buffer;/* [unique] */
1513                 uint32_t offered;
1514         } in;
1515
1516         struct {
1517                 DATA_BLOB *info;/* [unique] */
1518                 uint32_t *needed;/* [ref] */
1519                 uint32_t count;
1520                 WERROR result;
1521         } out;
1522
1523 };
1524
1525
1526 struct __spoolss_EnumMonitors {
1527         struct {
1528                 uint32_t level;
1529                 uint32_t count;
1530         } in;
1531
1532         struct {
1533                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
1534         } out;
1535
1536 };
1537
1538
1539 struct spoolss_EnumMonitors {
1540         struct {
1541                 const char *servername;/* [unique,charset(UTF16)] */
1542                 uint32_t level;
1543                 DATA_BLOB *buffer;/* [unique] */
1544                 uint32_t offered;
1545         } in;
1546
1547         struct {
1548                 union spoolss_MonitorInfo *info;/* [unique,switch_is(level),size_is(count)] */
1549                 uint32_t *needed;/* [ref] */
1550                 uint32_t count;
1551                 WERROR result;
1552         } out;
1553
1554 };
1555
1556
1557 struct spoolss_AddPort {
1558         struct {
1559                 const char *server_name;/* [unique,charset(UTF16)] */
1560                 uint32_t unknown;
1561                 const char *monitor_name;/* [charset(UTF16)] */
1562         } in;
1563
1564         struct {
1565                 WERROR result;
1566         } out;
1567
1568 };
1569
1570
1571 struct spoolss_ConfigurePort {
1572         struct {
1573                 WERROR result;
1574         } out;
1575
1576 };
1577
1578
1579 struct spoolss_DeletePort {
1580         struct {
1581                 WERROR result;
1582         } out;
1583
1584 };
1585
1586
1587 struct spoolss_CreatePrinterIC {
1588         struct {
1589                 WERROR result;
1590         } out;
1591
1592 };
1593
1594
1595 struct spoolss_PlayGDIScriptOnPrinterIC {
1596         struct {
1597                 WERROR result;
1598         } out;
1599
1600 };
1601
1602
1603 struct spoolss_DeletePrinterIC {
1604         struct {
1605                 WERROR result;
1606         } out;
1607
1608 };
1609
1610
1611 struct spoolss_AddPrinterConnection {
1612         struct {
1613                 WERROR result;
1614         } out;
1615
1616 };
1617
1618
1619 struct spoolss_DeletePrinterConnection {
1620         struct {
1621                 WERROR result;
1622         } out;
1623
1624 };
1625
1626
1627 struct spoolss_PrinterMessageBox {
1628         struct {
1629                 WERROR result;
1630         } out;
1631
1632 };
1633
1634
1635 struct spoolss_AddMonitor {
1636         struct {
1637                 WERROR result;
1638         } out;
1639
1640 };
1641
1642
1643 struct spoolss_DeleteMonitor {
1644         struct {
1645                 WERROR result;
1646         } out;
1647
1648 };
1649
1650
1651 struct spoolss_DeletePrintProcessor {
1652         struct {
1653                 WERROR result;
1654         } out;
1655
1656 };
1657
1658
1659 struct spoolss_AddPrintProvidor {
1660         struct {
1661                 WERROR result;
1662         } out;
1663
1664 };
1665
1666
1667 struct spoolss_DeletePrintProvidor {
1668         struct {
1669                 WERROR result;
1670         } out;
1671
1672 };
1673
1674
1675 struct spoolss_EnumPrintProcDataTypes {
1676         struct {
1677                 WERROR result;
1678         } out;
1679
1680 };
1681
1682
1683 struct spoolss_ResetPrinter {
1684         struct {
1685                 WERROR result;
1686         } out;
1687
1688 };
1689
1690
1691 struct spoolss_GetPrinterDriver2 {
1692         struct {
1693                 struct policy_handle *handle;/* [ref] */
1694                 const char *architecture;/* [unique,charset(UTF16)] */
1695                 uint32_t level;
1696                 DATA_BLOB *buffer;/* [unique] */
1697                 uint32_t offered;
1698                 uint32_t client_major_version;
1699                 uint32_t client_minor_version;
1700         } in;
1701
1702         struct {
1703                 DATA_BLOB *info;/* [unique] */
1704                 uint32_t *needed;/* [ref] */
1705                 uint32_t *server_major_version;/* [ref] */
1706                 uint32_t *server_minor_version;/* [ref] */
1707                 WERROR result;
1708         } out;
1709
1710 };
1711
1712
1713 struct spoolss_FindFirstPrinterChangeNotification {
1714         struct {
1715                 WERROR result;
1716         } out;
1717
1718 };
1719
1720
1721 struct spoolss_FindNextPrinterChangeNotification {
1722         struct {
1723                 WERROR result;
1724         } out;
1725
1726 };
1727
1728
1729 struct spoolss_FindClosePrinterNotify {
1730         struct {
1731                 struct policy_handle *handle;/* [ref] */
1732         } in;
1733
1734         struct {
1735                 WERROR result;
1736         } out;
1737
1738 };
1739
1740
1741 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
1742         struct {
1743                 WERROR result;
1744         } out;
1745
1746 };
1747
1748
1749 struct spoolss_ReplyOpenPrinter {
1750         struct {
1751                 const char *server_name;/* [charset(UTF16)] */
1752                 uint32_t printer_local;
1753                 enum winreg_Type type;
1754                 uint32_t unknown1;
1755                 uint32_t unknown2;
1756         } in;
1757
1758         struct {
1759                 struct policy_handle *handle;/* [ref] */
1760                 WERROR result;
1761         } out;
1762
1763 };
1764
1765
1766 struct spoolss_RouterReplyPrinter {
1767         struct {
1768                 WERROR result;
1769         } out;
1770
1771 };
1772
1773
1774 struct spoolss_ReplyClosePrinter {
1775         struct {
1776                 struct policy_handle *handle;/* [ref] */
1777         } in;
1778
1779         struct {
1780                 struct policy_handle *handle;/* [ref] */
1781                 WERROR result;
1782         } out;
1783
1784 };
1785
1786
1787 struct spoolss_AddPortEx {
1788         struct {
1789                 WERROR result;
1790         } out;
1791
1792 };
1793
1794
1795 struct spoolss_RouterFindFirstPrinterChangeNotification {
1796         struct {
1797                 WERROR result;
1798         } out;
1799
1800 };
1801
1802
1803 struct spoolss_SpoolerInit {
1804         struct {
1805                 WERROR result;
1806         } out;
1807
1808 };
1809
1810
1811 struct spoolss_ResetPrinterEx {
1812         struct {
1813                 WERROR result;
1814         } out;
1815
1816 };
1817
1818
1819 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
1820         struct {
1821                 struct policy_handle *handle;/* [ref] */
1822                 uint32_t flags;
1823                 uint32_t options;
1824                 const char *str;/* [unique,charset(UTF16)] */
1825                 uint32_t printer_local;
1826                 struct spoolss_NotifyOptionsContainer *t1;/* [unique] */
1827         } in;
1828
1829         struct {
1830                 WERROR result;
1831         } out;
1832
1833 };
1834
1835
1836 struct spoolss_RouterRefreshPrinterChangeNotification {
1837         struct {
1838                 WERROR result;
1839         } out;
1840
1841 };
1842
1843
1844 struct spoolss_RemoteFindNextPrinterChangeNotifyEx {
1845         struct {
1846                 struct policy_handle *handle;/* [ref] */
1847                 uint32_t change_low;
1848                 struct spoolss_NotifyOptionsContainer *container;/* [unique] */
1849         } in;
1850
1851         struct {
1852                 struct spoolss_NotifyInfo **info;/* [ref] */
1853                 WERROR result;
1854         } out;
1855
1856 };
1857
1858
1859 struct spoolss_44 {
1860         struct {
1861                 WERROR result;
1862         } out;
1863
1864 };
1865
1866
1867 struct spoolss_OpenPrinterEx {
1868         struct {
1869                 const char *printername;/* [unique,charset(UTF16)] */
1870                 const char *datatype;/* [unique,charset(UTF16)] */
1871                 struct spoolss_DevmodeContainer devmode_ctr;
1872                 uint32_t access_mask;
1873                 uint32_t level;
1874                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
1875         } in;
1876
1877         struct {
1878                 struct policy_handle *handle;/* [ref] */
1879                 WERROR result;
1880         } out;
1881
1882 };
1883
1884
1885 struct spoolss_AddPrinterEx {
1886         struct {
1887                 const char *server;/* [unique,charset(UTF16)] */
1888                 uint32_t level;
1889                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level)] */
1890                 struct spoolss_DevmodeContainer devmode_ctr;
1891                 struct security_descriptor *secdesc;/* [unique] */
1892                 uint32_t ulevel;
1893                 union spoolss_UserLevel userlevel;/* [switch_is(ulevel)] */
1894         } in;
1895
1896         struct {
1897                 WERROR result;
1898         } out;
1899
1900 };
1901
1902
1903 struct spoolss_47 {
1904         struct {
1905                 WERROR result;
1906         } out;
1907
1908 };
1909
1910
1911 struct spoolss_EnumPrinterData {
1912         struct {
1913                 struct policy_handle *handle;/* [ref] */
1914                 uint32_t enum_index;
1915                 uint32_t value_offered;
1916                 uint32_t data_offered;
1917         } in;
1918
1919         struct {
1920                 const char *value_name;/* [ref,charset(UTF16),size_is(value_offered/2)] */
1921                 uint32_t *value_needed;/* [ref] */
1922                 uint32_t *printerdata_type;/* [ref] */
1923                 DATA_BLOB *buffer;/* [ref] */
1924                 uint32_t *data_needed;/* [ref] */
1925                 WERROR result;
1926         } out;
1927
1928 };
1929
1930
1931 struct spoolss_DeletePrinterData {
1932         struct {
1933                 struct policy_handle *handle;/* [ref] */
1934                 const char *value_name;/* [charset(UTF16)] */
1935         } in;
1936
1937         struct {
1938                 WERROR result;
1939         } out;
1940
1941 };
1942
1943
1944 struct spoolss_4a {
1945         struct {
1946                 WERROR result;
1947         } out;
1948
1949 };
1950
1951
1952 struct spoolss_4b {
1953         struct {
1954                 WERROR result;
1955         } out;
1956
1957 };
1958
1959
1960 struct spoolss_4c {
1961         struct {
1962                 WERROR result;
1963         } out;
1964
1965 };
1966
1967
1968 struct spoolss_SetPrinterDataEx {
1969         struct {
1970                 struct policy_handle *handle;/* [ref] */
1971                 const char *key_name;/* [charset(UTF16)] */
1972                 const char *value_name;/* [charset(UTF16)] */
1973                 uint32_t type;
1974                 DATA_BLOB buffer;
1975                 uint32_t offered;
1976         } in;
1977
1978         struct {
1979                 WERROR result;
1980         } out;
1981
1982 };
1983
1984
1985 struct spoolss_GetPrinterDataEx {
1986         struct {
1987                 struct policy_handle *handle;/* [ref] */
1988                 const char *key_name;/* [charset(UTF16)] */
1989                 const char *value_name;/* [charset(UTF16)] */
1990                 uint32_t offered;
1991         } in;
1992
1993         struct {
1994                 uint32_t *type;/* [ref] */
1995                 uint8_t *buffer;/* [ref,size_is(offered)] */
1996                 uint32_t *needed;/* [ref] */
1997                 WERROR result;
1998         } out;
1999
2000 };
2001
2002
2003 struct spoolss_EnumPrinterDataEx {
2004         struct {
2005                 struct policy_handle *handle;/* [ref] */
2006                 const char *key_name;/* [charset(UTF16)] */
2007                 uint32_t offered;
2008         } in;
2009
2010         struct {
2011                 uint8_t *buffer;/* [ref,size_is(offered)] */
2012                 uint32_t *needed;/* [ref] */
2013                 uint32_t *count;/* [ref] */
2014                 WERROR result;
2015         } out;
2016
2017 };
2018
2019
2020 struct spoolss_EnumPrinterKey {
2021         struct {
2022                 struct policy_handle *handle;/* [ref] */
2023                 const char *key_name;/* [charset(UTF16)] */
2024                 uint32_t key_buffer_size;
2025         } in;
2026
2027         struct {
2028                 uint16_t *key_buffer;/* [ref,size_is(key_buffer_size/2)] */
2029                 uint32_t *needed;/* [ref] */
2030                 WERROR result;
2031         } out;
2032
2033 };
2034
2035
2036 struct spoolss_DeletePrinterDataEx {
2037         struct {
2038                 struct policy_handle *handle;/* [ref] */
2039                 const char *key_name;/* [charset(UTF16)] */
2040                 const char *value_name;/* [charset(UTF16)] */
2041         } in;
2042
2043         struct {
2044                 WERROR result;
2045         } out;
2046
2047 };
2048
2049
2050 struct spoolss_DeletePrinterKey {
2051         struct {
2052                 struct policy_handle *handle;/* [ref] */
2053                 const char *key_name;/* [charset(UTF16)] */
2054         } in;
2055
2056         struct {
2057                 WERROR result;
2058         } out;
2059
2060 };
2061
2062
2063 struct spoolss_53 {
2064         struct {
2065                 WERROR result;
2066         } out;
2067
2068 };
2069
2070
2071 struct spoolss_DeletePrinterDriverEx {
2072         struct {
2073                 const char *server;/* [unique,charset(UTF16)] */
2074                 const char *architecture;/* [charset(UTF16)] */
2075                 const char *driver;/* [charset(UTF16)] */
2076                 uint32_t delete_flags;
2077                 uint32_t version;
2078         } in;
2079
2080         struct {
2081                 WERROR result;
2082         } out;
2083
2084 };
2085
2086
2087 struct spoolss_55 {
2088         struct {
2089                 WERROR result;
2090         } out;
2091
2092 };
2093
2094
2095 struct spoolss_56 {
2096         struct {
2097                 WERROR result;
2098         } out;
2099
2100 };
2101
2102
2103 struct spoolss_57 {
2104         struct {
2105                 WERROR result;
2106         } out;
2107
2108 };
2109
2110
2111 struct spoolss_XcvData {
2112         struct {
2113                 struct policy_handle *handle;/* [ref] */
2114                 const char *function_name;/* [charset(UTF16)] */
2115                 DATA_BLOB in_data;
2116                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
2117                 uint32_t out_data_size;
2118                 uint32_t *status_code;/* [ref] */
2119         } in;
2120
2121         struct {
2122                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
2123                 uint32_t *needed;/* [ref] */
2124                 uint32_t *status_code;/* [ref] */
2125                 WERROR result;
2126         } out;
2127
2128 };
2129
2130
2131 struct spoolss_AddPrinterDriverEx {
2132         struct {
2133                 WERROR result;
2134         } out;
2135
2136 };
2137
2138
2139 struct spoolss_5a {
2140         struct {
2141                 WERROR result;
2142         } out;
2143
2144 };
2145
2146
2147 struct spoolss_5b {
2148         struct {
2149                 WERROR result;
2150         } out;
2151
2152 };
2153
2154
2155 struct spoolss_5c {
2156         struct {
2157                 WERROR result;
2158         } out;
2159
2160 };
2161
2162
2163 struct spoolss_5d {
2164         struct {
2165                 WERROR result;
2166         } out;
2167
2168 };
2169
2170
2171 struct spoolss_5e {
2172         struct {
2173                 WERROR result;
2174         } out;
2175
2176 };
2177
2178
2179 struct spoolss_5f {
2180         struct {
2181                 WERROR result;
2182         } out;
2183
2184 };
2185
2186 #endif /* _HEADER_spoolss */