0d93ce4401d9f31fb507f530153c6285702bcf52
[kai/samba-autobuild/.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
752 struct _spoolss_EnumPrinters {
753         struct {
754                 uint32_t flags;
755                 const char *server;/* [unique,charset(UTF16)] */
756                 uint32_t level;
757                 DATA_BLOB *buffer;/* [unique] */
758                 uint32_t offered;
759         } in;
760
761         struct {
762                 DATA_BLOB *info;/* [unique] */
763                 uint32_t *needed;/* [ref] */
764                 uint32_t count;
765                 WERROR result;
766         } out;
767
768 };
769
770
771 struct __spoolss_EnumPrinters {
772         struct {
773                 uint32_t level;
774                 uint32_t count;
775         } in;
776
777         struct {
778                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
779         } out;
780
781 };
782
783
784 struct spoolss_EnumPrinters {
785         struct {
786                 uint32_t flags;
787                 const char *server;/* [unique,charset(UTF16)] */
788                 uint32_t level;
789                 DATA_BLOB *buffer;/* [unique] */
790                 uint32_t offered;
791         } in;
792
793         struct {
794                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level),size_is(count)] */
795                 uint32_t *needed;/* [ref] */
796                 uint32_t count;
797                 WERROR result;
798         } out;
799
800 };
801
802
803 struct spoolss_OpenPrinter {
804         struct {
805                 const char *printername;/* [unique,charset(UTF16)] */
806                 const char *datatype;/* [unique,charset(UTF16)] */
807                 struct spoolss_DevmodeContainer devmode_ctr;
808                 uint32_t access_mask;
809         } in;
810
811         struct {
812                 struct policy_handle *handle;/* [ref] */
813                 WERROR result;
814         } out;
815
816 };
817
818
819 struct spoolss_SetJob {
820         struct {
821                 struct policy_handle *handle;/* [ref] */
822                 uint32_t job_id;
823                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
824                 enum spoolss_JobControl command;
825         } in;
826
827         struct {
828                 WERROR result;
829         } out;
830
831 };
832
833
834 struct spoolss_GetJob {
835         struct {
836                 struct policy_handle *handle;/* [ref] */
837                 uint32_t job_id;
838                 uint32_t level;
839                 DATA_BLOB *buffer;/* [unique] */
840                 uint32_t offered;
841         } in;
842
843         struct {
844                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
845                 uint32_t *needed;/* [ref] */
846                 WERROR result;
847         } out;
848
849 };
850
851
852 struct _spoolss_EnumJobs {
853         struct {
854                 struct policy_handle *handle;/* [ref] */
855                 uint32_t firstjob;
856                 uint32_t numjobs;
857                 uint32_t level;
858                 DATA_BLOB *buffer;/* [unique] */
859                 uint32_t offered;
860         } in;
861
862         struct {
863                 DATA_BLOB *info;/* [unique] */
864                 uint32_t *needed;/* [ref] */
865                 uint32_t count;
866                 WERROR result;
867         } out;
868
869 };
870
871
872 struct __spoolss_EnumJobs {
873         struct {
874                 uint32_t level;
875                 uint32_t count;
876         } in;
877
878         struct {
879                 union spoolss_JobInfo *info;/* [switch_is(level)] */
880         } out;
881
882 };
883
884
885 struct spoolss_EnumJobs {
886         struct {
887                 struct policy_handle *handle;/* [ref] */
888                 uint32_t firstjob;
889                 uint32_t numjobs;
890                 uint32_t level;
891                 DATA_BLOB *buffer;/* [unique] */
892                 uint32_t offered;
893         } in;
894
895         struct {
896                 union spoolss_JobInfo *info;/* [unique,switch_is(level),size_is(count)] */
897                 uint32_t *needed;/* [ref] */
898                 uint32_t count;
899                 WERROR result;
900         } out;
901
902 };
903
904
905 struct spoolss_AddPrinter {
906         struct {
907                 WERROR result;
908         } out;
909
910 };
911
912
913 struct spoolss_DeletePrinter {
914         struct {
915                 struct policy_handle *handle;/* [ref] */
916         } in;
917
918         struct {
919                 WERROR result;
920         } out;
921
922 };
923
924
925 struct spoolss_SetPrinter {
926         struct {
927                 struct policy_handle *handle;/* [ref] */
928                 uint32_t level;
929                 union spoolss_SetPrinterInfo info;/* [switch_is(level)] */
930                 struct spoolss_DevmodeContainer devmode_ctr;
931                 struct sec_desc_buf secdesc_ctr;
932                 enum spoolss_PrinterControl command;
933         } in;
934
935         struct {
936                 WERROR result;
937         } out;
938
939 };
940
941
942 struct spoolss_GetPrinter {
943         struct {
944                 struct policy_handle *handle;/* [ref] */
945                 uint32_t level;
946                 DATA_BLOB *buffer;/* [unique] */
947                 uint32_t offered;
948         } in;
949
950         struct {
951                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
952                 uint32_t *needed;/* [ref] */
953                 WERROR result;
954         } out;
955
956 };
957
958
959 struct spoolss_AddPrinterDriver {
960         struct {
961                 WERROR result;
962         } out;
963
964 };
965
966
967 struct _spoolss_EnumPrinterDrivers {
968         struct {
969                 const char *server;/* [unique,charset(UTF16)] */
970                 const char *environment;/* [unique,charset(UTF16)] */
971                 uint32_t level;
972                 DATA_BLOB *buffer;/* [unique] */
973                 uint32_t offered;
974         } in;
975
976         struct {
977                 DATA_BLOB *info;/* [unique] */
978                 uint32_t *needed;/* [ref] */
979                 uint32_t count;
980                 WERROR result;
981         } out;
982
983 };
984
985
986 struct __spoolss_EnumPrinterDrivers {
987         struct {
988                 uint32_t level;
989                 uint32_t count;
990         } in;
991
992         struct {
993                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
994         } out;
995
996 };
997
998
999 struct spoolss_EnumPrinterDrivers {
1000         struct {
1001                 const char *server;/* [unique,charset(UTF16)] */
1002                 const char *environment;/* [unique,charset(UTF16)] */
1003                 uint32_t level;
1004                 DATA_BLOB *buffer;/* [unique] */
1005                 uint32_t offered;
1006         } in;
1007
1008         struct {
1009                 union spoolss_DriverInfo *info;/* [unique,switch_is(level),size_is(count)] */
1010                 uint32_t *needed;/* [ref] */
1011                 uint32_t count;
1012                 WERROR result;
1013         } out;
1014
1015 };
1016
1017
1018 struct spoolss_GetPrinterDriver {
1019         struct {
1020                 WERROR result;
1021         } out;
1022
1023 };
1024
1025
1026 struct spoolss_GetPrinterDriverDirectory {
1027         struct {
1028                 const char *server;/* [unique,charset(UTF16)] */
1029                 const char *environment;/* [unique,charset(UTF16)] */
1030                 uint32_t level;
1031                 DATA_BLOB *buffer;/* [unique] */
1032                 uint32_t offered;
1033         } in;
1034
1035         struct {
1036                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1037                 uint32_t *needed;/* [ref] */
1038                 WERROR result;
1039         } out;
1040
1041 };
1042
1043
1044 struct spoolss_DeletePrinterDriver {
1045         struct {
1046                 const char *server;/* [unique,charset(UTF16)] */
1047                 const char *architecture;/* [charset(UTF16)] */
1048                 const char *driver;/* [charset(UTF16)] */
1049         } in;
1050
1051         struct {
1052                 WERROR result;
1053         } out;
1054
1055 };
1056
1057
1058 struct spoolss_AddPrintProcessor {
1059         struct {
1060                 WERROR result;
1061         } out;
1062
1063 };
1064
1065
1066 struct _spoolss_EnumPrintProcessors {
1067         struct {
1068                 const char *servername;/* [unique,charset(UTF16)] */
1069                 const char *environment;/* [unique,charset(UTF16)] */
1070                 uint32_t level;
1071                 DATA_BLOB *buffer;/* [unique] */
1072                 uint32_t offered;
1073         } in;
1074
1075         struct {
1076                 DATA_BLOB *info;/* [unique] */
1077                 uint32_t *needed;/* [ref] */
1078                 uint32_t count;
1079                 WERROR result;
1080         } out;
1081
1082 };
1083
1084
1085 struct __spoolss_EnumPrintProcessors {
1086         struct {
1087                 uint32_t level;
1088                 uint32_t count;
1089         } in;
1090
1091         struct {
1092                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
1093         } out;
1094
1095 };
1096
1097
1098 struct spoolss_EnumPrintProcessors {
1099         struct {
1100                 const char *servername;/* [unique,charset(UTF16)] */
1101                 const char *environment;/* [unique,charset(UTF16)] */
1102                 uint32_t level;
1103                 DATA_BLOB *buffer;/* [unique] */
1104                 uint32_t offered;
1105         } in;
1106
1107         struct {
1108                 union spoolss_PrintProcessorInfo *info;/* [unique,switch_is(level),size_is(count)] */
1109                 uint32_t *needed;/* [ref] */
1110                 uint32_t count;
1111                 WERROR result;
1112         } out;
1113
1114 };
1115
1116
1117 struct spoolss_GetPrintProcessorDirectory {
1118         struct {
1119                 WERROR result;
1120         } out;
1121
1122 };
1123
1124
1125 struct spoolss_StartDocPrinter {
1126         struct {
1127                 struct policy_handle *handle;/* [ref] */
1128                 uint32_t level;
1129                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
1130         } in;
1131
1132         struct {
1133                 uint32_t *job_id;/* [ref] */
1134                 WERROR result;
1135         } out;
1136
1137 };
1138
1139
1140 struct spoolss_StartPagePrinter {
1141         struct {
1142                 struct policy_handle *handle;/* [ref] */
1143         } in;
1144
1145         struct {
1146                 WERROR result;
1147         } out;
1148
1149 };
1150
1151
1152 struct spoolss_WritePrinter {
1153         struct {
1154                 struct policy_handle *handle;/* [ref] */
1155                 DATA_BLOB data;
1156                 uint32_t _data_size;/* [value(r->in.data.length)] */
1157         } in;
1158
1159         struct {
1160                 uint32_t *num_written;/* [ref] */
1161                 WERROR result;
1162         } out;
1163
1164 };
1165
1166
1167 struct spoolss_EndPagePrinter {
1168         struct {
1169                 struct policy_handle *handle;/* [ref] */
1170         } in;
1171
1172         struct {
1173                 WERROR result;
1174         } out;
1175
1176 };
1177
1178
1179 struct spoolss_AbortPrinter {
1180         struct {
1181                 struct policy_handle *handle;/* [ref] */
1182         } in;
1183
1184         struct {
1185                 WERROR result;
1186         } out;
1187
1188 };
1189
1190
1191 struct spoolss_ReadPrinter {
1192         struct {
1193                 struct policy_handle *handle;/* [ref] */
1194                 uint32_t data_size;
1195         } in;
1196
1197         struct {
1198                 uint8_t *data;/* [ref,size_is(data_size)] */
1199                 uint32_t *_data_size;/* [ref] */
1200                 WERROR result;
1201         } out;
1202
1203 };
1204
1205
1206 struct spoolss_EndDocPrinter {
1207         struct {
1208                 struct policy_handle *handle;/* [ref] */
1209         } in;
1210
1211         struct {
1212                 WERROR result;
1213         } out;
1214
1215 };
1216
1217
1218 struct spoolss_AddJob {
1219         struct {
1220                 WERROR result;
1221         } out;
1222
1223 };
1224
1225
1226 struct spoolss_ScheduleJob {
1227         struct {
1228                 WERROR result;
1229         } out;
1230
1231 };
1232
1233
1234 struct _spoolss_GetPrinterData {
1235         struct {
1236                 struct policy_handle *handle;/* [ref] */
1237                 const char *value_name;/* [charset(UTF16)] */
1238                 uint32_t offered;
1239         } in;
1240
1241         struct {
1242                 enum spoolss_PrinterDataType *type;/* [ref] */
1243                 DATA_BLOB data;
1244                 uint32_t *needed;/* [ref] */
1245                 WERROR result;
1246         } out;
1247
1248 };
1249
1250
1251 struct __spoolss_GetPrinterData {
1252         struct {
1253                 enum spoolss_PrinterDataType type;
1254         } in;
1255
1256         struct {
1257                 union spoolss_PrinterData data;/* [switch_is(type)] */
1258         } out;
1259
1260 };
1261
1262
1263 struct spoolss_GetPrinterData {
1264         struct {
1265                 struct policy_handle *handle;/* [ref] */
1266                 const char *value_name;/* [charset(UTF16)] */
1267                 uint32_t offered;
1268         } in;
1269
1270         struct {
1271                 enum spoolss_PrinterDataType *type;/* [ref] */
1272                 union spoolss_PrinterData data;/* [subcontext_size(offered),subcontext(4),switch_is(*type)] */
1273                 uint32_t *needed;/* [ref] */
1274                 WERROR result;
1275         } out;
1276
1277 };
1278
1279
1280 struct _spoolss_SetPrinterData {
1281         struct {
1282                 struct policy_handle *handle;/* [ref] */
1283                 const char *value_name;/* [charset(UTF16)] */
1284                 enum spoolss_PrinterDataType type;
1285                 DATA_BLOB data;
1286                 uint32_t _offered;
1287         } in;
1288
1289         struct {
1290                 WERROR result;
1291         } out;
1292
1293 };
1294
1295
1296 struct __spoolss_SetPrinterData {
1297         struct {
1298                 enum spoolss_PrinterDataType type;
1299         } in;
1300
1301         struct {
1302                 union spoolss_PrinterData data;/* [switch_is(type)] */
1303         } out;
1304
1305 };
1306
1307
1308 struct spoolss_SetPrinterData {
1309         struct {
1310                 struct policy_handle *handle;/* [ref] */
1311                 const char *value_name;/* [charset(UTF16)] */
1312                 enum spoolss_PrinterDataType type;
1313                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
1314                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
1315         } in;
1316
1317         struct {
1318                 WERROR result;
1319         } out;
1320
1321 };
1322
1323
1324 struct spoolss_WaitForPrinterChange {
1325         struct {
1326                 WERROR result;
1327         } out;
1328
1329 };
1330
1331
1332 struct spoolss_ClosePrinter {
1333         struct {
1334                 struct policy_handle *handle;/* [ref] */
1335         } in;
1336
1337         struct {
1338                 struct policy_handle *handle;/* [ref] */
1339                 WERROR result;
1340         } out;
1341
1342 };
1343
1344
1345 struct spoolss_AddForm {
1346         struct {
1347                 struct policy_handle *handle;/* [ref] */
1348                 uint32_t level;
1349                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1350         } in;
1351
1352         struct {
1353                 WERROR result;
1354         } out;
1355
1356 };
1357
1358
1359 struct spoolss_DeleteForm {
1360         struct {
1361                 struct policy_handle *handle;/* [ref] */
1362                 const char *form_name;/* [charset(UTF16)] */
1363         } in;
1364
1365         struct {
1366                 WERROR result;
1367         } out;
1368
1369 };
1370
1371
1372 struct spoolss_GetForm {
1373         struct {
1374                 struct policy_handle *handle;/* [ref] */
1375                 const char *form_name;/* [charset(UTF16)] */
1376                 uint32_t level;
1377                 DATA_BLOB *buffer;/* [unique] */
1378                 uint32_t offered;
1379         } in;
1380
1381         struct {
1382                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1383                 uint32_t *needed;/* [ref] */
1384                 WERROR result;
1385         } out;
1386
1387 };
1388
1389
1390 struct spoolss_SetForm {
1391         struct {
1392                 struct policy_handle *handle;/* [ref] */
1393                 const char *form_name;/* [charset(UTF16)] */
1394                 uint32_t level;
1395                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1396         } in;
1397
1398         struct {
1399                 WERROR result;
1400         } out;
1401
1402 };
1403
1404
1405 struct _spoolss_EnumForms {
1406         struct {
1407                 struct policy_handle *handle;/* [ref] */
1408                 uint32_t level;
1409                 DATA_BLOB *buffer;/* [unique] */
1410                 uint32_t offered;
1411         } in;
1412
1413         struct {
1414                 DATA_BLOB *info;/* [unique] */
1415                 uint32_t *needed;/* [ref] */
1416                 uint32_t count;
1417                 WERROR result;
1418         } out;
1419
1420 };
1421
1422
1423 struct __spoolss_EnumForms {
1424         struct {
1425                 uint32_t level;
1426                 uint32_t count;
1427         } in;
1428
1429         struct {
1430                 union spoolss_FormInfo *info;/* [switch_is(level)] */
1431         } out;
1432
1433 };
1434
1435
1436 struct spoolss_EnumForms {
1437         struct {
1438                 struct policy_handle *handle;/* [ref] */
1439                 uint32_t level;
1440                 DATA_BLOB *buffer;/* [unique] */
1441                 uint32_t offered;
1442         } in;
1443
1444         struct {
1445                 union spoolss_FormInfo *info;/* [unique,switch_is(level),size_is(count)] */
1446                 uint32_t *needed;/* [ref] */
1447                 uint32_t count;
1448                 WERROR result;
1449         } out;
1450
1451 };
1452
1453
1454 struct _spoolss_EnumPorts {
1455         struct {
1456                 const char *servername;/* [unique,charset(UTF16)] */
1457                 uint32_t level;
1458                 DATA_BLOB *buffer;/* [unique] */
1459                 uint32_t offered;
1460         } in;
1461
1462         struct {
1463                 DATA_BLOB *info;/* [unique] */
1464                 uint32_t *needed;/* [ref] */
1465                 uint32_t count;
1466                 WERROR result;
1467         } out;
1468
1469 };
1470
1471
1472 struct __spoolss_EnumPorts {
1473         struct {
1474                 uint32_t level;
1475                 uint32_t count;
1476         } in;
1477
1478         struct {
1479                 union spoolss_PortInfo *info;/* [switch_is(level)] */
1480         } out;
1481
1482 };
1483
1484
1485 struct spoolss_EnumPorts {
1486         struct {
1487                 const char *servername;/* [unique,charset(UTF16)] */
1488                 uint32_t level;
1489                 DATA_BLOB *buffer;/* [unique] */
1490                 uint32_t offered;
1491         } in;
1492
1493         struct {
1494                 union spoolss_PortInfo *info;/* [unique,switch_is(level),size_is(count)] */
1495                 uint32_t *needed;/* [ref] */
1496                 uint32_t count;
1497                 WERROR result;
1498         } out;
1499
1500 };
1501
1502
1503 struct _spoolss_EnumMonitors {
1504         struct {
1505                 const char *servername;/* [unique,charset(UTF16)] */
1506                 uint32_t level;
1507                 DATA_BLOB *buffer;/* [unique] */
1508                 uint32_t offered;
1509         } in;
1510
1511         struct {
1512                 DATA_BLOB *info;/* [unique] */
1513                 uint32_t *needed;/* [ref] */
1514                 uint32_t count;
1515                 WERROR result;
1516         } out;
1517
1518 };
1519
1520
1521 struct __spoolss_EnumMonitors {
1522         struct {
1523                 uint32_t level;
1524                 uint32_t count;
1525         } in;
1526
1527         struct {
1528                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
1529         } out;
1530
1531 };
1532
1533
1534 struct spoolss_EnumMonitors {
1535         struct {
1536                 const char *servername;/* [unique,charset(UTF16)] */
1537                 uint32_t level;
1538                 DATA_BLOB *buffer;/* [unique] */
1539                 uint32_t offered;
1540         } in;
1541
1542         struct {
1543                 union spoolss_MonitorInfo *info;/* [unique,switch_is(level),size_is(count)] */
1544                 uint32_t *needed;/* [ref] */
1545                 uint32_t count;
1546                 WERROR result;
1547         } out;
1548
1549 };
1550
1551
1552 struct spoolss_AddPort {
1553         struct {
1554                 const char *server_name;/* [unique,charset(UTF16)] */
1555                 uint32_t unknown;
1556                 const char *monitor_name;/* [charset(UTF16)] */
1557         } in;
1558
1559         struct {
1560                 WERROR result;
1561         } out;
1562
1563 };
1564
1565
1566 struct spoolss_ConfigurePort {
1567         struct {
1568                 WERROR result;
1569         } out;
1570
1571 };
1572
1573
1574 struct spoolss_DeletePort {
1575         struct {
1576                 WERROR result;
1577         } out;
1578
1579 };
1580
1581
1582 struct spoolss_CreatePrinterIC {
1583         struct {
1584                 WERROR result;
1585         } out;
1586
1587 };
1588
1589
1590 struct spoolss_PlayGDIScriptOnPrinterIC {
1591         struct {
1592                 WERROR result;
1593         } out;
1594
1595 };
1596
1597
1598 struct spoolss_DeletePrinterIC {
1599         struct {
1600                 WERROR result;
1601         } out;
1602
1603 };
1604
1605
1606 struct spoolss_AddPrinterConnection {
1607         struct {
1608                 WERROR result;
1609         } out;
1610
1611 };
1612
1613
1614 struct spoolss_DeletePrinterConnection {
1615         struct {
1616                 WERROR result;
1617         } out;
1618
1619 };
1620
1621
1622 struct spoolss_PrinterMessageBox {
1623         struct {
1624                 WERROR result;
1625         } out;
1626
1627 };
1628
1629
1630 struct spoolss_AddMonitor {
1631         struct {
1632                 WERROR result;
1633         } out;
1634
1635 };
1636
1637
1638 struct spoolss_DeleteMonitor {
1639         struct {
1640                 WERROR result;
1641         } out;
1642
1643 };
1644
1645
1646 struct spoolss_DeletePrintProcessor {
1647         struct {
1648                 WERROR result;
1649         } out;
1650
1651 };
1652
1653
1654 struct spoolss_AddPrintProvidor {
1655         struct {
1656                 WERROR result;
1657         } out;
1658
1659 };
1660
1661
1662 struct spoolss_DeletePrintProvidor {
1663         struct {
1664                 WERROR result;
1665         } out;
1666
1667 };
1668
1669
1670 struct spoolss_EnumPrintProcDataTypes {
1671         struct {
1672                 WERROR result;
1673         } out;
1674
1675 };
1676
1677
1678 struct spoolss_ResetPrinter {
1679         struct {
1680                 WERROR result;
1681         } out;
1682
1683 };
1684
1685
1686 struct spoolss_GetPrinterDriver2 {
1687         struct {
1688                 struct policy_handle *handle;/* [ref] */
1689                 const char *architecture;/* [unique,charset(UTF16)] */
1690                 uint32_t level;
1691                 DATA_BLOB *buffer;/* [unique] */
1692                 uint32_t offered;
1693                 uint32_t client_major_version;
1694                 uint32_t client_minor_version;
1695         } in;
1696
1697         struct {
1698                 DATA_BLOB *info;/* [unique] */
1699                 uint32_t *needed;/* [ref] */
1700                 uint32_t *server_major_version;/* [ref] */
1701                 uint32_t *server_minor_version;/* [ref] */
1702                 WERROR result;
1703         } out;
1704
1705 };
1706
1707
1708 struct spoolss_FindFirstPrinterChangeNotification {
1709         struct {
1710                 WERROR result;
1711         } out;
1712
1713 };
1714
1715
1716 struct spoolss_FindNextPrinterChangeNotification {
1717         struct {
1718                 WERROR result;
1719         } out;
1720
1721 };
1722
1723
1724 struct spoolss_FindClosePrinterNotify {
1725         struct {
1726                 struct policy_handle *handle;/* [ref] */
1727         } in;
1728
1729         struct {
1730                 WERROR result;
1731         } out;
1732
1733 };
1734
1735
1736 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
1737         struct {
1738                 WERROR result;
1739         } out;
1740
1741 };
1742
1743
1744 struct spoolss_ReplyOpenPrinter {
1745         struct {
1746                 const char *server_name;/* [charset(UTF16)] */
1747                 uint32_t printer_local;
1748                 enum winreg_Type type;
1749                 uint32_t unknown1;
1750                 uint32_t unknown2;
1751         } in;
1752
1753         struct {
1754                 struct policy_handle *handle;/* [ref] */
1755                 WERROR result;
1756         } out;
1757
1758 };
1759
1760
1761 struct spoolss_RouterReplyPrinter {
1762         struct {
1763                 WERROR result;
1764         } out;
1765
1766 };
1767
1768
1769 struct spoolss_ReplyClosePrinter {
1770         struct {
1771                 struct policy_handle *handle;/* [ref] */
1772         } in;
1773
1774         struct {
1775                 struct policy_handle *handle;/* [ref] */
1776                 WERROR result;
1777         } out;
1778
1779 };
1780
1781
1782 struct spoolss_AddPortEx {
1783         struct {
1784                 WERROR result;
1785         } out;
1786
1787 };
1788
1789
1790 struct spoolss_RouterFindFirstPrinterChangeNotification {
1791         struct {
1792                 WERROR result;
1793         } out;
1794
1795 };
1796
1797
1798 struct spoolss_SpoolerInit {
1799         struct {
1800                 WERROR result;
1801         } out;
1802
1803 };
1804
1805
1806 struct spoolss_ResetPrinterEx {
1807         struct {
1808                 WERROR result;
1809         } out;
1810
1811 };
1812
1813
1814 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
1815         struct {
1816                 struct policy_handle *handle;/* [ref] */
1817                 uint32_t flags;
1818                 uint32_t options;
1819                 const char *str;/* [unique,charset(UTF16)] */
1820                 uint32_t printer_local;
1821                 struct spoolss_NotifyOptionsContainer *t1;/* [unique] */
1822         } in;
1823
1824         struct {
1825                 WERROR result;
1826         } out;
1827
1828 };
1829
1830
1831 struct spoolss_RouterRefreshPrinterChangeNotification {
1832         struct {
1833                 WERROR result;
1834         } out;
1835
1836 };
1837
1838
1839 struct spoolss_RemoteFindNextPrinterChangeNotifyEx {
1840         struct {
1841                 struct policy_handle *handle;/* [ref] */
1842                 uint32_t change_low;
1843                 struct spoolss_NotifyOptionsContainer *container;/* [unique] */
1844         } in;
1845
1846         struct {
1847                 struct spoolss_NotifyInfo **info;/* [ref] */
1848                 WERROR result;
1849         } out;
1850
1851 };
1852
1853
1854 struct spoolss_44 {
1855         struct {
1856                 WERROR result;
1857         } out;
1858
1859 };
1860
1861
1862 struct spoolss_OpenPrinterEx {
1863         struct {
1864                 const char *printername;/* [unique,charset(UTF16)] */
1865                 const char *datatype;/* [unique,charset(UTF16)] */
1866                 struct spoolss_DevmodeContainer devmode_ctr;
1867                 uint32_t access_mask;
1868                 uint32_t level;
1869                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
1870         } in;
1871
1872         struct {
1873                 struct policy_handle *handle;/* [ref] */
1874                 WERROR result;
1875         } out;
1876
1877 };
1878
1879
1880 struct spoolss_AddPrinterEx {
1881         struct {
1882                 const char *server;/* [unique,charset(UTF16)] */
1883                 uint32_t level;
1884                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level)] */
1885                 struct spoolss_DevmodeContainer devmode_ctr;
1886                 struct security_descriptor *secdesc;/* [unique] */
1887                 uint32_t ulevel;
1888                 union spoolss_UserLevel userlevel;/* [switch_is(ulevel)] */
1889         } in;
1890
1891         struct {
1892                 WERROR result;
1893         } out;
1894
1895 };
1896
1897
1898 struct spoolss_47 {
1899         struct {
1900                 WERROR result;
1901         } out;
1902
1903 };
1904
1905
1906 struct spoolss_EnumPrinterData {
1907         struct {
1908                 struct policy_handle *handle;/* [ref] */
1909                 uint32_t enum_index;
1910                 uint32_t value_offered;
1911                 uint32_t data_offered;
1912         } in;
1913
1914         struct {
1915                 const char *value_name;/* [ref,charset(UTF16),size_is(value_offered/2)] */
1916                 uint32_t *value_needed;/* [ref] */
1917                 uint32_t *printerdata_type;/* [ref] */
1918                 DATA_BLOB *buffer;/* [ref] */
1919                 uint32_t *data_needed;/* [ref] */
1920                 WERROR result;
1921         } out;
1922
1923 };
1924
1925
1926 struct spoolss_DeletePrinterData {
1927         struct {
1928                 struct policy_handle *handle;/* [ref] */
1929                 const char *value_name;/* [charset(UTF16)] */
1930         } in;
1931
1932         struct {
1933                 WERROR result;
1934         } out;
1935
1936 };
1937
1938
1939 struct spoolss_4a {
1940         struct {
1941                 WERROR result;
1942         } out;
1943
1944 };
1945
1946
1947 struct spoolss_4b {
1948         struct {
1949                 WERROR result;
1950         } out;
1951
1952 };
1953
1954
1955 struct spoolss_4c {
1956         struct {
1957                 WERROR result;
1958         } out;
1959
1960 };
1961
1962
1963 struct spoolss_SetPrinterDataEx {
1964         struct {
1965                 struct policy_handle *handle;/* [ref] */
1966                 const char *key_name;/* [charset(UTF16)] */
1967                 const char *value_name;/* [charset(UTF16)] */
1968                 uint32_t type;
1969                 DATA_BLOB buffer;
1970                 uint32_t offered;
1971         } in;
1972
1973         struct {
1974                 WERROR result;
1975         } out;
1976
1977 };
1978
1979
1980 struct spoolss_GetPrinterDataEx {
1981         struct {
1982                 struct policy_handle *handle;/* [ref] */
1983                 const char *key_name;/* [charset(UTF16)] */
1984                 const char *value_name;/* [charset(UTF16)] */
1985                 uint32_t offered;
1986         } in;
1987
1988         struct {
1989                 uint32_t *type;/* [ref] */
1990                 uint8_t *buffer;/* [ref,size_is(offered)] */
1991                 uint32_t *needed;/* [ref] */
1992                 WERROR result;
1993         } out;
1994
1995 };
1996
1997
1998 struct spoolss_EnumPrinterDataEx {
1999         struct {
2000                 struct policy_handle *handle;/* [ref] */
2001                 const char *key_name;/* [charset(UTF16)] */
2002                 uint32_t offered;
2003         } in;
2004
2005         struct {
2006                 uint8_t *buffer;/* [ref,size_is(offered)] */
2007                 uint32_t *needed;/* [ref] */
2008                 uint32_t *count;/* [ref] */
2009                 WERROR result;
2010         } out;
2011
2012 };
2013
2014
2015 struct spoolss_EnumPrinterKey {
2016         struct {
2017                 struct policy_handle *handle;/* [ref] */
2018                 const char *key_name;/* [charset(UTF16)] */
2019                 uint32_t key_buffer_size;
2020         } in;
2021
2022         struct {
2023                 uint16_t *key_buffer;/* [ref,size_is(key_buffer_size/2)] */
2024                 uint32_t *needed;/* [ref] */
2025                 WERROR result;
2026         } out;
2027
2028 };
2029
2030
2031 struct spoolss_DeletePrinterDataEx {
2032         struct {
2033                 struct policy_handle *handle;/* [ref] */
2034                 const char *key_name;/* [charset(UTF16)] */
2035                 const char *value_name;/* [charset(UTF16)] */
2036         } in;
2037
2038         struct {
2039                 WERROR result;
2040         } out;
2041
2042 };
2043
2044
2045 struct spoolss_DeletePrinterKey {
2046         struct {
2047                 struct policy_handle *handle;/* [ref] */
2048                 const char *key_name;/* [charset(UTF16)] */
2049         } in;
2050
2051         struct {
2052                 WERROR result;
2053         } out;
2054
2055 };
2056
2057
2058 struct spoolss_53 {
2059         struct {
2060                 WERROR result;
2061         } out;
2062
2063 };
2064
2065
2066 struct spoolss_DeletePrinterDriverEx {
2067         struct {
2068                 WERROR result;
2069         } out;
2070
2071 };
2072
2073
2074 struct spoolss_55 {
2075         struct {
2076                 WERROR result;
2077         } out;
2078
2079 };
2080
2081
2082 struct spoolss_56 {
2083         struct {
2084                 WERROR result;
2085         } out;
2086
2087 };
2088
2089
2090 struct spoolss_57 {
2091         struct {
2092                 WERROR result;
2093         } out;
2094
2095 };
2096
2097
2098 struct spoolss_XcvData {
2099         struct {
2100                 struct policy_handle *handle;/* [ref] */
2101                 const char *function_name;/* [charset(UTF16)] */
2102                 DATA_BLOB in_data;
2103                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
2104                 uint32_t out_data_size;
2105                 uint32_t *status_code;/* [ref] */
2106         } in;
2107
2108         struct {
2109                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
2110                 uint32_t *needed;/* [ref] */
2111                 uint32_t *status_code;/* [ref] */
2112                 WERROR result;
2113         } out;
2114
2115 };
2116
2117
2118 struct spoolss_AddPrinterDriverEx {
2119         struct {
2120                 WERROR result;
2121         } out;
2122
2123 };
2124
2125
2126 struct spoolss_5a {
2127         struct {
2128                 WERROR result;
2129         } out;
2130
2131 };
2132
2133
2134 struct spoolss_5b {
2135         struct {
2136                 WERROR result;
2137         } out;
2138
2139 };
2140
2141
2142 struct spoolss_5c {
2143         struct {
2144                 WERROR result;
2145         } out;
2146
2147 };
2148
2149
2150 struct spoolss_5d {
2151         struct {
2152                 WERROR result;
2153         } out;
2154
2155 };
2156
2157
2158 struct spoolss_5e {
2159         struct {
2160                 WERROR result;
2161         } out;
2162
2163 };
2164
2165
2166 struct spoolss_5f {
2167         struct {
2168                 WERROR result;
2169         } out;
2170
2171 };
2172
2173 #endif /* _HEADER_spoolss */