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