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