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