s3: re-run make samba3-idl.
[kai/samba-autobuild/.git] / librpc / gen_ndr / spoolss.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "librpc/gen_ndr/misc.h"
6 #include "librpc/gen_ndr/security.h"
7 #include "librpc/gen_ndr/winreg.h"
8 #ifndef _HEADER_spoolss
9 #define _HEADER_spoolss
10
11 #define 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                 struct policy_handle *handle;/* [ref] */
1263                 uint32_t level;
1264                 uint32_t offered;
1265                 uint8_t *buffer;/* [unique,size_is(offered)] */
1266         } in;
1267
1268         struct {
1269                 uint32_t *needed;/* [ref] */
1270                 uint8_t *buffer;/* [unique,size_is(offered)] */
1271                 WERROR result;
1272         } out;
1273
1274 };
1275
1276
1277 struct spoolss_ScheduleJob {
1278         struct {
1279                 struct policy_handle *handle;/* [ref] */
1280                 uint32_t jobid;
1281         } in;
1282
1283         struct {
1284                 WERROR result;
1285         } out;
1286
1287 };
1288
1289
1290 struct _spoolss_GetPrinterData {
1291         struct {
1292                 struct policy_handle *handle;/* [ref] */
1293                 const char *value_name;/* [charset(UTF16)] */
1294                 uint32_t offered;
1295         } in;
1296
1297         struct {
1298                 enum spoolss_PrinterDataType *type;/* [ref] */
1299                 DATA_BLOB data;
1300                 uint32_t *needed;/* [ref] */
1301                 WERROR result;
1302         } out;
1303
1304 };
1305
1306
1307 struct __spoolss_GetPrinterData {
1308         struct {
1309                 enum spoolss_PrinterDataType type;
1310         } in;
1311
1312         struct {
1313                 union spoolss_PrinterData data;/* [switch_is(type)] */
1314         } out;
1315
1316 };
1317
1318
1319 struct spoolss_GetPrinterData {
1320         struct {
1321                 struct policy_handle *handle;/* [ref] */
1322                 const char *value_name;/* [charset(UTF16)] */
1323                 uint32_t offered;
1324         } in;
1325
1326         struct {
1327                 enum spoolss_PrinterDataType *type;/* [ref] */
1328                 union spoolss_PrinterData data;/* [subcontext_size(offered),subcontext(4),switch_is(*type)] */
1329                 uint32_t *needed;/* [ref] */
1330                 WERROR result;
1331         } out;
1332
1333 };
1334
1335
1336 struct _spoolss_SetPrinterData {
1337         struct {
1338                 struct policy_handle *handle;/* [ref] */
1339                 const char *value_name;/* [charset(UTF16)] */
1340                 enum spoolss_PrinterDataType type;
1341                 DATA_BLOB data;
1342                 uint32_t _offered;
1343         } in;
1344
1345         struct {
1346                 WERROR result;
1347         } out;
1348
1349 };
1350
1351
1352 struct __spoolss_SetPrinterData {
1353         struct {
1354                 enum spoolss_PrinterDataType type;
1355         } in;
1356
1357         struct {
1358                 union spoolss_PrinterData data;/* [switch_is(type)] */
1359         } out;
1360
1361 };
1362
1363
1364 struct spoolss_SetPrinterData {
1365         struct {
1366                 struct policy_handle *handle;/* [ref] */
1367                 const char *value_name;/* [charset(UTF16)] */
1368                 enum spoolss_PrinterDataType type;
1369                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
1370                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
1371         } in;
1372
1373         struct {
1374                 WERROR result;
1375         } out;
1376
1377 };
1378
1379
1380 struct spoolss_WaitForPrinterChange {
1381         struct {
1382                 WERROR result;
1383         } out;
1384
1385 };
1386
1387
1388 struct spoolss_ClosePrinter {
1389         struct {
1390                 struct policy_handle *handle;/* [ref] */
1391         } in;
1392
1393         struct {
1394                 struct policy_handle *handle;/* [ref] */
1395                 WERROR result;
1396         } out;
1397
1398 };
1399
1400
1401 struct spoolss_AddForm {
1402         struct {
1403                 struct policy_handle *handle;/* [ref] */
1404                 uint32_t level;
1405                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1406         } in;
1407
1408         struct {
1409                 WERROR result;
1410         } out;
1411
1412 };
1413
1414
1415 struct spoolss_DeleteForm {
1416         struct {
1417                 struct policy_handle *handle;/* [ref] */
1418                 const char *form_name;/* [charset(UTF16)] */
1419         } in;
1420
1421         struct {
1422                 WERROR result;
1423         } out;
1424
1425 };
1426
1427
1428 struct spoolss_GetForm {
1429         struct {
1430                 struct policy_handle *handle;/* [ref] */
1431                 const char *form_name;/* [charset(UTF16)] */
1432                 uint32_t level;
1433                 DATA_BLOB *buffer;/* [unique] */
1434                 uint32_t offered;
1435         } in;
1436
1437         struct {
1438                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1439                 uint32_t *needed;/* [ref] */
1440                 WERROR result;
1441         } out;
1442
1443 };
1444
1445
1446 struct spoolss_SetForm {
1447         struct {
1448                 struct policy_handle *handle;/* [ref] */
1449                 const char *form_name;/* [charset(UTF16)] */
1450                 uint32_t level;
1451                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
1452         } in;
1453
1454         struct {
1455                 WERROR result;
1456         } out;
1457
1458 };
1459
1460
1461 struct _spoolss_EnumForms {
1462         struct {
1463                 struct policy_handle *handle;/* [ref] */
1464                 uint32_t level;
1465                 DATA_BLOB *buffer;/* [unique] */
1466                 uint32_t offered;
1467         } in;
1468
1469         struct {
1470                 DATA_BLOB *info;/* [unique] */
1471                 uint32_t *needed;/* [ref] */
1472                 uint32_t count;
1473                 WERROR result;
1474         } out;
1475
1476 };
1477
1478
1479 struct __spoolss_EnumForms {
1480         struct {
1481                 uint32_t level;
1482                 uint32_t count;
1483         } in;
1484
1485         struct {
1486                 union spoolss_FormInfo *info;/* [switch_is(level)] */
1487         } out;
1488
1489 };
1490
1491
1492 struct spoolss_EnumForms {
1493         struct {
1494                 struct policy_handle *handle;/* [ref] */
1495                 uint32_t level;
1496                 DATA_BLOB *buffer;/* [unique] */
1497                 uint32_t offered;
1498         } in;
1499
1500         struct {
1501                 union spoolss_FormInfo *info;/* [unique,switch_is(level),size_is(count)] */
1502                 uint32_t *needed;/* [ref] */
1503                 uint32_t count;
1504                 WERROR result;
1505         } out;
1506
1507 };
1508
1509
1510 struct _spoolss_EnumPorts {
1511         struct {
1512                 const char *servername;/* [unique,charset(UTF16)] */
1513                 uint32_t level;
1514                 DATA_BLOB *buffer;/* [unique] */
1515                 uint32_t offered;
1516         } in;
1517
1518         struct {
1519                 DATA_BLOB *info;/* [unique] */
1520                 uint32_t *needed;/* [ref] */
1521                 uint32_t count;
1522                 WERROR result;
1523         } out;
1524
1525 };
1526
1527
1528 struct __spoolss_EnumPorts {
1529         struct {
1530                 uint32_t level;
1531                 uint32_t count;
1532         } in;
1533
1534         struct {
1535                 union spoolss_PortInfo *info;/* [switch_is(level)] */
1536         } out;
1537
1538 };
1539
1540
1541 struct spoolss_EnumPorts {
1542         struct {
1543                 const char *servername;/* [unique,charset(UTF16)] */
1544                 uint32_t level;
1545                 DATA_BLOB *buffer;/* [unique] */
1546                 uint32_t offered;
1547         } in;
1548
1549         struct {
1550                 union spoolss_PortInfo *info;/* [unique,switch_is(level),size_is(count)] */
1551                 uint32_t *needed;/* [ref] */
1552                 uint32_t count;
1553                 WERROR result;
1554         } out;
1555
1556 };
1557
1558
1559 struct _spoolss_EnumMonitors {
1560         struct {
1561                 const char *servername;/* [unique,charset(UTF16)] */
1562                 uint32_t level;
1563                 DATA_BLOB *buffer;/* [unique] */
1564                 uint32_t offered;
1565         } in;
1566
1567         struct {
1568                 DATA_BLOB *info;/* [unique] */
1569                 uint32_t *needed;/* [ref] */
1570                 uint32_t count;
1571                 WERROR result;
1572         } out;
1573
1574 };
1575
1576
1577 struct __spoolss_EnumMonitors {
1578         struct {
1579                 uint32_t level;
1580                 uint32_t count;
1581         } in;
1582
1583         struct {
1584                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
1585         } out;
1586
1587 };
1588
1589
1590 struct spoolss_EnumMonitors {
1591         struct {
1592                 const char *servername;/* [unique,charset(UTF16)] */
1593                 uint32_t level;
1594                 DATA_BLOB *buffer;/* [unique] */
1595                 uint32_t offered;
1596         } in;
1597
1598         struct {
1599                 union spoolss_MonitorInfo *info;/* [unique,switch_is(level),size_is(count)] */
1600                 uint32_t *needed;/* [ref] */
1601                 uint32_t count;
1602                 WERROR result;
1603         } out;
1604
1605 };
1606
1607
1608 struct spoolss_AddPort {
1609         struct {
1610                 const char *server_name;/* [unique,charset(UTF16)] */
1611                 uint32_t unknown;
1612                 const char *monitor_name;/* [charset(UTF16)] */
1613         } in;
1614
1615         struct {
1616                 WERROR result;
1617         } out;
1618
1619 };
1620
1621
1622 struct spoolss_ConfigurePort {
1623         struct {
1624                 WERROR result;
1625         } out;
1626
1627 };
1628
1629
1630 struct spoolss_DeletePort {
1631         struct {
1632                 WERROR result;
1633         } out;
1634
1635 };
1636
1637
1638 struct spoolss_CreatePrinterIC {
1639         struct {
1640                 WERROR result;
1641         } out;
1642
1643 };
1644
1645
1646 struct spoolss_PlayGDIScriptOnPrinterIC {
1647         struct {
1648                 WERROR result;
1649         } out;
1650
1651 };
1652
1653
1654 struct spoolss_DeletePrinterIC {
1655         struct {
1656                 WERROR result;
1657         } out;
1658
1659 };
1660
1661
1662 struct spoolss_AddPrinterConnection {
1663         struct {
1664                 WERROR result;
1665         } out;
1666
1667 };
1668
1669
1670 struct spoolss_DeletePrinterConnection {
1671         struct {
1672                 WERROR result;
1673         } out;
1674
1675 };
1676
1677
1678 struct spoolss_PrinterMessageBox {
1679         struct {
1680                 WERROR result;
1681         } out;
1682
1683 };
1684
1685
1686 struct spoolss_AddMonitor {
1687         struct {
1688                 WERROR result;
1689         } out;
1690
1691 };
1692
1693
1694 struct spoolss_DeleteMonitor {
1695         struct {
1696                 WERROR result;
1697         } out;
1698
1699 };
1700
1701
1702 struct spoolss_DeletePrintProcessor {
1703         struct {
1704                 WERROR result;
1705         } out;
1706
1707 };
1708
1709
1710 struct spoolss_AddPrintProvidor {
1711         struct {
1712                 WERROR result;
1713         } out;
1714
1715 };
1716
1717
1718 struct spoolss_DeletePrintProvidor {
1719         struct {
1720                 WERROR result;
1721         } out;
1722
1723 };
1724
1725
1726 struct spoolss_EnumPrintProcDataTypes {
1727         struct {
1728                 WERROR result;
1729         } out;
1730
1731 };
1732
1733
1734 struct spoolss_ResetPrinter {
1735         struct {
1736                 WERROR result;
1737         } out;
1738
1739 };
1740
1741
1742 struct spoolss_GetPrinterDriver2 {
1743         struct {
1744                 struct policy_handle *handle;/* [ref] */
1745                 const char *architecture;/* [unique,charset(UTF16)] */
1746                 uint32_t level;
1747                 DATA_BLOB *buffer;/* [unique] */
1748                 uint32_t offered;
1749                 uint32_t client_major_version;
1750                 uint32_t client_minor_version;
1751         } in;
1752
1753         struct {
1754                 DATA_BLOB *info;/* [unique] */
1755                 uint32_t *needed;/* [ref] */
1756                 uint32_t *server_major_version;/* [ref] */
1757                 uint32_t *server_minor_version;/* [ref] */
1758                 WERROR result;
1759         } out;
1760
1761 };
1762
1763
1764 struct spoolss_FindFirstPrinterChangeNotification {
1765         struct {
1766                 WERROR result;
1767         } out;
1768
1769 };
1770
1771
1772 struct spoolss_FindNextPrinterChangeNotification {
1773         struct {
1774                 WERROR result;
1775         } out;
1776
1777 };
1778
1779
1780 struct spoolss_FindClosePrinterNotify {
1781         struct {
1782                 struct policy_handle *handle;/* [ref] */
1783         } in;
1784
1785         struct {
1786                 WERROR result;
1787         } out;
1788
1789 };
1790
1791
1792 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
1793         struct {
1794                 WERROR result;
1795         } out;
1796
1797 };
1798
1799
1800 struct spoolss_ReplyOpenPrinter {
1801         struct {
1802                 const char *server_name;/* [charset(UTF16)] */
1803                 uint32_t printer_local;
1804                 enum winreg_Type type;
1805                 uint32_t bufsize;/* [range(0,512)] */
1806                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
1807         } in;
1808
1809         struct {
1810                 struct policy_handle *handle;/* [ref] */
1811                 WERROR result;
1812         } out;
1813
1814 };
1815
1816
1817 struct spoolss_RouterReplyPrinter {
1818         struct {
1819                 struct policy_handle *handle;/* [ref] */
1820                 uint32_t flags;
1821                 uint32_t bufsize;/* [range(0,512)] */
1822                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
1823         } in;
1824
1825         struct {
1826                 WERROR result;
1827         } out;
1828
1829 };
1830
1831
1832 struct spoolss_ReplyClosePrinter {
1833         struct {
1834                 struct policy_handle *handle;/* [ref] */
1835         } in;
1836
1837         struct {
1838                 struct policy_handle *handle;/* [ref] */
1839                 WERROR result;
1840         } out;
1841
1842 };
1843
1844
1845 struct spoolss_AddPortEx {
1846         struct {
1847                 WERROR result;
1848         } out;
1849
1850 };
1851
1852
1853 struct spoolss_RouterFindFirstPrinterChangeNotification {
1854         struct {
1855                 WERROR result;
1856         } out;
1857
1858 };
1859
1860
1861 struct spoolss_SpoolerInit {
1862         struct {
1863                 WERROR result;
1864         } out;
1865
1866 };
1867
1868
1869 struct spoolss_ResetPrinterEx {
1870         struct {
1871                 WERROR result;
1872         } out;
1873
1874 };
1875
1876
1877 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
1878         struct {
1879                 struct policy_handle *handle;/* [ref] */
1880                 uint32_t flags;
1881                 uint32_t options;
1882                 const char *str;/* [unique,charset(UTF16)] */
1883                 uint32_t printer_local;
1884                 struct spoolss_NotifyOptionsContainer *t1;/* [unique] */
1885         } in;
1886
1887         struct {
1888                 WERROR result;
1889         } out;
1890
1891 };
1892
1893
1894 struct spoolss_RouterRefreshPrinterChangeNotification {
1895         struct {
1896                 WERROR result;
1897         } out;
1898
1899 };
1900
1901
1902 struct spoolss_RemoteFindNextPrinterChangeNotifyEx {
1903         struct {
1904                 struct policy_handle *handle;/* [ref] */
1905                 uint32_t change_low;
1906                 struct spoolss_NotifyOptionsContainer *container;/* [unique] */
1907         } in;
1908
1909         struct {
1910                 struct spoolss_NotifyInfo **info;/* [ref] */
1911                 WERROR result;
1912         } out;
1913
1914 };
1915
1916
1917 struct spoolss_44 {
1918         struct {
1919                 WERROR result;
1920         } out;
1921
1922 };
1923
1924
1925 struct spoolss_OpenPrinterEx {
1926         struct {
1927                 const char *printername;/* [unique,charset(UTF16)] */
1928                 const char *datatype;/* [unique,charset(UTF16)] */
1929                 struct spoolss_DevmodeContainer devmode_ctr;
1930                 uint32_t access_mask;
1931                 uint32_t level;
1932                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
1933         } in;
1934
1935         struct {
1936                 struct policy_handle *handle;/* [ref] */
1937                 WERROR result;
1938         } out;
1939
1940 };
1941
1942
1943 struct spoolss_AddPrinterEx {
1944         struct {
1945                 const char *server;/* [unique,charset(UTF16)] */
1946                 uint32_t level;
1947                 union spoolss_PrinterInfo *info;/* [unique,switch_is(level)] */
1948                 struct spoolss_DevmodeContainer devmode_ctr;
1949                 struct security_descriptor *secdesc;/* [unique] */
1950                 uint32_t ulevel;
1951                 union spoolss_UserLevel userlevel;/* [switch_is(ulevel)] */
1952         } in;
1953
1954         struct {
1955                 WERROR result;
1956         } out;
1957
1958 };
1959
1960
1961 struct spoolss_47 {
1962         struct {
1963                 WERROR result;
1964         } out;
1965
1966 };
1967
1968
1969 struct spoolss_EnumPrinterData {
1970         struct {
1971                 struct policy_handle *handle;/* [ref] */
1972                 uint32_t enum_index;
1973                 uint32_t value_offered;
1974                 uint32_t data_offered;
1975         } in;
1976
1977         struct {
1978                 const char *value_name;/* [charset(UTF16),size_is(value_offered/2)] */
1979                 uint32_t *value_needed;/* [ref] */
1980                 uint32_t *printerdata_type;/* [ref] */
1981                 DATA_BLOB *buffer;/* [ref] */
1982                 uint32_t *data_needed;/* [ref] */
1983                 WERROR result;
1984         } out;
1985
1986 };
1987
1988
1989 struct spoolss_DeletePrinterData {
1990         struct {
1991                 struct policy_handle *handle;/* [ref] */
1992                 const char *value_name;/* [charset(UTF16)] */
1993         } in;
1994
1995         struct {
1996                 WERROR result;
1997         } out;
1998
1999 };
2000
2001
2002 struct spoolss_4a {
2003         struct {
2004                 WERROR result;
2005         } out;
2006
2007 };
2008
2009
2010 struct spoolss_4b {
2011         struct {
2012                 WERROR result;
2013         } out;
2014
2015 };
2016
2017
2018 struct spoolss_4c {
2019         struct {
2020                 WERROR result;
2021         } out;
2022
2023 };
2024
2025
2026 struct spoolss_SetPrinterDataEx {
2027         struct {
2028                 struct policy_handle *handle;/* [ref] */
2029                 const char *key_name;/* [charset(UTF16)] */
2030                 const char *value_name;/* [charset(UTF16)] */
2031                 uint32_t type;
2032                 DATA_BLOB buffer;
2033                 uint32_t offered;
2034         } in;
2035
2036         struct {
2037                 WERROR result;
2038         } out;
2039
2040 };
2041
2042
2043 struct spoolss_GetPrinterDataEx {
2044         struct {
2045                 struct policy_handle *handle;/* [ref] */
2046                 const char *key_name;/* [charset(UTF16)] */
2047                 const char *value_name;/* [charset(UTF16)] */
2048                 uint32_t offered;
2049         } in;
2050
2051         struct {
2052                 uint32_t *type;/* [ref] */
2053                 uint8_t *buffer;/* [ref,size_is(offered)] */
2054                 uint32_t *needed;/* [ref] */
2055                 WERROR result;
2056         } out;
2057
2058 };
2059
2060
2061 struct spoolss_EnumPrinterDataEx {
2062         struct {
2063                 struct policy_handle *handle;/* [ref] */
2064                 const char *key_name;/* [charset(UTF16)] */
2065                 uint32_t offered;
2066         } in;
2067
2068         struct {
2069                 uint8_t *buffer;/* [ref,size_is(offered)] */
2070                 uint32_t *needed;/* [ref] */
2071                 uint32_t *count;/* [ref] */
2072                 WERROR result;
2073         } out;
2074
2075 };
2076
2077
2078 struct spoolss_EnumPrinterKey {
2079         struct {
2080                 struct policy_handle *handle;/* [ref] */
2081                 const char *key_name;/* [charset(UTF16)] */
2082                 uint32_t key_buffer_size;
2083         } in;
2084
2085         struct {
2086                 uint16_t *key_buffer;/* [ref,size_is(key_buffer_size/2)] */
2087                 uint32_t *needed;/* [ref] */
2088                 WERROR result;
2089         } out;
2090
2091 };
2092
2093
2094 struct spoolss_DeletePrinterDataEx {
2095         struct {
2096                 struct policy_handle *handle;/* [ref] */
2097                 const char *key_name;/* [charset(UTF16)] */
2098                 const char *value_name;/* [charset(UTF16)] */
2099         } in;
2100
2101         struct {
2102                 WERROR result;
2103         } out;
2104
2105 };
2106
2107
2108 struct spoolss_DeletePrinterKey {
2109         struct {
2110                 struct policy_handle *handle;/* [ref] */
2111                 const char *key_name;/* [charset(UTF16)] */
2112         } in;
2113
2114         struct {
2115                 WERROR result;
2116         } out;
2117
2118 };
2119
2120
2121 struct spoolss_53 {
2122         struct {
2123                 WERROR result;
2124         } out;
2125
2126 };
2127
2128
2129 struct spoolss_DeletePrinterDriverEx {
2130         struct {
2131                 const char *server;/* [unique,charset(UTF16)] */
2132                 const char *architecture;/* [charset(UTF16)] */
2133                 const char *driver;/* [charset(UTF16)] */
2134                 uint32_t delete_flags;
2135                 uint32_t version;
2136         } in;
2137
2138         struct {
2139                 WERROR result;
2140         } out;
2141
2142 };
2143
2144
2145 struct spoolss_55 {
2146         struct {
2147                 WERROR result;
2148         } out;
2149
2150 };
2151
2152
2153 struct spoolss_56 {
2154         struct {
2155                 WERROR result;
2156         } out;
2157
2158 };
2159
2160
2161 struct spoolss_57 {
2162         struct {
2163                 WERROR result;
2164         } out;
2165
2166 };
2167
2168
2169 struct spoolss_XcvData {
2170         struct {
2171                 struct policy_handle *handle;/* [ref] */
2172                 const char *function_name;/* [charset(UTF16)] */
2173                 DATA_BLOB in_data;
2174                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
2175                 uint32_t out_data_size;
2176                 uint32_t *status_code;/* [ref] */
2177         } in;
2178
2179         struct {
2180                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
2181                 uint32_t *needed;/* [ref] */
2182                 uint32_t *status_code;/* [ref] */
2183                 WERROR result;
2184         } out;
2185
2186 };
2187
2188
2189 struct spoolss_AddPrinterDriverEx {
2190         struct {
2191                 WERROR result;
2192         } out;
2193
2194 };
2195
2196
2197 struct spoolss_5a {
2198         struct {
2199                 WERROR result;
2200         } out;
2201
2202 };
2203
2204
2205 struct spoolss_5b {
2206         struct {
2207                 WERROR result;
2208         } out;
2209
2210 };
2211
2212
2213 struct spoolss_5c {
2214         struct {
2215                 WERROR result;
2216         } out;
2217
2218 };
2219
2220
2221 struct spoolss_5d {
2222         struct {
2223                 WERROR result;
2224         } out;
2225
2226 };
2227
2228
2229 struct spoolss_5e {
2230         struct {
2231                 WERROR result;
2232         } out;
2233
2234 };
2235
2236
2237 struct spoolss_5f {
2238         struct {
2239                 WERROR result;
2240         } out;
2241
2242 };
2243
2244 #endif /* _HEADER_spoolss */