77d7c52850caf0782fbef33741d9aca9b5dcc6a5
[ira/wip.git] / librpc / gen_ndr / spoolss.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "libcli/util/ntstatus.h"
6
7 #include "librpc/gen_ndr/misc.h"
8 #include "librpc/gen_ndr/security.h"
9 #include "librpc/gen_ndr/winreg.h"
10 #ifndef _HEADER_spoolss
11 #define _HEADER_spoolss
12
13 #define PRINTER_STATUS_OK       ( 0x00000000 )
14 #define JOB_STATUS_QUEUED       ( 0x0000 )
15 #define MAXDEVICENAME   ( 32 )
16 #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) )
17 #define SPL_ARCH_WIN40  ( "WIN40" )
18 #define SPL_ARCH_W32X86 ( "W32X86" )
19 #define SPL_ARCH_W32MIPS        ( "W32MIPS" )
20 #define SPL_ARCH_W32ALPHA       ( "W32ALPHA" )
21 #define SPL_ARCH_W32PPC ( "W32PPC" )
22 #define SPL_ARCH_IA64   ( "IA64" )
23 #define SPL_ARCH_X64    ( "x64" )
24 #define SPOOLSS_ARCHITECTURE_ALL        ( "All" )
25 #define SPOOLSS_ARCHITECTURE_ALL_CLUSTER        ( "AllCluster" )
26 #define SPOOLSS_ARCHITECTURE_NT_X86     ( "Windows NT x86" )
27 #define SPOOLSS_ARCHITECTURE_IA_64      ( "Windows IA64" )
28 #define SPOOLSS_ARCHITECTURE_x64        ( "Windows x64" )
29 #define SPOOLSS_ARCHITECTURE_4_0        ( "Windows 4.0" )
30 #define SPOOLSS_DEFAULT_SERVER_PATH     ( "C:\\WINDOWS\\system32\\spool" )
31 #define SPOOL_PRINTERDATA_KEY   ( "PrinterDriverData" )
32 #define SPOOL_DSSPOOLER_KEY     ( "DsSpooler" )
33 #define SPOOL_DSDRIVER_KEY      ( "DsDriver" )
34 #define SPOOL_DSUSER_KEY        ( "DsUser" )
35 #define SPOOL_PNPDATA_KEY       ( "PnPData" )
36 #define SPOOL_OID_KEY   ( "OID" )
37 #define SPOOL_REG_ASSETNUMBER   ( "assetNumber" )
38 #define SPOOL_REG_BYTESPERMINUTE        ( "bytesPerMinute" )
39 #define SPOOL_REG_DEFAULTPRIORITY       ( "defaultPriority" )
40 #define SPOOL_REG_DESCRIPTION   ( "description" )
41 #define SPOOL_REG_DRIVERNAME    ( "driverName" )
42 #define SPOOL_REG_DRIVERVERSION ( "driverVersion" )
43 #define SPOOL_REG_FLAGS ( "flags" )
44 #define SPOOL_REG_LOCATION      ( "location" )
45 #define SPOOL_REG_OPERATINGSYSTEM       ( "operatingSystem" )
46 #define SPOOL_REG_OPERATINGSYSTEMHOTFIX ( "operatingSystemHotfix" )
47 #define SPOOL_REG_OPERATINGSYSTEMSERVICEPACK    ( "operatingSystemServicePack" )
48 #define SPOOL_REG_OPERATINGSYSTEMVERSION        ( "operatingSystemVersion" )
49 #define SPOOL_REG_PORTNAME      ( "portName" )
50 #define SPOOL_REG_PRINTATTRIBUTES       ( "printAttributes" )
51 #define SPOOL_REG_PRINTBINNAMES ( "printBinNames" )
52 #define SPOOL_REG_PRINTCOLLATE  ( "printCollate" )
53 #define SPOOL_REG_PRINTCOLOR    ( "printColor" )
54 #define SPOOL_REG_PRINTDUPLEXSUPPORTED  ( "printDuplexSupported" )
55 #define SPOOL_REG_PRINTENDTIME  ( "printEndTime" )
56 #define SPOOL_REG_PRINTERNAME   ( "printerName" )
57 #define SPOOL_REG_PRINTFORMNAME ( "printFormName" )
58 #define SPOOL_REG_PRINTKEEPPRINTEDJOBS  ( "printKeepPrintedJobs" )
59 #define SPOOL_REG_PRINTLANGUAGE ( "printLanguage" )
60 #define SPOOL_REG_PRINTMACADDRESS       ( "printMACAddress" )
61 #define SPOOL_REG_PRINTMAXCOPIES        ( "printMaxCopies" )
62 #define SPOOL_REG_PRINTMAXRESOLUTIONSUPPORTED   ( "printMaxResolutionSupported" )
63 #define SPOOL_REG_PRINTMAXXEXTENT       ( "printMaxXExtent" )
64 #define SPOOL_REG_PRINTMAXYEXTENT       ( "printMaxYExtent" )
65 #define SPOOL_REG_PRINTMEDIAREADY       ( "printMediaReady" )
66 #define SPOOL_REG_PRINTMEDIASUPPORTED   ( "printMediaSupported" )
67 #define SPOOL_REG_PRINTMEMORY   ( "printMemory" )
68 #define SPOOL_REG_PRINTMINXEXTENT       ( "printMinXExtent" )
69 #define SPOOL_REG_PRINTMINYEXTENT       ( "printMinYExtent" )
70 #define SPOOL_REG_PRINTNETWORKADDRESS   ( "printNetworkAddress" )
71 #define SPOOL_REG_PRINTNOTIFY   ( "printNotify" )
72 #define SPOOL_REG_PRINTNUMBERUP ( "printNumberUp" )
73 #define SPOOL_REG_PRINTORIENTATIONSSUPPORTED    ( "printOrientationsSupported" )
74 #define SPOOL_REG_PRINTOWNER    ( "printOwner" )
75 #define SPOOL_REG_PRINTPAGESPERMINUTE   ( "printPagesPerMinute" )
76 #define SPOOL_REG_PRINTRATE     ( "printRate" )
77 #define SPOOL_REG_PRINTRATEUNIT ( "printRateUnit" )
78 #define SPOOL_REG_PRINTSEPARATORFILE    ( "printSeparatorFile" )
79 #define SPOOL_REG_PRINTSHARENAME        ( "printShareName" )
80 #define SPOOL_REG_PRINTSPOOLING ( "printSpooling" )
81 #define SPOOL_REGVAL_PRINTWHILESPOOLING ( "PrintWhileSpooling" )
82 #define SPOOL_REGVAL_PRINTAFTERSPOOLED  ( "PrintAfterSpooled" )
83 #define SPOOL_REGVAL_PRINTDIRECT        ( "PrintDirect" )
84 #define SPOOL_REG_PRINTSTAPLINGSUPPORTED        ( "printStaplingSupported" )
85 #define SPOOL_REG_PRINTSTARTTIME        ( "printStartTime" )
86 #define SPOOL_REG_PRINTSTATUS   ( "printStatus" )
87 #define SPOOL_REG_PRIORITY      ( "priority" )
88 #define SPOOL_REG_SERVERNAME    ( "serverName" )
89 #define SPOOL_REG_SHORTSERVERNAME       ( "shortServerName" )
90 #define SPOOL_REG_UNCNAME       ( "uNCName" )
91 #define SPOOL_REG_URL   ( "url" )
92 #define SPOOL_REG_VERSIONNUMBER ( "versionNumber" )
93 #define SPL_LOCAL_PORT  ( "Local Port" )
94 #define SPL_TCPIP_PORT  ( "Standard TCP/IP Port" )
95 #define SPL_XCV_MONITOR_LOCALMON        ( ",XcvMonitor Local Port" )
96 #define SPL_XCV_MONITOR_TCPMON  ( ",XcvMonitor Standard TCP/IP Port" )
97 #define PRINTER_CHANGE_PRINTER  ( 0x000000FF )
98 #define PRINTER_CHANGE_JOB      ( 0x0000FF00 )
99 #define PRINTER_CHANGE_FORM     ( (PRINTER_CHANGE_ADD_FORM|PRINTER_CHANGE_SET_FORM|PRINTER_CHANGE_DELETE_FORM) )
100 #define PRINTER_CHANGE_PORT     ( (PRINTER_CHANGE_ADD_PORT|PRINTER_CHANGE_CONFIGURE_PORT|PRINTER_CHANGE_DELETE_PORT) )
101 #define PRINTER_CHANGE_PRINT_PROCESSOR  ( 0x07000000 )
102 #define PRINTER_CHANGE_PRINTER_DRIVER   ( (PRINTER_CHANGE_ADD_PRINTER_DRIVER|PRINTER_CHANGE_SET_PRINTER_DRIVER|PRINTER_CHANGE_DELETE_PRINTER_DRIVER) )
103 #define PRINTER_CHANGE_ALL      ( (PRINTER_CHANGE_PRINTER|PRINTER_CHANGE_JOB|PRINTER_CHANGE_FORM|PRINTER_CHANGE_PORT|PRINTER_CHANGE_PRINT_PROCESSOR|PRINTER_CHANGE_PRINTER_DRIVER) )
104 #define SERVER_ALL_ACCESS       ( SEC_STD_REQUIRED|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
105 #define SERVER_READ     ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
106 #define SERVER_WRITE    ( STANDARD_RIGHTS_WRITE_ACCESS|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
107 #define SERVER_EXECUTE  ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
108 #define PRINTER_ALL_ACCESS      ( SEC_STD_REQUIRED|PRINTER_ACCESS_ADMINISTER|PRINTER_ACCESS_USE )
109 #define PRINTER_READ    ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
110 #define PRINTER_WRITE   ( STANDARD_RIGHTS_WRITE_ACCESS|PRINTER_ACCESS_USE )
111 #define PRINTER_EXECUTE ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
112 #define JOB_ALL_ACCESS  ( SEC_STD_REQUIRED|JOB_ACCESS_ADMINISTER )
113 #define JOB_READ        ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
114 #define JOB_WRITE       ( STANDARD_RIGHTS_WRITE_ACCESS|JOB_ACCESS_ADMINISTER )
115 #define JOB_EXECUTE     ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
116 #define PRINTER_ACE_FULL_CONTROL        ( SEC_GENERIC_ALL|PRINTER_ALL_ACCESS )
117 #define PRINTER_ACE_MANAGE_DOCUMENTS    ( SEC_GENERIC_ALL|READ_CONTROL_ACCESS )
118 #define PRINTER_ACE_PRINT       ( GENERIC_EXECUTE_ACCESS|READ_CONTROL_ACCESS|PRINTER_ACCESS_USE )
119 struct spoolss_Time {
120         uint16_t year;
121         uint16_t month;
122         uint16_t day_of_week;
123         uint16_t day;
124         uint16_t hour;
125         uint16_t minute;
126         uint16_t second;
127         uint16_t millisecond;
128 }/* [gensize] */;
129
130 struct spoolss_TimeCtr {
131         uint32_t size;/* [value(ndr_size_spoolss_Time(time,ndr->iconv_convenience,ndr->flags))] */
132         struct spoolss_Time *time;/* [unique] */
133 };
134
135 enum spoolss_ProcessorArchitecture
136 #ifndef USE_UINT_ENUMS
137  {
138         PROCESSOR_ARCHITECTURE_INTEL=(int)(0x0000),
139         PROCESSOR_ARCHITECTURE_IA64=(int)(0x0006),
140         PROCESSOR_ARCHITECTURE_AMD64=(int)(0x0009)
141 }
142 #else
143  { __donnot_use_enum_spoolss_ProcessorArchitecture=0x7FFFFFFF}
144 #define PROCESSOR_ARCHITECTURE_INTEL ( 0x0000 )
145 #define PROCESSOR_ARCHITECTURE_IA64 ( 0x0006 )
146 #define PROCESSOR_ARCHITECTURE_AMD64 ( 0x0009 )
147 #endif
148 ;
149
150 enum spoolss_ProcessorType
151 #ifndef USE_UINT_ENUMS
152  {
153         PROCESSOR_INTEL_386=(int)(0x00000182),
154         PROCESSOR_INTEL_486=(int)(0x000001E6),
155         PROCESSOR_INTEL_PENTIUM=(int)(0x0000024A),
156         PROCESSOR_INTEL_IA64=(int)(0x00000898),
157         PROCESSOR_AMD_X8664=(int)(0x000022A0)
158 }
159 #else
160  { __donnot_use_enum_spoolss_ProcessorType=0x7FFFFFFF}
161 #define PROCESSOR_INTEL_386 ( 0x00000182 )
162 #define PROCESSOR_INTEL_486 ( 0x000001E6 )
163 #define PROCESSOR_INTEL_PENTIUM ( 0x0000024A )
164 #define PROCESSOR_INTEL_IA64 ( 0x00000898 )
165 #define PROCESSOR_AMD_X8664 ( 0x000022A0 )
166 #endif
167 ;
168
169 enum spoolss_MajorVersion
170 #ifndef USE_UINT_ENUMS
171  {
172         SPOOLSS_MAJOR_VERSION_NT4_95_98_ME=(int)(0x00000004),
173         SPOOLSS_MAJOR_VERSION_2000_2003_XP=(int)(0x00000005),
174         SPOOLSS_MAJOR_VERSION_2008_VISTA=(int)(0x00000006)
175 }
176 #else
177  { __donnot_use_enum_spoolss_MajorVersion=0x7FFFFFFF}
178 #define SPOOLSS_MAJOR_VERSION_NT4_95_98_ME ( 0x00000004 )
179 #define SPOOLSS_MAJOR_VERSION_2000_2003_XP ( 0x00000005 )
180 #define SPOOLSS_MAJOR_VERSION_2008_VISTA ( 0x00000006 )
181 #endif
182 ;
183
184 enum spoolss_MinorVersion
185 #ifndef USE_UINT_ENUMS
186  {
187         SPOOLSS_MINOR_VERSION_0=(int)(0x00000000),
188         SPOOLSS_MINOR_VERSION_XP=(int)(0x00000001),
189         SPOOLSS_MINOR_VERSION_2003_XP64=(int)(0x00000002),
190         SPOOLSS_MINOR_VERSION_98=(int)(0x0000000a),
191         SPOOLSS_MINOR_VERSION_ME=(int)(0x0000005a)
192 }
193 #else
194  { __donnot_use_enum_spoolss_MinorVersion=0x7FFFFFFF}
195 #define SPOOLSS_MINOR_VERSION_0 ( 0x00000000 )
196 #define SPOOLSS_MINOR_VERSION_XP ( 0x00000001 )
197 #define SPOOLSS_MINOR_VERSION_2003_XP64 ( 0x00000002 )
198 #define SPOOLSS_MINOR_VERSION_98 ( 0x0000000a )
199 #define SPOOLSS_MINOR_VERSION_ME ( 0x0000005a )
200 #endif
201 ;
202
203 /* bitmap spoolss_PrinterStatus */
204 #define PRINTER_STATUS_PAUSED ( 0x00000001 )
205 #define PRINTER_STATUS_ERROR ( 0x00000002 )
206 #define PRINTER_STATUS_PENDING_DELETION ( 0x00000004 )
207 #define PRINTER_STATUS_PAPER_JAM ( 0x00000008 )
208 #define PRINTER_STATUS_PAPER_OUT ( 0x00000010 )
209 #define PRINTER_STATUS_MANUAL_FEED ( 0x00000020 )
210 #define PRINTER_STATUS_PAPER_PROBLEM ( 0x00000040 )
211 #define PRINTER_STATUS_OFFLINE ( 0x00000080 )
212 #define PRINTER_STATUS_IO_ACTIVE ( 0x00000100 )
213 #define PRINTER_STATUS_BUSY ( 0x00000200 )
214 #define PRINTER_STATUS_PRINTING ( 0x00000400 )
215 #define PRINTER_STATUS_OUTPUT_BIN_FULL ( 0x00000800 )
216 #define PRINTER_STATUS_NOT_AVAILABLE ( 0x00001000 )
217 #define PRINTER_STATUS_WAITING ( 0x00002000 )
218 #define PRINTER_STATUS_PROCESSING ( 0x00004000 )
219 #define PRINTER_STATUS_INITIALIZING ( 0x00008000 )
220 #define PRINTER_STATUS_WARMING_UP ( 0x00010000 )
221 #define PRINTER_STATUS_TONER_LOW ( 0x00020000 )
222 #define PRINTER_STATUS_NO_TONER ( 0x00040000 )
223 #define PRINTER_STATUS_PAGE_PUNT ( 0x00080000 )
224 #define PRINTER_STATUS_USER_INTERVENTION ( 0x00100000 )
225 #define PRINTER_STATUS_OUT_OF_MEMORY ( 0x00200000 )
226 #define PRINTER_STATUS_DOOR_OPEN ( 0x00400000 )
227 #define PRINTER_STATUS_SERVER_UNKNOWN ( 0x00800000 )
228 #define PRINTER_STATUS_POWER_SAVE ( 0x01000000 )
229
230 /* bitmap spoolss_JobStatus */
231 #define JOB_STATUS_PAUSED ( 0x00000001 )
232 #define JOB_STATUS_ERROR ( 0x00000002 )
233 #define JOB_STATUS_DELETING ( 0x00000004 )
234 #define JOB_STATUS_SPOOLING ( 0x00000008 )
235 #define JOB_STATUS_PRINTING ( 0x00000010 )
236 #define JOB_STATUS_OFFLINE ( 0x00000020 )
237 #define JOB_STATUS_PAPEROUT ( 0x00000040 )
238 #define JOB_STATUS_PRINTED ( 0x00000080 )
239 #define JOB_STATUS_DELETED ( 0x00000100 )
240 #define JOB_STATUS_BLOCKED_DEVQ ( 0x00000200 )
241 #define JOB_STATUS_USER_INTERVENTION ( 0x00000400 )
242 #define JOB_STATUS_RESTART ( 0x00000800 )
243 #define JOB_STATUS_COMPLETE ( 0x00001000 )
244
245 struct spoolss_PrinterInfo0 {
246         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
247         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
248         uint32_t cjobs;
249         uint32_t total_jobs;
250         uint32_t total_bytes;
251         struct spoolss_Time time;
252         uint32_t global_counter;
253         uint32_t total_pages;
254         uint32_t version;
255         uint32_t free_build;
256         uint32_t spooling;
257         uint32_t max_spooling;
258         uint32_t session_counter;
259         uint32_t num_error_out_of_paper;
260         uint32_t num_error_not_ready;
261         uint32_t job_error;
262         uint32_t number_of_processors;
263         enum spoolss_ProcessorType processor_type;
264         uint32_t high_part_total_bytes;
265         uint32_t change_id;
266         WERROR last_error;
267         uint32_t status;
268         uint32_t enumerate_network_printers;
269         uint32_t c_setprinter;
270         enum spoolss_ProcessorArchitecture processor_architecture;
271         uint16_t processor_level;
272         uint32_t ref_ic;
273         uint32_t reserved2;
274         uint32_t reserved3;
275 }/* [gensize,public] */;
276
277 /* bitmap spoolss_DeviceModeFields */
278 #define DEVMODE_ORIENTATION ( 0x00000001 )
279 #define DEVMODE_PAPERSIZE ( 0x00000002 )
280 #define DEVMODE_PAPERLENGTH ( 0x00000004 )
281 #define DEVMODE_PAPERWIDTH ( 0x00000008 )
282 #define DEVMODE_SCALE ( 0x00000010 )
283 #define DEVMODE_POSITION ( 0x00000020 )
284 #define DEVMODE_NUP ( 0x00000040 )
285 #define DEVMODE_COPIES ( 0x00000100 )
286 #define DEVMODE_DEFAULTSOURCE ( 0x00000200 )
287 #define DEVMODE_PRINTQUALITY ( 0x00000400 )
288 #define DEVMODE_COLOR ( 0x00000800 )
289 #define DEVMODE_DUPLEX ( 0x00001000 )
290 #define DEVMODE_YRESOLUTION ( 0x00002000 )
291 #define DEVMODE_TTOPTION ( 0x00004000 )
292 #define DEVMODE_COLLATE ( 0x00008000 )
293 #define DEVMODE_FORMNAME ( 0x00010000 )
294 #define DEVMODE_LOGPIXELS ( 0x00020000 )
295 #define DEVMODE_BITSPERPEL ( 0x00040000 )
296 #define DEVMODE_PELSWIDTH ( 0x00080000 )
297 #define DEVMODE_PELSHEIGHT ( 0x00100000 )
298 #define DEVMODE_DISPLAYFLAGS ( 0x00200000 )
299 #define DEVMODE_DISPLAYFREQUENCY ( 0x00400000 )
300 #define DEVMODE_ICMMETHOD ( 0x00800000 )
301 #define DEVMODE_ICMINTENT ( 0x01000000 )
302 #define DEVMODE_MEDIATYPE ( 0x02000000 )
303 #define DEVMODE_DITHERTYPE ( 0x04000000 )
304 #define DEVMODE_PANNINGWIDTH ( 0x08000000 )
305 #define DEVMODE_PANNINGHEIGHT ( 0x10000000 )
306
307 enum spoolss_DeviceModeSpecVersion
308 #ifndef USE_UINT_ENUMS
309  {
310         DMSPEC_NT3=(int)(0x320),
311         DMSPEC_WIN95_98_ME=(int)(0x400),
312         DMSPEC_NT4_AND_ABOVE=(int)(0x401)
313 }
314 #else
315  { __donnot_use_enum_spoolss_DeviceModeSpecVersion=0x7FFFFFFF}
316 #define DMSPEC_NT3 ( 0x320 )
317 #define DMSPEC_WIN95_98_ME ( 0x400 )
318 #define DMSPEC_NT4_AND_ABOVE ( 0x401 )
319 #endif
320 ;
321
322 enum spoolss_DeviceModeOrientation
323 #ifndef USE_UINT_ENUMS
324  {
325         DMORIENT_PORTRAIT=(int)(0x0001),
326         DMORIENT_LANDSCAPE=(int)(0x0002)
327 }
328 #else
329  { __donnot_use_enum_spoolss_DeviceModeOrientation=0x7FFFFFFF}
330 #define DMORIENT_PORTRAIT ( 0x0001 )
331 #define DMORIENT_LANDSCAPE ( 0x0002 )
332 #endif
333 ;
334
335 enum spoolss_DeviceModePaperSize
336 #ifndef USE_UINT_ENUMS
337  {
338         DMPAPER_LETTER=(int)(0x0001),
339         DMPAPER_LETTERSMALL=(int)(0x0002),
340         DMPAPER_TABLOID=(int)(0x0003),
341         DMPAPER_LEDGER=(int)(0x0004),
342         DMPAPER_LEGAL=(int)(0x0005),
343         DMPAPER_STATEMENT=(int)(0x0006),
344         DMPAPER_EXECUTIVE=(int)(0x0007),
345         DMPAPER_A3=(int)(0x0008),
346         DMPAPER_A4=(int)(0x0009),
347         DMPAPER_A4SMALL=(int)(0x000A),
348         DMPAPER_A5=(int)(0x000B),
349         DMPAPER_B4=(int)(0x000C),
350         DMPAPER_B5=(int)(0x000D),
351         DMPAPER_FOLIO=(int)(0x000E),
352         DMPAPER_QUARTO=(int)(0x000F),
353         DMPAPER_10X14=(int)(0x0010),
354         DMPAPER_11X17=(int)(0x0011),
355         DMPAPER_NOTE=(int)(0x0012),
356         DMPAPER_ENV_9=(int)(0x0013),
357         DMPAPER_ENV_10=(int)(0x0014),
358         DMPAPER_ENV_11=(int)(0x0015),
359         DMPAPER_ENV_12=(int)(0x0016),
360         DMPAPER_ENV_14=(int)(0x0017),
361         DMPAPER_CSHEET=(int)(0x0018),
362         DMPAPER_DSHEET=(int)(0x0019),
363         DMPAPER_ESHEET=(int)(0x001A),
364         DMPAPER_ENV_DL=(int)(0x001B),
365         DMPAPER_ENV_C5=(int)(0x001C),
366         DMPAPER_ENV_C3=(int)(0x001D),
367         DMPAPER_ENV_C4=(int)(0x001E),
368         DMPAPER_ENV_C6=(int)(0x001F),
369         DMPAPER_ENV_C65=(int)(0x0020),
370         DMPAPER_ENV_B4=(int)(0x0021),
371         DMPAPER_ENV_B5=(int)(0x0022),
372         DMPAPER_ENV_B6=(int)(0x0023),
373         DMPAPER_ENV_ITALY=(int)(0x0024),
374         DMPAPER_ENV_MONARCH=(int)(0x0025),
375         DMPAPER_ENV_PERSONAL=(int)(0x0026),
376         DMPAPER_FANFOLD_US=(int)(0x0027),
377         DMPAPER_FANFOLD_STD_GERMAN=(int)(0x0028),
378         DMPAPER_FANFOLD_LGL_GERMAN=(int)(0x0029),
379         DMPAPER_DBL_JAPANESE_POSTCARD=(int)(0x0045),
380         DMPAPER_A6=(int)(0x0046),
381         DMPAPER_JENV_KAKU2=(int)(0x0047),
382         DMPAPER_JENV_KAKU3=(int)(0x0048),
383         DMPAPER_JENV_CHOU3=(int)(0x0049),
384         DMPAPER_JENV_CHOU4=(int)(0x004A),
385         DMPAPER_LETTER_ROTATED=(int)(0x004B),
386         DMPAPER_A3_ROTATED=(int)(0x004C),
387         DMPAPER_A4_ROTATED=(int)(0x004D),
388         DMPAPER_A5_ROTATED=(int)(0x004E),
389         DMPAPER_B4_JIS_ROTATED=(int)(0x004F),
390         DMPAPER_B5_JIS_ROTATED=(int)(0x0050),
391         DMPAPER_JAPANESE_POSTCARD_ROTATED=(int)(0x0051),
392         DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED=(int)(0x0052),
393         DMPAPER_A6_ROTATED=(int)(0x0053),
394         DMPAPER_JENV_KAKU2_ROTATED=(int)(0x0054),
395         DMPAPER_JENV_KAKU3_ROTATED=(int)(0x0055),
396         DMPAPER_JENV_CHOU3_ROTATED=(int)(0x0056),
397         DMPAPER_JENV_CHOU4_ROTATED=(int)(0x0057),
398         DMPAPER_B6_JIS=(int)(0x0058),
399         DMPAPER_B6_JIS_ROTATED=(int)(0x0059),
400         DMPAPER_12X11=(int)(0x005A),
401         DMPAPER_JENV_YOU4=(int)(0x005B),
402         DMPAPER_JENV_YOU4_ROTATED=(int)(0x005C),
403         DMPAPER_P16K=(int)(0x005D),
404         DMPAPER_P32K=(int)(0x005E),
405         DMPAPER_P32KBIG=(int)(0x005F),
406         DMPAPER_PENV_1=(int)(0x0060),
407         DMPAPER_PENV_2=(int)(0x0061),
408         DMPAPER_PENV_3=(int)(0x0062),
409         DMPAPER_PENV_4=(int)(0x0063),
410         DMPAPER_PENV_5=(int)(0x0064),
411         DMPAPER_PENV_6=(int)(0x0065),
412         DMPAPER_PENV_7=(int)(0x0066),
413         DMPAPER_PENV_8=(int)(0x0067),
414         DMPAPER_PENV_9=(int)(0x0068),
415         DMPAPER_PENV_10=(int)(0x0069),
416         DMPAPER_P16K_ROTATED=(int)(0x006A),
417         DMPAPER_P32K_ROTATED=(int)(0x006B),
418         DMPAPER_P32KBIG_ROTATED=(int)(0x006C),
419         DMPAPER_PENV_1_ROTATED=(int)(0x006D),
420         DMPAPER_PENV_2_ROTATED=(int)(0x006E),
421         DMPAPER_PENV_3_ROTATED=(int)(0x006F),
422         DMPAPER_PENV_4_ROTATED=(int)(0x0070),
423         DMPAPER_PENV_5_ROTATED=(int)(0x0071),
424         DMPAPER_PENV_6_ROTATED=(int)(0x0072),
425         DMPAPER_PENV_7_ROTATED=(int)(0x0073),
426         DMPAPER_PENV_8_ROTATED=(int)(0x0074),
427         DMPAPER_PENV_9_ROTATED=(int)(0x0075),
428         DMPAPER_PENV_10_ROTATED=(int)(0x0076)
429 }
430 #else
431  { __donnot_use_enum_spoolss_DeviceModePaperSize=0x7FFFFFFF}
432 #define DMPAPER_LETTER ( 0x0001 )
433 #define DMPAPER_LETTERSMALL ( 0x0002 )
434 #define DMPAPER_TABLOID ( 0x0003 )
435 #define DMPAPER_LEDGER ( 0x0004 )
436 #define DMPAPER_LEGAL ( 0x0005 )
437 #define DMPAPER_STATEMENT ( 0x0006 )
438 #define DMPAPER_EXECUTIVE ( 0x0007 )
439 #define DMPAPER_A3 ( 0x0008 )
440 #define DMPAPER_A4 ( 0x0009 )
441 #define DMPAPER_A4SMALL ( 0x000A )
442 #define DMPAPER_A5 ( 0x000B )
443 #define DMPAPER_B4 ( 0x000C )
444 #define DMPAPER_B5 ( 0x000D )
445 #define DMPAPER_FOLIO ( 0x000E )
446 #define DMPAPER_QUARTO ( 0x000F )
447 #define DMPAPER_10X14 ( 0x0010 )
448 #define DMPAPER_11X17 ( 0x0011 )
449 #define DMPAPER_NOTE ( 0x0012 )
450 #define DMPAPER_ENV_9 ( 0x0013 )
451 #define DMPAPER_ENV_10 ( 0x0014 )
452 #define DMPAPER_ENV_11 ( 0x0015 )
453 #define DMPAPER_ENV_12 ( 0x0016 )
454 #define DMPAPER_ENV_14 ( 0x0017 )
455 #define DMPAPER_CSHEET ( 0x0018 )
456 #define DMPAPER_DSHEET ( 0x0019 )
457 #define DMPAPER_ESHEET ( 0x001A )
458 #define DMPAPER_ENV_DL ( 0x001B )
459 #define DMPAPER_ENV_C5 ( 0x001C )
460 #define DMPAPER_ENV_C3 ( 0x001D )
461 #define DMPAPER_ENV_C4 ( 0x001E )
462 #define DMPAPER_ENV_C6 ( 0x001F )
463 #define DMPAPER_ENV_C65 ( 0x0020 )
464 #define DMPAPER_ENV_B4 ( 0x0021 )
465 #define DMPAPER_ENV_B5 ( 0x0022 )
466 #define DMPAPER_ENV_B6 ( 0x0023 )
467 #define DMPAPER_ENV_ITALY ( 0x0024 )
468 #define DMPAPER_ENV_MONARCH ( 0x0025 )
469 #define DMPAPER_ENV_PERSONAL ( 0x0026 )
470 #define DMPAPER_FANFOLD_US ( 0x0027 )
471 #define DMPAPER_FANFOLD_STD_GERMAN ( 0x0028 )
472 #define DMPAPER_FANFOLD_LGL_GERMAN ( 0x0029 )
473 #define DMPAPER_DBL_JAPANESE_POSTCARD ( 0x0045 )
474 #define DMPAPER_A6 ( 0x0046 )
475 #define DMPAPER_JENV_KAKU2 ( 0x0047 )
476 #define DMPAPER_JENV_KAKU3 ( 0x0048 )
477 #define DMPAPER_JENV_CHOU3 ( 0x0049 )
478 #define DMPAPER_JENV_CHOU4 ( 0x004A )
479 #define DMPAPER_LETTER_ROTATED ( 0x004B )
480 #define DMPAPER_A3_ROTATED ( 0x004C )
481 #define DMPAPER_A4_ROTATED ( 0x004D )
482 #define DMPAPER_A5_ROTATED ( 0x004E )
483 #define DMPAPER_B4_JIS_ROTATED ( 0x004F )
484 #define DMPAPER_B5_JIS_ROTATED ( 0x0050 )
485 #define DMPAPER_JAPANESE_POSTCARD_ROTATED ( 0x0051 )
486 #define DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED ( 0x0052 )
487 #define DMPAPER_A6_ROTATED ( 0x0053 )
488 #define DMPAPER_JENV_KAKU2_ROTATED ( 0x0054 )
489 #define DMPAPER_JENV_KAKU3_ROTATED ( 0x0055 )
490 #define DMPAPER_JENV_CHOU3_ROTATED ( 0x0056 )
491 #define DMPAPER_JENV_CHOU4_ROTATED ( 0x0057 )
492 #define DMPAPER_B6_JIS ( 0x0058 )
493 #define DMPAPER_B6_JIS_ROTATED ( 0x0059 )
494 #define DMPAPER_12X11 ( 0x005A )
495 #define DMPAPER_JENV_YOU4 ( 0x005B )
496 #define DMPAPER_JENV_YOU4_ROTATED ( 0x005C )
497 #define DMPAPER_P16K ( 0x005D )
498 #define DMPAPER_P32K ( 0x005E )
499 #define DMPAPER_P32KBIG ( 0x005F )
500 #define DMPAPER_PENV_1 ( 0x0060 )
501 #define DMPAPER_PENV_2 ( 0x0061 )
502 #define DMPAPER_PENV_3 ( 0x0062 )
503 #define DMPAPER_PENV_4 ( 0x0063 )
504 #define DMPAPER_PENV_5 ( 0x0064 )
505 #define DMPAPER_PENV_6 ( 0x0065 )
506 #define DMPAPER_PENV_7 ( 0x0066 )
507 #define DMPAPER_PENV_8 ( 0x0067 )
508 #define DMPAPER_PENV_9 ( 0x0068 )
509 #define DMPAPER_PENV_10 ( 0x0069 )
510 #define DMPAPER_P16K_ROTATED ( 0x006A )
511 #define DMPAPER_P32K_ROTATED ( 0x006B )
512 #define DMPAPER_P32KBIG_ROTATED ( 0x006C )
513 #define DMPAPER_PENV_1_ROTATED ( 0x006D )
514 #define DMPAPER_PENV_2_ROTATED ( 0x006E )
515 #define DMPAPER_PENV_3_ROTATED ( 0x006F )
516 #define DMPAPER_PENV_4_ROTATED ( 0x0070 )
517 #define DMPAPER_PENV_5_ROTATED ( 0x0071 )
518 #define DMPAPER_PENV_6_ROTATED ( 0x0072 )
519 #define DMPAPER_PENV_7_ROTATED ( 0x0073 )
520 #define DMPAPER_PENV_8_ROTATED ( 0x0074 )
521 #define DMPAPER_PENV_9_ROTATED ( 0x0075 )
522 #define DMPAPER_PENV_10_ROTATED ( 0x0076 )
523 #endif
524 ;
525
526 enum spoolss_DeviceModeDefaultSource
527 #ifndef USE_UINT_ENUMS
528  {
529         DMBIN_UPPER=(int)(0x0001),
530         DMBIN_LOWER=(int)(0x0002),
531         DMBIN_MIDDLE=(int)(0x0003),
532         DMBIN_MANUAL=(int)(0x0004),
533         DMBIN_ENVELOPE=(int)(0x0005),
534         DMBIN_ENVMANUAL=(int)(0x0006),
535         DMBIN_AUTO=(int)(0x0007),
536         DMBIN_TRACTOR=(int)(0x0008),
537         DMBIN_SMALLFMT=(int)(0x0009),
538         DMBIN_LARGEFMT=(int)(0x000a),
539         DMBIN_LARGECAPACITY=(int)(0x000b),
540         DMBIN_CASSETTE=(int)(0x000e),
541         DMBIN_FORMSOURCE=(int)(0x000f)
542 }
543 #else
544  { __donnot_use_enum_spoolss_DeviceModeDefaultSource=0x7FFFFFFF}
545 #define DMBIN_UPPER ( 0x0001 )
546 #define DMBIN_LOWER ( 0x0002 )
547 #define DMBIN_MIDDLE ( 0x0003 )
548 #define DMBIN_MANUAL ( 0x0004 )
549 #define DMBIN_ENVELOPE ( 0x0005 )
550 #define DMBIN_ENVMANUAL ( 0x0006 )
551 #define DMBIN_AUTO ( 0x0007 )
552 #define DMBIN_TRACTOR ( 0x0008 )
553 #define DMBIN_SMALLFMT ( 0x0009 )
554 #define DMBIN_LARGEFMT ( 0x000a )
555 #define DMBIN_LARGECAPACITY ( 0x000b )
556 #define DMBIN_CASSETTE ( 0x000e )
557 #define DMBIN_FORMSOURCE ( 0x000f )
558 #endif
559 ;
560
561 enum spoolss_DeviceModePrintQuality
562 #ifndef USE_UINT_ENUMS
563  {
564         DMRES_HIGH=(int)(0xfffc),
565         DMRES_MEDIUM=(int)(0xfffd),
566         DMRES_LOW=(int)(0xfffe),
567         DMRES_DRAFT=(int)(0xffff)
568 }
569 #else
570  { __donnot_use_enum_spoolss_DeviceModePrintQuality=0x7FFFFFFF}
571 #define DMRES_HIGH ( 0xfffc )
572 #define DMRES_MEDIUM ( 0xfffd )
573 #define DMRES_LOW ( 0xfffe )
574 #define DMRES_DRAFT ( 0xffff )
575 #endif
576 ;
577
578 enum spoolss_DeviceModeColor
579 #ifndef USE_UINT_ENUMS
580  {
581         DMRES_MONOCHROME=(int)(0x0001),
582         DMRES_COLOR=(int)(0x0002)
583 }
584 #else
585  { __donnot_use_enum_spoolss_DeviceModeColor=0x7FFFFFFF}
586 #define DMRES_MONOCHROME ( 0x0001 )
587 #define DMRES_COLOR ( 0x0002 )
588 #endif
589 ;
590
591 enum spoolss_DeviceModeDuplex
592 #ifndef USE_UINT_ENUMS
593  {
594         DMDUP_SIMPLEX=(int)(0x0001),
595         DMDUP_VERTICAL=(int)(0x0002),
596         DMDUP_HORIZONTAL=(int)(0x0003)
597 }
598 #else
599  { __donnot_use_enum_spoolss_DeviceModeDuplex=0x7FFFFFFF}
600 #define DMDUP_SIMPLEX ( 0x0001 )
601 #define DMDUP_VERTICAL ( 0x0002 )
602 #define DMDUP_HORIZONTAL ( 0x0003 )
603 #endif
604 ;
605
606 enum spoolss_DeviceModeTTOption
607 #ifndef USE_UINT_ENUMS
608  {
609         DMTT_BITMAP=(int)(0x0001),
610         DMTT_DOWNLOAD=(int)(0x0002),
611         DMTT_SUBDEV=(int)(0x0003),
612         DMTT_DOWNLOAD_OUTLINE=(int)(0x0004)
613 }
614 #else
615  { __donnot_use_enum_spoolss_DeviceModeTTOption=0x7FFFFFFF}
616 #define DMTT_BITMAP ( 0x0001 )
617 #define DMTT_DOWNLOAD ( 0x0002 )
618 #define DMTT_SUBDEV ( 0x0003 )
619 #define DMTT_DOWNLOAD_OUTLINE ( 0x0004 )
620 #endif
621 ;
622
623 enum spoolss_DeviceModeCollate
624 #ifndef USE_UINT_ENUMS
625  {
626         DMCOLLATE_FALSE=(int)(0x0000),
627         DMCOLLATE_TRUE=(int)(0x0001)
628 }
629 #else
630  { __donnot_use_enum_spoolss_DeviceModeCollate=0x7FFFFFFF}
631 #define DMCOLLATE_FALSE ( 0x0000 )
632 #define DMCOLLATE_TRUE ( 0x0001 )
633 #endif
634 ;
635
636 enum spoolss_DeviceModeNUp
637 #ifndef USE_UINT_ENUMS
638  {
639         DMNUP_SYSTEM=(int)(0x00000001),
640         DMNUP_ONEUP=(int)(0x00000002)
641 }
642 #else
643  { __donnot_use_enum_spoolss_DeviceModeNUp=0x7FFFFFFF}
644 #define DMNUP_SYSTEM ( 0x00000001 )
645 #define DMNUP_ONEUP ( 0x00000002 )
646 #endif
647 ;
648
649 enum spoolss_DeviceModeICMMethod
650 #ifndef USE_UINT_ENUMS
651  {
652         DMICMMETHOD_NONE=(int)(0x00000001),
653         DMICMMETHOD_SYSTEM=(int)(0x00000002),
654         DMICMMETHOD_DRIVER=(int)(0x00000003),
655         DMICMMETHOD_DEVICE=(int)(0x00000004)
656 }
657 #else
658  { __donnot_use_enum_spoolss_DeviceModeICMMethod=0x7FFFFFFF}
659 #define DMICMMETHOD_NONE ( 0x00000001 )
660 #define DMICMMETHOD_SYSTEM ( 0x00000002 )
661 #define DMICMMETHOD_DRIVER ( 0x00000003 )
662 #define DMICMMETHOD_DEVICE ( 0x00000004 )
663 #endif
664 ;
665
666 enum spoolss_DeviceModeICMIntent
667 #ifndef USE_UINT_ENUMS
668  {
669         DMICM_SATURATE=(int)(0x00000001),
670         DMICM_CONTRAST=(int)(0x00000002),
671         DMICM_COLORIMETRIC=(int)(0x00000003),
672         DMICM_ABS_COLORIMETRIC=(int)(0x00000004)
673 }
674 #else
675  { __donnot_use_enum_spoolss_DeviceModeICMIntent=0x7FFFFFFF}
676 #define DMICM_SATURATE ( 0x00000001 )
677 #define DMICM_CONTRAST ( 0x00000002 )
678 #define DMICM_COLORIMETRIC ( 0x00000003 )
679 #define DMICM_ABS_COLORIMETRIC ( 0x00000004 )
680 #endif
681 ;
682
683 enum spoolss_DeviceModeMediaType
684 #ifndef USE_UINT_ENUMS
685  {
686         DMMEDIA_STANDARD=(int)(0x00000001),
687         DMMEDIA_TRANSPARENCY=(int)(0x00000002),
688         DMMEDIA_GLOSSY=(int)(0x00000003)
689 }
690 #else
691  { __donnot_use_enum_spoolss_DeviceModeMediaType=0x7FFFFFFF}
692 #define DMMEDIA_STANDARD ( 0x00000001 )
693 #define DMMEDIA_TRANSPARENCY ( 0x00000002 )
694 #define DMMEDIA_GLOSSY ( 0x00000003 )
695 #endif
696 ;
697
698 enum spoolss_DeviceModeDitherType
699 #ifndef USE_UINT_ENUMS
700  {
701         DMDITHER_NONE=(int)(0x00000001),
702         DMDITHER_COARSE=(int)(0x00000002),
703         DMDITHER_FINE=(int)(0x00000003),
704         DMDITHER_LINEART=(int)(0x00000004),
705         DMDITHER_ERRORDIFFUSION=(int)(0x00000005),
706         DMDITHER_RESERVED6=(int)(0x00000006),
707         DMDITHER_RESERVED7=(int)(0x00000007),
708         DMDITHER_RESERVED8=(int)(0x00000008),
709         DMDITHER_RESERVED9=(int)(0x00000009),
710         DMDITHER_GRAYSCALE=(int)(0x0000000A)
711 }
712 #else
713  { __donnot_use_enum_spoolss_DeviceModeDitherType=0x7FFFFFFF}
714 #define DMDITHER_NONE ( 0x00000001 )
715 #define DMDITHER_COARSE ( 0x00000002 )
716 #define DMDITHER_FINE ( 0x00000003 )
717 #define DMDITHER_LINEART ( 0x00000004 )
718 #define DMDITHER_ERRORDIFFUSION ( 0x00000005 )
719 #define DMDITHER_RESERVED6 ( 0x00000006 )
720 #define DMDITHER_RESERVED7 ( 0x00000007 )
721 #define DMDITHER_RESERVED8 ( 0x00000008 )
722 #define DMDITHER_RESERVED9 ( 0x00000009 )
723 #define DMDITHER_GRAYSCALE ( 0x0000000A )
724 #endif
725 ;
726
727 struct spoolss_DeviceMode {
728         const char *devicename;/* [charset(UTF16)] */
729         enum spoolss_DeviceModeSpecVersion specversion;
730         uint16_t driverversion;
731         uint16_t size;
732         uint16_t __driverextra_length;/* [value(r->driverextra_data.length)] */
733         uint32_t fields;
734         enum spoolss_DeviceModeOrientation orientation;
735         enum spoolss_DeviceModePaperSize papersize;
736         uint16_t paperlength;
737         uint16_t paperwidth;
738         uint16_t scale;
739         uint16_t copies;
740         enum spoolss_DeviceModeDefaultSource defaultsource;
741         enum spoolss_DeviceModePrintQuality printquality;
742         enum spoolss_DeviceModeColor color;
743         enum spoolss_DeviceModeDuplex duplex;
744         uint16_t yresolution;
745         enum spoolss_DeviceModeTTOption ttoption;
746         enum spoolss_DeviceModeCollate collate;
747         const char *formname;/* [charset(UTF16)] */
748         uint16_t logpixels;
749         uint32_t bitsperpel;
750         uint32_t pelswidth;
751         uint32_t pelsheight;
752         enum spoolss_DeviceModeNUp displayflags;
753         uint32_t displayfrequency;
754         enum spoolss_DeviceModeICMMethod icmmethod;
755         enum spoolss_DeviceModeICMIntent icmintent;
756         enum spoolss_DeviceModeMediaType mediatype;
757         enum spoolss_DeviceModeDitherType dithertype;
758         uint32_t reserved1;
759         uint32_t reserved2;
760         uint32_t panningwidth;
761         uint32_t panningheight;
762         DATA_BLOB driverextra_data;/* [subcontext_size(__driverextra_length),subcontext(0),flag(LIBNDR_FLAG_REMAINING)] */
763 }/* [gensize,public] */;
764
765 /* bitmap spoolss_EnumPrinterFlags */
766 #define PRINTER_ENUM_DEFAULT ( 0x00000001 )
767 #define PRINTER_ENUM_LOCAL ( 0x00000002 )
768 #define PRINTER_ENUM_CONNECTIONS ( 0x00000004 )
769 #define PRINTER_ENUM_FAVORITE ( 0x00000004 )
770 #define PRINTER_ENUM_NAME ( 0x00000008 )
771 #define PRINTER_ENUM_REMOTE ( 0x00000010 )
772 #define PRINTER_ENUM_SHARED ( 0x00000020 )
773 #define PRINTER_ENUM_NETWORK ( 0x00000040 )
774 #define PRINTER_ENUM_EXPAND ( 0x00004000 )
775 #define PRINTER_ENUM_CONTAINER ( 0x00008000 )
776 #define PRINTER_ENUM_ICON1 ( 0x00010000 )
777 #define PRINTER_ENUM_ICON2 ( 0x00020000 )
778 #define PRINTER_ENUM_ICON3 ( 0x00040000 )
779 #define PRINTER_ENUM_ICON4 ( 0x00080000 )
780 #define PRINTER_ENUM_ICON5 ( 0x00100000 )
781 #define PRINTER_ENUM_ICON6 ( 0x00200000 )
782 #define PRINTER_ENUM_ICON7 ( 0x00400000 )
783 #define PRINTER_ENUM_ICON8 ( 0x00800000 )
784 #define PRINTER_ENUM_HIDE ( 0x01000000 )
785
786 /* bitmap spoolss_PrinterAttributes */
787 #define PRINTER_ATTRIBUTE_QUEUED ( 0x00000001 )
788 #define PRINTER_ATTRIBUTE_DIRECT ( 0x00000002 )
789 #define PRINTER_ATTRIBUTE_DEFAULT ( 0x00000004 )
790 #define PRINTER_ATTRIBUTE_SHARED ( 0x00000008 )
791 #define PRINTER_ATTRIBUTE_NETWORK ( 0x00000010 )
792 #define PRINTER_ATTRIBUTE_HIDDEN ( 0x00000020 )
793 #define PRINTER_ATTRIBUTE_LOCAL ( 0x00000040 )
794 #define PRINTER_ATTRIBUTE_ENABLE_DEVQ ( 0x00000080 )
795 #define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS ( 0x00000100 )
796 #define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST ( 0x00000200 )
797 #define PRINTER_ATTRIBUTE_WORK_OFFLINE ( 0x00000400 )
798 #define PRINTER_ATTRIBUTE_ENABLE_BIDI ( 0x00000800 )
799 #define PRINTER_ATTRIBUTE_RAW_ONLY ( 0x00001000 )
800 #define PRINTER_ATTRIBUTE_PUBLISHED ( 0x00002000 )
801 #define PRINTER_ATTRIBUTE_FAX ( 0x00004000 )
802 #define PRINTER_ATTRIBUTE_TS ( 0x00008000 )
803
804 struct spoolss_PrinterInfo1 {
805         uint32_t flags;
806         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
807         const char * name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
808         const char * comment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
809 }/* [gensize,public] */;
810
811 struct spoolss_PrinterInfo2 {
812         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
813         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
814         const char * sharename;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
815         const char * portname;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
816         const char * drivername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
817         const char * comment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
818         const char * location;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
819         struct spoolss_DeviceMode *devmode;/* [relative,subcontext(0)] */
820         const char * sepfile;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
821         const char * printprocessor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
822         const char * datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
823         const char * parameters;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
824         struct security_descriptor *secdesc;/* [relative,subcontext(0)] */
825         uint32_t attributes;
826         uint32_t priority;/* [range(0,99)] */
827         uint32_t defaultpriority;
828         uint32_t starttime;
829         uint32_t untiltime;
830         uint32_t status;
831         uint32_t cjobs;
832         uint32_t averageppm;
833 }/* [gensize,public] */;
834
835 struct spoolss_PrinterInfo3 {
836         struct security_descriptor *secdesc;/* [relative,subcontext(0)] */
837 }/* [gensize,public] */;
838
839 struct spoolss_PrinterInfo4 {
840         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
841         const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
842         uint32_t attributes;
843 }/* [gensize,public] */;
844
845 struct spoolss_PrinterInfo5 {
846         const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
847         const char * portname;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
848         uint32_t attributes;
849         uint32_t device_not_selected_timeout;
850         uint32_t transmission_retry_timeout;
851 }/* [gensize,public] */;
852
853 struct spoolss_PrinterInfo6 {
854         uint32_t status;
855 }/* [gensize,public] */;
856
857 /* bitmap spoolss_DsPrintAction */
858 #define DSPRINT_PUBLISH ( 0x00000001 )
859 #define DSPRINT_UPDATE ( 0x00000002 )
860 #define DSPRINT_UNPUBLISH ( 0x00000004 )
861 #define DSPRINT_REPUBLISH ( 0x00000008 )
862 #define DSPRINT_PENDING ( 0x80000000 )
863
864 struct spoolss_PrinterInfo7 {
865         const char * guid;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
866         uint32_t action;
867 }/* [gensize,public] */;
868
869 struct spoolss_DeviceModeInfo {
870         struct spoolss_DeviceMode *devmode;/* [relative,subcontext(0)] */
871 };
872
873 union spoolss_PrinterInfo {
874         struct spoolss_PrinterInfo0 info0;/* [case(0)] */
875         struct spoolss_PrinterInfo1 info1;/* [case] */
876         struct spoolss_PrinterInfo2 info2;/* [case(2)] */
877         struct spoolss_PrinterInfo3 info3;/* [case(3)] */
878         struct spoolss_PrinterInfo4 info4;/* [case(4)] */
879         struct spoolss_PrinterInfo5 info5;/* [case(5)] */
880         struct spoolss_PrinterInfo6 info6;/* [case(6)] */
881         struct spoolss_PrinterInfo7 info7;/* [case(7)] */
882         struct spoolss_DeviceModeInfo info8;/* [case(8)] */
883         struct spoolss_DeviceModeInfo info9;/* [case(9)] */
884 }/* [relative_base,gensize,public,nodiscriminant] */;
885
886 struct spoolss_DevmodeContainer {
887         uint32_t _ndr_size;/* [value(_ndr_size_spoolss_DeviceMode(devmode,ndr->iconv_convenience,ndr->flags))] */
888         struct spoolss_DeviceMode *devmode;/* [unique,subcontext_size(_ndr_size),subcontext(4)] */
889 };
890
891 struct spoolss_JobInfo1 {
892         uint32_t job_id;
893         const char * printer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
894         const char * server_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
895         const char * user_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
896         const char * document_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
897         const char * data_type;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
898         const char * text_status;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
899         uint32_t status;
900         uint32_t priority;/* [range(0,99)] */
901         uint32_t position;
902         uint32_t total_pages;
903         uint32_t pages_printed;
904         struct spoolss_Time submitted;
905 }/* [gensize,public] */;
906
907 struct spoolss_JobInfo2 {
908         uint32_t job_id;
909         const char * printer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
910         const char * server_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
911         const char * user_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
912         const char * document_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
913         const char * notify_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
914         const char * data_type;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
915         const char * print_processor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
916         const char * parameters;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
917         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
918         struct spoolss_DeviceMode *devmode;/* [relative] */
919         const char * text_status;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
920         struct security_descriptor *secdesc;/* [relative] */
921         uint32_t status;
922         uint32_t priority;/* [range(0,99)] */
923         uint32_t position;
924         uint32_t start_time;
925         uint32_t until_time;
926         uint32_t total_pages;
927         uint32_t size;
928         struct spoolss_Time submitted;
929         uint32_t time;
930         uint32_t pages_printed;
931 }/* [gensize,public] */;
932
933 struct spoolss_JobInfo3 {
934         uint32_t job_id;
935         uint32_t next_job_id;
936         uint32_t reserved;
937 }/* [gensize,public] */;
938
939 struct spoolss_JobInfo4 {
940         uint32_t job_id;
941         const char * printer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
942         const char * server_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
943         const char * user_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
944         const char * document_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
945         const char * notify_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
946         const char * data_type;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
947         const char * print_processor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
948         const char * parameters;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
949         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
950         struct spoolss_DeviceMode *devmode;/* [relative] */
951         const char * text_status;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
952         struct security_descriptor *secdesc;/* [relative] */
953         uint32_t status;
954         uint32_t priority;/* [range(0,99)] */
955         uint32_t position;
956         uint32_t start_time;
957         uint32_t until_time;
958         uint32_t total_pages;
959         uint32_t size;
960         struct spoolss_Time submitted;
961         uint32_t time;
962         uint32_t pages_printed;
963         uint32_t size_high;
964 }/* [gensize,public] */;
965
966 union spoolss_JobInfo {
967         struct spoolss_JobInfo1 info1;/* [case] */
968         struct spoolss_JobInfo2 info2;/* [case(2)] */
969         struct spoolss_JobInfo3 info3;/* [case(3)] */
970         struct spoolss_JobInfo4 info4;/* [case(4)] */
971 }/* [relative_base,gensize,public,nodiscriminant] */;
972
973 struct spoolss_SetJobInfo1 {
974         uint32_t job_id;
975         const char *printer_name;/* [unique,charset(UTF16)] */
976         const char *server_name;/* [unique,charset(UTF16)] */
977         const char *user_name;/* [unique,charset(UTF16)] */
978         const char *document_name;/* [unique,charset(UTF16)] */
979         const char *data_type;/* [unique,charset(UTF16)] */
980         const char *text_status;/* [unique,charset(UTF16)] */
981         uint32_t status;
982         uint32_t priority;/* [range(0,99)] */
983         uint32_t position;
984         uint32_t total_pages;
985         uint32_t pages_printed;
986         struct spoolss_Time submitted;
987 };
988
989 struct spoolss_SetJobInfo2 {
990         uint32_t job_id;
991         const char *printer_name;/* [unique,charset(UTF16)] */
992         const char *server_name;/* [unique,charset(UTF16)] */
993         const char *user_name;/* [unique,charset(UTF16)] */
994         const char *document_name;/* [unique,charset(UTF16)] */
995         const char *notify_name;/* [unique,charset(UTF16)] */
996         const char *data_type;/* [unique,charset(UTF16)] */
997         const char *print_processor;/* [unique,charset(UTF16)] */
998         const char *parameters;/* [unique,charset(UTF16)] */
999         const char *driver_name;/* [unique,charset(UTF16)] */
1000         uint32_t _devmode_ptr;
1001         const char *text_status;/* [unique,charset(UTF16)] */
1002         uint32_t _secdesc_ptr;
1003         uint32_t status;
1004         uint32_t priority;/* [range(0,99)] */
1005         uint32_t position;
1006         uint32_t start_time;
1007         uint32_t until_time;
1008         uint32_t total_pages;
1009         uint32_t size;
1010         struct spoolss_Time submitted;
1011         uint32_t time;
1012         uint32_t pages_printed;
1013 };
1014
1015 struct spoolss_SetJobInfo4 {
1016         uint32_t job_id;
1017         const char *printer_name;/* [unique,charset(UTF16)] */
1018         const char *server_name;/* [unique,charset(UTF16)] */
1019         const char *user_name;/* [unique,charset(UTF16)] */
1020         const char *document_name;/* [unique,charset(UTF16)] */
1021         const char *notify_name;/* [unique,charset(UTF16)] */
1022         const char *data_type;/* [unique,charset(UTF16)] */
1023         const char *print_processor;/* [unique,charset(UTF16)] */
1024         const char *parameters;/* [unique,charset(UTF16)] */
1025         const char *driver_name;/* [unique,charset(UTF16)] */
1026         uint32_t _devmode_ptr;
1027         const char *text_status;/* [unique,charset(UTF16)] */
1028         uint32_t _secdesc_ptr;
1029         uint32_t status;
1030         uint32_t priority;/* [range(0,99)] */
1031         uint32_t position;
1032         uint32_t start_time;
1033         uint32_t until_time;
1034         uint32_t total_pages;
1035         uint32_t size;
1036         struct spoolss_Time submitted;
1037         uint32_t time;
1038         uint32_t pages_printed;
1039         uint32_t size_high;
1040 };
1041
1042 union spoolss_SetJobInfo {
1043         struct spoolss_SetJobInfo1 *info1;/* [unique,case] */
1044         struct spoolss_SetJobInfo2 *info2;/* [unique,case(2)] */
1045         struct spoolss_JobInfo3 *info3;/* [unique,case(3)] */
1046         struct spoolss_SetJobInfo4 *info4;/* [unique,case(4)] */
1047 }/* [public] */;
1048
1049 struct spoolss_JobInfoContainer {
1050         uint32_t level;
1051         union spoolss_SetJobInfo info;/* [switch_is(level)] */
1052 };
1053
1054 enum spoolss_JobControl
1055 #ifndef USE_UINT_ENUMS
1056  {
1057         SPOOLSS_JOB_CONTROL_PAUSE=(int)(1),
1058         SPOOLSS_JOB_CONTROL_RESUME=(int)(2),
1059         SPOOLSS_JOB_CONTROL_CANCEL=(int)(3),
1060         SPOOLSS_JOB_CONTROL_RESTART=(int)(4),
1061         SPOOLSS_JOB_CONTROL_DELETE=(int)(5),
1062         SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER=(int)(6),
1063         SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED=(int)(7),
1064         SPOOLSS_JOB_CONTROL_RETAIN=(int)(8),
1065         SPOOLSS_JOB_CONTROL_RELEASE=(int)(9)
1066 }
1067 #else
1068  { __donnot_use_enum_spoolss_JobControl=0x7FFFFFFF}
1069 #define SPOOLSS_JOB_CONTROL_PAUSE ( 1 )
1070 #define SPOOLSS_JOB_CONTROL_RESUME ( 2 )
1071 #define SPOOLSS_JOB_CONTROL_CANCEL ( 3 )
1072 #define SPOOLSS_JOB_CONTROL_RESTART ( 4 )
1073 #define SPOOLSS_JOB_CONTROL_DELETE ( 5 )
1074 #define SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER ( 6 )
1075 #define SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED ( 7 )
1076 #define SPOOLSS_JOB_CONTROL_RETAIN ( 8 )
1077 #define SPOOLSS_JOB_CONTROL_RELEASE ( 9 )
1078 #endif
1079 ;
1080
1081 enum spoolss_PrinterControl
1082 #ifndef USE_UINT_ENUMS
1083  {
1084         SPOOLSS_PRINTER_CONTROL_UNPAUSE=(int)(0),
1085         SPOOLSS_PRINTER_CONTROL_PAUSE=(int)(1),
1086         SPOOLSS_PRINTER_CONTROL_RESUME=(int)(2),
1087         SPOOLSS_PRINTER_CONTROL_PURGE=(int)(3),
1088         SPOOLSS_PRINTER_CONTROL_SET_STATUS=(int)(4)
1089 }
1090 #else
1091  { __donnot_use_enum_spoolss_PrinterControl=0x7FFFFFFF}
1092 #define SPOOLSS_PRINTER_CONTROL_UNPAUSE ( 0 )
1093 #define SPOOLSS_PRINTER_CONTROL_PAUSE ( 1 )
1094 #define SPOOLSS_PRINTER_CONTROL_RESUME ( 2 )
1095 #define SPOOLSS_PRINTER_CONTROL_PURGE ( 3 )
1096 #define SPOOLSS_PRINTER_CONTROL_SET_STATUS ( 4 )
1097 #endif
1098 ;
1099
1100 struct spoolss_SetPrinterInfo0 {
1101         const char *servername;/* [unique,charset(UTF16)] */
1102         const char *printername;/* [unique,charset(UTF16)] */
1103         uint32_t cjobs;
1104         uint32_t total_jobs;
1105         uint32_t total_bytes;
1106         struct spoolss_Time time;
1107         uint32_t global_counter;
1108         uint32_t total_pages;
1109         uint32_t version;
1110         uint32_t free_build;
1111         uint32_t spooling;
1112         uint32_t max_spooling;
1113         uint32_t session_counter;
1114         uint32_t num_error_out_of_paper;
1115         uint32_t num_error_not_ready;
1116         uint32_t job_error;
1117         uint32_t number_of_processors;
1118         enum spoolss_ProcessorType processor_type;
1119         uint32_t high_part_total_bytes;
1120         uint32_t change_id;
1121         WERROR last_error;
1122         uint32_t status;
1123         uint32_t enumerate_network_printers;
1124         uint32_t c_setprinter;
1125         enum spoolss_ProcessorArchitecture processor_architecture;
1126         uint16_t processor_level;
1127         uint32_t ref_ic;
1128         uint32_t reserved2;
1129         uint32_t reserved3;
1130 };
1131
1132 struct spoolss_SetPrinterInfo1 {
1133         uint32_t flags;
1134         const char *description;/* [unique,charset(UTF16)] */
1135         const char *name;/* [unique,charset(UTF16)] */
1136         const char *comment;/* [unique,charset(UTF16)] */
1137 };
1138
1139 struct spoolss_SetPrinterInfo2 {
1140         const char *servername;/* [unique,charset(UTF16)] */
1141         const char *printername;/* [unique,charset(UTF16)] */
1142         const char *sharename;/* [unique,charset(UTF16)] */
1143         const char *portname;/* [unique,charset(UTF16)] */
1144         const char *drivername;/* [unique,charset(UTF16)] */
1145         const char *comment;/* [unique,charset(UTF16)] */
1146         const char *location;/* [unique,charset(UTF16)] */
1147         struct spoolss_DeviceMode *devmode;/* [unique,subcontext(0)] */
1148         const char *sepfile;/* [unique,charset(UTF16)] */
1149         const char *printprocessor;/* [unique,charset(UTF16)] */
1150         const char *datatype;/* [unique,charset(UTF16)] */
1151         const char *parameters;/* [unique,charset(UTF16)] */
1152         struct security_descriptor *secdesc;/* [unique,subcontext(0)] */
1153         uint32_t attributes;
1154         uint32_t priority;/* [range(0,99)] */
1155         uint32_t defaultpriority;
1156         uint32_t starttime;
1157         uint32_t untiltime;
1158         uint32_t status;
1159         uint32_t cjobs;
1160         uint32_t averageppm;
1161 };
1162
1163 struct spoolss_SetPrinterInfo3 {
1164         uint32_t sec_desc_ptr;
1165 };
1166
1167 struct spoolss_SetPrinterInfo4 {
1168         const char *printername;/* [unique,charset(UTF16)] */
1169         const char *servername;/* [unique,charset(UTF16)] */
1170         uint32_t attributes;
1171 };
1172
1173 struct spoolss_SetPrinterInfo5 {
1174         const char *printername;/* [unique,charset(UTF16)] */
1175         const char *portname;/* [unique,charset(UTF16)] */
1176         uint32_t attributes;
1177         uint32_t device_not_selected_timeout;
1178         uint32_t transmission_retry_timeout;
1179 };
1180
1181 struct spoolss_SetPrinterInfo6 {
1182         uint32_t status;
1183 };
1184
1185 struct spoolss_SetPrinterInfo7 {
1186         const char *guid;/* [unique,charset(UTF16)] */
1187         uint32_t action;
1188 };
1189
1190 union spoolss_SetPrinterInfo {
1191         struct spoolss_SetPrinterInfo0 *info0;/* [unique,case(0)] */
1192         struct spoolss_SetPrinterInfo1 *info1;/* [unique,case] */
1193         struct spoolss_SetPrinterInfo2 *info2;/* [unique,case(2)] */
1194         struct spoolss_SetPrinterInfo3 *info3;/* [unique,case(3)] */
1195         struct spoolss_SetPrinterInfo4 *info4;/* [unique,case(4)] */
1196         struct spoolss_SetPrinterInfo5 *info5;/* [unique,case(5)] */
1197         struct spoolss_SetPrinterInfo6 *info6;/* [unique,case(6)] */
1198         struct spoolss_SetPrinterInfo7 *info7;/* [unique,case(7)] */
1199         struct spoolss_DeviceModeInfo *info8;/* [unique,case(8)] */
1200         struct spoolss_DeviceModeInfo *info9;/* [unique,case(9)] */
1201 }/* [switch_type(uint32)] */;
1202
1203 struct spoolss_SetPrinterInfoCtr {
1204         uint32_t level;
1205         union spoolss_SetPrinterInfo info;/* [switch_is(level)] */
1206 };
1207
1208 struct spoolss_StringArray {
1209         uint32_t _ndr_size;/* [value((ndr_size_spoolss_StringArray(r,ndr->iconv_convenience,ndr->flags)-4)/2)] */
1210         const char ** string;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1211 }/* [public] */;
1212
1213 struct spoolss_AddDriverInfo1 {
1214         const char *driver_name;/* [unique,charset(UTF16)] */
1215 };
1216
1217 enum spoolss_DriverOSVersion
1218 #ifndef USE_UINT_ENUMS
1219  {
1220         SPOOLSS_DRIVER_VERSION_9X=(int)(0),
1221         SPOOLSS_DRIVER_VERSION_NT35=(int)(1),
1222         SPOOLSS_DRIVER_VERSION_NT4=(int)(2),
1223         SPOOLSS_DRIVER_VERSION_200X=(int)(3)
1224 }
1225 #else
1226  { __donnot_use_enum_spoolss_DriverOSVersion=0x7FFFFFFF}
1227 #define SPOOLSS_DRIVER_VERSION_9X ( 0 )
1228 #define SPOOLSS_DRIVER_VERSION_NT35 ( 1 )
1229 #define SPOOLSS_DRIVER_VERSION_NT4 ( 2 )
1230 #define SPOOLSS_DRIVER_VERSION_200X ( 3 )
1231 #endif
1232 ;
1233
1234 struct spoolss_AddDriverInfo2 {
1235         enum spoolss_DriverOSVersion version;
1236         const char *driver_name;/* [unique,charset(UTF16)] */
1237         const char *architecture;/* [unique,charset(UTF16)] */
1238         const char *driver_path;/* [unique,charset(UTF16)] */
1239         const char *data_file;/* [unique,charset(UTF16)] */
1240         const char *config_file;/* [unique,charset(UTF16)] */
1241 };
1242
1243 struct spoolss_AddDriverInfo3 {
1244         enum spoolss_DriverOSVersion version;
1245         const char *driver_name;/* [unique,charset(UTF16)] */
1246         const char *architecture;/* [unique,charset(UTF16)] */
1247         const char *driver_path;/* [unique,charset(UTF16)] */
1248         const char *data_file;/* [unique,charset(UTF16)] */
1249         const char *config_file;/* [unique,charset(UTF16)] */
1250         const char *help_file;/* [unique,charset(UTF16)] */
1251         const char *monitor_name;/* [unique,charset(UTF16)] */
1252         const char *default_datatype;/* [unique,charset(UTF16)] */
1253         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1254         struct spoolss_StringArray *dependent_files;/* [unique] */
1255 };
1256
1257 struct spoolss_AddDriverInfo4 {
1258         enum spoolss_DriverOSVersion version;
1259         const char *driver_name;/* [unique,charset(UTF16)] */
1260         const char *architecture;/* [unique,charset(UTF16)] */
1261         const char *driver_path;/* [unique,charset(UTF16)] */
1262         const char *data_file;/* [unique,charset(UTF16)] */
1263         const char *config_file;/* [unique,charset(UTF16)] */
1264         const char *help_file;/* [unique,charset(UTF16)] */
1265         const char *monitor_name;/* [unique,charset(UTF16)] */
1266         const char *default_datatype;/* [unique,charset(UTF16)] */
1267         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1268         struct spoolss_StringArray *dependent_files;/* [unique] */
1269         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1270         struct spoolss_StringArray *previous_names;/* [unique] */
1271 };
1272
1273 /* bitmap spoolss_DriverAttributes */
1274 #define PRINTER_DRIVER_PACKAGE_AWARE ( 0x00000002 )
1275
1276 struct spoolss_AddDriverInfo5 {
1277         enum spoolss_DriverOSVersion version;
1278         const char *driver_name;/* [unique,charset(UTF16)] */
1279         const char *architecture;/* [unique,charset(UTF16)] */
1280         const char *driver_path;/* [unique,charset(UTF16)] */
1281         const char *data_file;/* [unique,charset(UTF16)] */
1282         const char *config_file;/* [unique,charset(UTF16)] */
1283         uint32_t driver_attributes;
1284         uint32_t config_version;
1285         uint32_t driver_version;
1286 };
1287
1288 struct spoolss_AddDriverInfo6 {
1289         enum spoolss_DriverOSVersion version;
1290         const char *driver_name;/* [unique,charset(UTF16)] */
1291         const char *architecture;/* [unique,charset(UTF16)] */
1292         const char *driver_path;/* [unique,charset(UTF16)] */
1293         const char *data_file;/* [unique,charset(UTF16)] */
1294         const char *config_file;/* [unique,charset(UTF16)] */
1295         const char *help_file;/* [unique,charset(UTF16)] */
1296         const char *monitor_name;/* [unique,charset(UTF16)] */
1297         const char *default_datatype;/* [unique,charset(UTF16)] */
1298         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1299         struct spoolss_StringArray *dependent_files;/* [unique] */
1300         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1301         struct spoolss_StringArray *previous_names;/* [unique] */
1302         NTTIME driver_date;
1303         uint64_t driver_version;
1304         const char *manufacturer_name;/* [unique,charset(UTF16)] */
1305         const char *manufacturer_url;/* [unique,charset(UTF16)] */
1306         const char *hardware_id;/* [unique,charset(UTF16)] */
1307         const char *provider;/* [unique,charset(UTF16)] */
1308 };
1309
1310 struct spoolss_AddDriverInfo8 {
1311         enum spoolss_DriverOSVersion version;
1312         const char *driver_name;/* [unique,charset(UTF16)] */
1313         const char *architecture;/* [unique,charset(UTF16)] */
1314         const char *driver_path;/* [unique,charset(UTF16)] */
1315         const char *data_file;/* [unique,charset(UTF16)] */
1316         const char *config_file;/* [unique,charset(UTF16)] */
1317         const char *help_file;/* [unique,charset(UTF16)] */
1318         const char *monitor_name;/* [unique,charset(UTF16)] */
1319         const char *default_datatype;/* [unique,charset(UTF16)] */
1320         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1321         struct spoolss_StringArray *dependent_files;/* [unique] */
1322         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1323         struct spoolss_StringArray *previous_names;/* [unique] */
1324         NTTIME driver_date;
1325         uint64_t driver_version;
1326         const char *manufacturer_name;/* [unique,charset(UTF16)] */
1327         const char *manufacturer_url;/* [unique,charset(UTF16)] */
1328         const char *hardware_id;/* [unique,charset(UTF16)] */
1329         const char *provider;/* [unique,charset(UTF16)] */
1330         const char *print_processor;/* [unique,charset(UTF16)] */
1331         const char *vendor_setup;/* [unique,charset(UTF16)] */
1332         uint32_t _ndr_size_color_profiles;/* [value(((ndr_size_spoolss_StringArray(color_profiles,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1333         struct spoolss_StringArray *color_profiles;/* [unique] */
1334         const char *inf_path;/* [unique,charset(UTF16)] */
1335         uint32_t printer_driver_attributes;
1336         uint32_t _ndr_size_core_driver_dependencies;/* [value(((ndr_size_spoolss_StringArray(core_driver_dependencies,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1337         struct spoolss_StringArray *core_driver_dependencies;/* [unique] */
1338         NTTIME min_inbox_driver_ver_date;
1339         uint64_t min_inbox_driver_ver_version;
1340 };
1341
1342 union spoolss_AddDriverInfo {
1343         struct spoolss_AddDriverInfo1 *info1;/* [unique,case] */
1344         struct spoolss_AddDriverInfo2 *info2;/* [unique,case(2)] */
1345         struct spoolss_AddDriverInfo3 *info3;/* [unique,case(3)] */
1346         struct spoolss_AddDriverInfo4 *info4;/* [unique,case(4)] */
1347         struct spoolss_AddDriverInfo6 *info6;/* [unique,case(6)] */
1348         struct spoolss_AddDriverInfo8 *info8;/* [unique,case(8)] */
1349 }/* [switch_type(uint32)] */;
1350
1351 struct spoolss_AddDriverInfoCtr {
1352         uint32_t level;
1353         union spoolss_AddDriverInfo info;/* [switch_is(level)] */
1354 };
1355
1356 struct spoolss_DriverInfo1 {
1357         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1358 }/* [gensize,public] */;
1359
1360 struct spoolss_DriverInfo2 {
1361         enum spoolss_DriverOSVersion version;
1362         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1363         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1364         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1365         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1366         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1367 }/* [gensize,public] */;
1368
1369 struct spoolss_DriverInfo3 {
1370         enum spoolss_DriverOSVersion version;
1371         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1372         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1373         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1374         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1375         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1376         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1377         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1378         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1379         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1380 }/* [gensize,public] */;
1381
1382 struct spoolss_DriverInfo4 {
1383         enum spoolss_DriverOSVersion version;
1384         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1385         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1386         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1387         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1388         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1389         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1390         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1391         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1392         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1393         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1394 }/* [gensize,public] */;
1395
1396 struct spoolss_DriverInfo5 {
1397         enum spoolss_DriverOSVersion version;
1398         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1399         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1400         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1401         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1402         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1403         uint32_t driver_attributes;
1404         uint32_t config_version;
1405         uint32_t driver_version;
1406 }/* [gensize,public] */;
1407
1408 struct spoolss_DriverInfo6 {
1409         enum spoolss_DriverOSVersion version;
1410         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1411         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1412         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1413         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1414         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1415         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1416         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1417         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1418         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1419         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1420         NTTIME driver_date;
1421         uint64_t driver_version;
1422         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1423         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1424         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1425         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1426 }/* [gensize,public] */;
1427
1428 struct spoolss_DriverInfo8 {
1429         enum spoolss_DriverOSVersion version;
1430         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1431         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1432         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1433         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1434         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1435         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1436         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1437         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1438         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1439         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1440         NTTIME driver_date;
1441         uint64_t driver_version;
1442         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1443         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1444         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1445         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1446         const char * print_processor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1447         const char * vendor_setup;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1448         const char ** color_profiles;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1449         const char * inf_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1450         uint32_t printer_driver_attributes;
1451         const char ** core_driver_dependencies;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1452         NTTIME min_inbox_driver_ver_date;
1453         uint64_t min_inbox_driver_ver_version;
1454 }/* [gensize,public] */;
1455
1456 enum spoolss_DriverFileType
1457 #ifndef USE_UINT_ENUMS
1458  {
1459         SPOOLSS_DRIVER_FILE_TYPE_RENDERING=(int)(0x00000000),
1460         SPOOLSS_DRIVER_FILE_TYPE_CONFIGURATION=(int)(0x00000001),
1461         SPOOLSS_DRIVER_FILE_TYPE_DATA=(int)(0x00000002),
1462         SPOOLSS_DRIVER_FILE_TYPE_HELP=(int)(0x00000003),
1463         SPOOLSS_DRIVER_FILE_TYPE_OTHER=(int)(0x00000004)
1464 }
1465 #else
1466  { __donnot_use_enum_spoolss_DriverFileType=0x7FFFFFFF}
1467 #define SPOOLSS_DRIVER_FILE_TYPE_RENDERING ( 0x00000000 )
1468 #define SPOOLSS_DRIVER_FILE_TYPE_CONFIGURATION ( 0x00000001 )
1469 #define SPOOLSS_DRIVER_FILE_TYPE_DATA ( 0x00000002 )
1470 #define SPOOLSS_DRIVER_FILE_TYPE_HELP ( 0x00000003 )
1471 #define SPOOLSS_DRIVER_FILE_TYPE_OTHER ( 0x00000004 )
1472 #endif
1473 ;
1474
1475 struct spoolss_DriverFileInfo {
1476         const char * file_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1477         enum spoolss_DriverFileType file_type;
1478         uint32_t file_version;
1479 }/* [public] */;
1480
1481 struct spoolss_DriverInfo101 {
1482         enum spoolss_DriverOSVersion version;
1483         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1484         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1485         struct spoolss_DriverFileInfo *file_info;/* [relative,size_is(file_count)] */
1486         uint32_t file_count;
1487         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1488         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1489         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1490         NTTIME driver_date;
1491         uint64_t driver_version;
1492         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1493         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1494         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1495         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1496 }/* [gensize,nopush,public,nopull] */;
1497
1498 union spoolss_DriverInfo {
1499         struct spoolss_DriverInfo1 info1;/* [case] */
1500         struct spoolss_DriverInfo2 info2;/* [case(2)] */
1501         struct spoolss_DriverInfo3 info3;/* [case(3)] */
1502         struct spoolss_DriverInfo4 info4;/* [case(4)] */
1503         struct spoolss_DriverInfo5 info5;/* [case(5)] */
1504         struct spoolss_DriverInfo6 info6;/* [case(6)] */
1505         struct spoolss_DriverInfo8 info8;/* [case(8)] */
1506         struct spoolss_DriverInfo101 info101;/* [case(101)] */
1507 }/* [relative_base,gensize,public,nodiscriminant] */;
1508
1509 struct spoolss_DriverDirectoryInfo1 {
1510         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1511 }/* [gensize,public] */;
1512
1513 union spoolss_DriverDirectoryInfo {
1514         struct spoolss_DriverDirectoryInfo1 info1;/* [case] */
1515 }/* [gensize,relative_base,nodiscriminant,public] */;
1516
1517 struct spoolss_PrintProcessorInfo1 {
1518         const char * print_processor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1519 }/* [gensize,public] */;
1520
1521 union spoolss_PrintProcessorInfo {
1522         struct spoolss_PrintProcessorInfo1 info1;/* [case] */
1523 }/* [relative_base,nodiscriminant,public] */;
1524
1525 struct spoolss_PrintProcessorDirectoryInfo1 {
1526         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1527 }/* [gensize,public] */;
1528
1529 union spoolss_PrintProcessorDirectoryInfo {
1530         struct spoolss_PrintProcessorDirectoryInfo1 info1;/* [case] */
1531 }/* [gensize,relative_base,nodiscriminant,public] */;
1532
1533 struct spoolss_DocumentInfo1 {
1534         const char *document_name;/* [unique,charset(UTF16)] */
1535         const char *output_file;/* [unique,charset(UTF16)] */
1536         const char *datatype;/* [unique,charset(UTF16)] */
1537 };
1538
1539 union spoolss_DocumentInfo {
1540         struct spoolss_DocumentInfo1 *info1;/* [unique,case] */
1541 }/* [switch_type(uint32)] */;
1542
1543 struct spoolss_OSVersion {
1544         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersion(r,ndr->iconv_convenience,ndr->flags))] */
1545         uint32_t major;
1546         uint32_t minor;
1547         uint32_t build;
1548         uint32_t platform_id;/* [value(2)] */
1549         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
1550 }/* [gensize,public] */;
1551
1552 struct spoolss_OSVersionEx {
1553         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersionEx(r,ndr->iconv_convenience,ndr->flags))] */
1554         uint32_t major;
1555         uint32_t minor;
1556         uint32_t build;
1557         uint32_t platform_id;/* [value(2)] */
1558         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
1559         uint16_t service_pack_major;
1560         uint16_t service_pack_minor;
1561         uint16_t suite_mask;
1562         uint8_t product_type;
1563         uint8_t reserved;
1564 }/* [gensize,public] */;
1565
1566 union spoolss_PrinterData {
1567         const char * string;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(REG_SZ)] */
1568         DATA_BLOB binary;/* [flag(LIBNDR_FLAG_REMAINING),case(REG_BINARY)] */
1569         uint32_t value;/* [case(REG_DWORD)] */
1570         const char ** string_array;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(REG_MULTI_SZ)] */
1571         DATA_BLOB data;/* [flag(LIBNDR_FLAG_REMAINING),default] */
1572 }/* [gensize,public,nodiscriminant] */;
1573
1574 enum spoolss_FormFlags
1575 #ifndef USE_UINT_ENUMS
1576  {
1577         SPOOLSS_FORM_USER=(int)(0),
1578         SPOOLSS_FORM_BUILTIN=(int)(1),
1579         SPOOLSS_FORM_PRINTER=(int)(2)
1580 }
1581 #else
1582  { __donnot_use_enum_spoolss_FormFlags=0x7FFFFFFF}
1583 #define SPOOLSS_FORM_USER ( 0 )
1584 #define SPOOLSS_FORM_BUILTIN ( 1 )
1585 #define SPOOLSS_FORM_PRINTER ( 2 )
1586 #endif
1587 ;
1588
1589 struct spoolss_FormSize {
1590         uint32_t width;
1591         uint32_t height;
1592 };
1593
1594 struct spoolss_FormArea {
1595         uint32_t left;
1596         uint32_t top;
1597         uint32_t right;
1598         uint32_t bottom;
1599 };
1600
1601 struct spoolss_FormInfo1 {
1602         enum spoolss_FormFlags flags;
1603         const char * form_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1604         struct spoolss_FormSize size;
1605         struct spoolss_FormArea area;
1606 }/* [gensize,public] */;
1607
1608 /* bitmap spoolss_FormStringType */
1609 #define SPOOLSS_FORM_STRING_TYPE_NONE ( 0x00000001 )
1610 #define SPOOLSS_FORM_STRING_TYPE_MUI_DLL ( 0x00000002 )
1611 #define SPOOLSS_FORM_STRING_TYPE_LANG_PAIR ( 0x00000004 )
1612
1613 struct spoolss_FormInfo2 {
1614         enum spoolss_FormFlags flags;
1615         const char * form_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1616         struct spoolss_FormSize size;
1617         struct spoolss_FormArea area;
1618         const char * keyword;/* [relative,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
1619         uint32_t string_type;
1620         const char * mui_dll;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1621         uint32_t ressource_id;
1622         const char * display_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1623         uint32_t lang_id;
1624 }/* [gensize,public] */;
1625
1626 union spoolss_FormInfo {
1627         struct spoolss_FormInfo1 info1;/* [case] */
1628         struct spoolss_FormInfo2 info2;/* [case(2)] */
1629 }/* [relative_base,gensize,public,nodiscriminant] */;
1630
1631 struct spoolss_AddFormInfo1 {
1632         enum spoolss_FormFlags flags;
1633         const char *form_name;/* [unique,charset(UTF16)] */
1634         struct spoolss_FormSize size;
1635         struct spoolss_FormArea area;
1636 };
1637
1638 struct spoolss_AddFormInfo2 {
1639         enum spoolss_FormFlags flags;
1640         const char *form_name;/* [unique,charset(UTF16)] */
1641         struct spoolss_FormSize size;
1642         struct spoolss_FormArea area;
1643         const char *keyword;/* [unique,charset(DOS)] */
1644         uint32_t string_type;
1645         const char *mui_dll;/* [unique,charset(UTF16)] */
1646         uint32_t ressource_id;
1647         const char *display_name;/* [unique,charset(UTF16)] */
1648         uint32_t lang_id;
1649 };
1650
1651 union spoolss_AddFormInfo {
1652         struct spoolss_AddFormInfo1 *info1;/* [unique,case] */
1653         struct spoolss_AddFormInfo2 *info2;/* [unique,case(2)] */
1654 }/* [switch_type(uint32)] */;
1655
1656 struct spoolss_PortInfo1 {
1657         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1658 }/* [gensize,public] */;
1659
1660 /* bitmap spoolss_PortType */
1661 #define SPOOLSS_PORT_TYPE_WRITE ( 0x00000001 )
1662 #define SPOOLSS_PORT_TYPE_READ ( 0x00000002 )
1663 #define SPOOLSS_PORT_TYPE_REDIRECTED ( 0x00000004 )
1664 #define SPOOLSS_PORT_TYPE_NET_ATTACHED ( 0x00000008 )
1665
1666 struct spoolss_PortInfo2 {
1667         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1668         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1669         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1670         uint32_t port_type;
1671         uint32_t reserved;
1672 }/* [gensize,public] */;
1673
1674 enum spoolss_PortStatus
1675 #ifndef USE_UINT_ENUMS
1676  {
1677         PORT_STATUS_CLEAR=(int)(0x00000000),
1678         PORT_STATUS_OFFLINE=(int)(0x00000001),
1679         PORT_STATUS_PAPER_JAM=(int)(0x00000002),
1680         PORT_STATUS_PAPER_OUT=(int)(0x00000003),
1681         PORT_STATUS_OUTPUT_BIN_FULL=(int)(0x00000004),
1682         PORT_STATUS_PAPER_PROBLEM=(int)(0x00000005),
1683         PORT_STATUS_NO_TONER=(int)(0x00000006),
1684         PORT_STATUS_DOOR_OPEN=(int)(0x00000007),
1685         PORT_STATUS_USER_INTERVENTION=(int)(0x00000008),
1686         PORT_STATUS_OUT_OF_MEMORY=(int)(0x00000009),
1687         PORT_STATUS_TONER_LOW=(int)(0x0000000A),
1688         PORT_STATUS_WARMING_UP=(int)(0x0000000B),
1689         PORT_STATUS_POWER_SAVE=(int)(0x0000000C)
1690 }
1691 #else
1692  { __donnot_use_enum_spoolss_PortStatus=0x7FFFFFFF}
1693 #define PORT_STATUS_CLEAR ( 0x00000000 )
1694 #define PORT_STATUS_OFFLINE ( 0x00000001 )
1695 #define PORT_STATUS_PAPER_JAM ( 0x00000002 )
1696 #define PORT_STATUS_PAPER_OUT ( 0x00000003 )
1697 #define PORT_STATUS_OUTPUT_BIN_FULL ( 0x00000004 )
1698 #define PORT_STATUS_PAPER_PROBLEM ( 0x00000005 )
1699 #define PORT_STATUS_NO_TONER ( 0x00000006 )
1700 #define PORT_STATUS_DOOR_OPEN ( 0x00000007 )
1701 #define PORT_STATUS_USER_INTERVENTION ( 0x00000008 )
1702 #define PORT_STATUS_OUT_OF_MEMORY ( 0x00000009 )
1703 #define PORT_STATUS_TONER_LOW ( 0x0000000A )
1704 #define PORT_STATUS_WARMING_UP ( 0x0000000B )
1705 #define PORT_STATUS_POWER_SAVE ( 0x0000000C )
1706 #endif
1707 ;
1708
1709 enum spoolss_PortSeverity
1710 #ifndef USE_UINT_ENUMS
1711  {
1712         PORT_STATUS_TYPE_ERROR=(int)(0x00000001),
1713         PORT_STATUS_TYPE_WARNING=(int)(0x00000002),
1714         PORT_STATUS_TYPE_INFO=(int)(0x00000003)
1715 }
1716 #else
1717  { __donnot_use_enum_spoolss_PortSeverity=0x7FFFFFFF}
1718 #define PORT_STATUS_TYPE_ERROR ( 0x00000001 )
1719 #define PORT_STATUS_TYPE_WARNING ( 0x00000002 )
1720 #define PORT_STATUS_TYPE_INFO ( 0x00000003 )
1721 #endif
1722 ;
1723
1724 struct spoolss_PortInfo3 {
1725         enum spoolss_PortStatus status;
1726         const char * status_string;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1727         enum spoolss_PortSeverity severity;
1728 }/* [gensize,public] */;
1729
1730 struct spoolss_PortInfoFF {
1731         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1732         DATA_BLOB monitor_data;
1733 }/* [gensize,public] */;
1734
1735 union spoolss_PortInfo {
1736         struct spoolss_PortInfo1 info1;/* [case] */
1737         struct spoolss_PortInfo2 info2;/* [case(2)] */
1738         struct spoolss_PortInfo3 info3;/* [case(3)] */
1739         struct spoolss_PortInfoFF infoFF;/* [case(0xff)] */
1740 }/* [relative_base,nodiscriminant,public] */;
1741
1742 struct spoolss_MonitorInfo1 {
1743         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1744 }/* [gensize,public] */;
1745
1746 struct spoolss_MonitorInfo2 {
1747         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1748         const char * environment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1749         const char * dll_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1750 }/* [gensize,public] */;
1751
1752 union spoolss_MonitorInfo {
1753         struct spoolss_MonitorInfo1 info1;/* [case] */
1754         struct spoolss_MonitorInfo2 info2;/* [case(2)] */
1755 }/* [relative_base,nodiscriminant,public] */;
1756
1757 struct spoolss_PrintProcDataTypesInfo1 {
1758         const char * name_array;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1759 }/* [gensize,public] */;
1760
1761 union spoolss_PrintProcDataTypesInfo {
1762         struct spoolss_PrintProcDataTypesInfo1 info1;/* [case] */
1763 }/* [relative_base,nodiscriminant,public] */;
1764
1765 /* bitmap spoolss_PrinterChangeFlags */
1766 #define PRINTER_CHANGE_ADD_PRINTER ( 0x00000001 )
1767 #define PRINTER_CHANGE_SET_PRINTER ( 0x00000002 )
1768 #define PRINTER_CHANGE_DELETE_PRINTER ( 0x00000004 )
1769 #define PRINTER_CHANGE_FAILED_CONNECTION_PRINTER ( 0x00000008 )
1770 #define PRINTER_CHANGE_ADD_JOB ( 0x00000100 )
1771 #define PRINTER_CHANGE_SET_JOB ( 0x00000200 )
1772 #define PRINTER_CHANGE_DELETE_JOB ( 0x00000400 )
1773 #define PRINTER_CHANGE_WRITE_JOB ( 0x00000800 )
1774 #define PRINTER_CHANGE_ADD_FORM ( 0x00010000 )
1775 #define PRINTER_CHANGE_SET_FORM ( 0x00020000 )
1776 #define PRINTER_CHANGE_DELETE_FORM ( 0x00040000 )
1777 #define PRINTER_CHANGE_ADD_PORT ( 0x00100000 )
1778 #define PRINTER_CHANGE_CONFIGURE_PORT ( 0x00200000 )
1779 #define PRINTER_CHANGE_DELETE_PORT ( 0x00400000 )
1780 #define PRINTER_CHANGE_ADD_PRINT_PROCESSOR ( 0x01000000 )
1781 #define PRINTER_CHANGE_DELETE_PRINT_PROCESSOR ( 0x04000000 )
1782 #define PRINTER_CHANGE_SERVER ( 0x08000000 )
1783 #define PRINTER_CHANGE_ADD_PRINTER_DRIVER ( 0x10000000 )
1784 #define PRINTER_CHANGE_SET_PRINTER_DRIVER ( 0x20000000 )
1785 #define PRINTER_CHANGE_DELETE_PRINTER_DRIVER ( 0x40000000 )
1786 #define PRINTER_CHANGE_TIMEOUT ( 0x80000000 )
1787
1788 enum spoolss_JobNotifyField
1789 #ifndef USE_UINT_ENUMS
1790  {
1791         JOB_NOTIFY_FIELD_PRINTER_NAME=(int)(0x00),
1792         JOB_NOTIFY_FIELD_MACHINE_NAME=(int)(0x01),
1793         JOB_NOTIFY_FIELD_PORT_NAME=(int)(0x02),
1794         JOB_NOTIFY_FIELD_USER_NAME=(int)(0x03),
1795         JOB_NOTIFY_FIELD_NOTIFY_NAME=(int)(0x04),
1796         JOB_NOTIFY_FIELD_DATATYPE=(int)(0x05),
1797         JOB_NOTIFY_FIELD_PRINT_PROCESSOR=(int)(0x06),
1798         JOB_NOTIFY_FIELD_PARAMETERS=(int)(0x07),
1799         JOB_NOTIFY_FIELD_DRIVER_NAME=(int)(0x08),
1800         JOB_NOTIFY_FIELD_DEVMODE=(int)(0x09),
1801         JOB_NOTIFY_FIELD_STATUS=(int)(0x0a),
1802         JOB_NOTIFY_FIELD_STATUS_STRING=(int)(0x0b),
1803         JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR=(int)(0x0c),
1804         JOB_NOTIFY_FIELD_DOCUMENT=(int)(0x0d),
1805         JOB_NOTIFY_FIELD_PRIORITY=(int)(0x0e),
1806         JOB_NOTIFY_FIELD_POSITION=(int)(0x0f),
1807         JOB_NOTIFY_FIELD_SUBMITTED=(int)(0x10),
1808         JOB_NOTIFY_FIELD_START_TIME=(int)(0x11),
1809         JOB_NOTIFY_FIELD_UNTIL_TIME=(int)(0x12),
1810         JOB_NOTIFY_FIELD_TIME=(int)(0x13),
1811         JOB_NOTIFY_FIELD_TOTAL_PAGES=(int)(0x14),
1812         JOB_NOTIFY_FIELD_PAGES_PRINTED=(int)(0x15),
1813         JOB_NOTIFY_FIELD_TOTAL_BYTES=(int)(0x16),
1814         JOB_NOTIFY_FIELD_BYTES_PRINTED=(int)(0x17)
1815 }
1816 #else
1817  { __donnot_use_enum_spoolss_JobNotifyField=0x7FFFFFFF}
1818 #define JOB_NOTIFY_FIELD_PRINTER_NAME ( 0x00 )
1819 #define JOB_NOTIFY_FIELD_MACHINE_NAME ( 0x01 )
1820 #define JOB_NOTIFY_FIELD_PORT_NAME ( 0x02 )
1821 #define JOB_NOTIFY_FIELD_USER_NAME ( 0x03 )
1822 #define JOB_NOTIFY_FIELD_NOTIFY_NAME ( 0x04 )
1823 #define JOB_NOTIFY_FIELD_DATATYPE ( 0x05 )
1824 #define JOB_NOTIFY_FIELD_PRINT_PROCESSOR ( 0x06 )
1825 #define JOB_NOTIFY_FIELD_PARAMETERS ( 0x07 )
1826 #define JOB_NOTIFY_FIELD_DRIVER_NAME ( 0x08 )
1827 #define JOB_NOTIFY_FIELD_DEVMODE ( 0x09 )
1828 #define JOB_NOTIFY_FIELD_STATUS ( 0x0a )
1829 #define JOB_NOTIFY_FIELD_STATUS_STRING ( 0x0b )
1830 #define JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR ( 0x0c )
1831 #define JOB_NOTIFY_FIELD_DOCUMENT ( 0x0d )
1832 #define JOB_NOTIFY_FIELD_PRIORITY ( 0x0e )
1833 #define JOB_NOTIFY_FIELD_POSITION ( 0x0f )
1834 #define JOB_NOTIFY_FIELD_SUBMITTED ( 0x10 )
1835 #define JOB_NOTIFY_FIELD_START_TIME ( 0x11 )
1836 #define JOB_NOTIFY_FIELD_UNTIL_TIME ( 0x12 )
1837 #define JOB_NOTIFY_FIELD_TIME ( 0x13 )
1838 #define JOB_NOTIFY_FIELD_TOTAL_PAGES ( 0x14 )
1839 #define JOB_NOTIFY_FIELD_PAGES_PRINTED ( 0x15 )
1840 #define JOB_NOTIFY_FIELD_TOTAL_BYTES ( 0x16 )
1841 #define JOB_NOTIFY_FIELD_BYTES_PRINTED ( 0x17 )
1842 #endif
1843 ;
1844
1845 enum spoolss_PrintNotifyField
1846 #ifndef USE_UINT_ENUMS
1847  {
1848         PRINTER_NOTIFY_FIELD_SERVER_NAME=(int)(0x00),
1849         PRINTER_NOTIFY_FIELD_PRINTER_NAME=(int)(0x01),
1850         PRINTER_NOTIFY_FIELD_SHARE_NAME=(int)(0x02),
1851         PRINTER_NOTIFY_FIELD_PORT_NAME=(int)(0x03),
1852         PRINTER_NOTIFY_FIELD_DRIVER_NAME=(int)(0x04),
1853         PRINTER_NOTIFY_FIELD_COMMENT=(int)(0x05),
1854         PRINTER_NOTIFY_FIELD_LOCATION=(int)(0x06),
1855         PRINTER_NOTIFY_FIELD_DEVMODE=(int)(0x07),
1856         PRINTER_NOTIFY_FIELD_SEPFILE=(int)(0x08),
1857         PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR=(int)(0x09),
1858         PRINTER_NOTIFY_FIELD_PARAMETERS=(int)(0x0a),
1859         PRINTER_NOTIFY_FIELD_DATATYPE=(int)(0x0b),
1860         PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR=(int)(0x0c),
1861         PRINTER_NOTIFY_FIELD_ATTRIBUTES=(int)(0x0d),
1862         PRINTER_NOTIFY_FIELD_PRIORITY=(int)(0x0e),
1863         PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY=(int)(0x0f),
1864         PRINTER_NOTIFY_FIELD_START_TIME=(int)(0x10),
1865         PRINTER_NOTIFY_FIELD_UNTIL_TIME=(int)(0x11),
1866         PRINTER_NOTIFY_FIELD_STATUS=(int)(0x12),
1867         PRINTER_NOTIFY_FIELD_STATUS_STRING=(int)(0x13),
1868         PRINTER_NOTIFY_FIELD_CJOBS=(int)(0x14),
1869         PRINTER_NOTIFY_FIELD_AVERAGE_PPM=(int)(0x15),
1870         PRINTER_NOTIFY_FIELD_TOTAL_PAGES=(int)(0x16),
1871         PRINTER_NOTIFY_FIELD_PAGES_PRINTED=(int)(0x17),
1872         PRINTER_NOTIFY_FIELD_TOTAL_BYTES=(int)(0x18),
1873         PRINTER_NOTIFY_FIELD_BYTES_PRINTED=(int)(0x19),
1874         PRINTER_NOTIFY_FIELD_OBJECT_GUID=(int)(0x1a),
1875         PRINTER_NOTIFY_FIELD_FRIENDLY_NAME=(int)(0x1b)
1876 }
1877 #else
1878  { __donnot_use_enum_spoolss_PrintNotifyField=0x7FFFFFFF}
1879 #define PRINTER_NOTIFY_FIELD_SERVER_NAME ( 0x00 )
1880 #define PRINTER_NOTIFY_FIELD_PRINTER_NAME ( 0x01 )
1881 #define PRINTER_NOTIFY_FIELD_SHARE_NAME ( 0x02 )
1882 #define PRINTER_NOTIFY_FIELD_PORT_NAME ( 0x03 )
1883 #define PRINTER_NOTIFY_FIELD_DRIVER_NAME ( 0x04 )
1884 #define PRINTER_NOTIFY_FIELD_COMMENT ( 0x05 )
1885 #define PRINTER_NOTIFY_FIELD_LOCATION ( 0x06 )
1886 #define PRINTER_NOTIFY_FIELD_DEVMODE ( 0x07 )
1887 #define PRINTER_NOTIFY_FIELD_SEPFILE ( 0x08 )
1888 #define PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR ( 0x09 )
1889 #define PRINTER_NOTIFY_FIELD_PARAMETERS ( 0x0a )
1890 #define PRINTER_NOTIFY_FIELD_DATATYPE ( 0x0b )
1891 #define PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR ( 0x0c )
1892 #define PRINTER_NOTIFY_FIELD_ATTRIBUTES ( 0x0d )
1893 #define PRINTER_NOTIFY_FIELD_PRIORITY ( 0x0e )
1894 #define PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY ( 0x0f )
1895 #define PRINTER_NOTIFY_FIELD_START_TIME ( 0x10 )
1896 #define PRINTER_NOTIFY_FIELD_UNTIL_TIME ( 0x11 )
1897 #define PRINTER_NOTIFY_FIELD_STATUS ( 0x12 )
1898 #define PRINTER_NOTIFY_FIELD_STATUS_STRING ( 0x13 )
1899 #define PRINTER_NOTIFY_FIELD_CJOBS ( 0x14 )
1900 #define PRINTER_NOTIFY_FIELD_AVERAGE_PPM ( 0x15 )
1901 #define PRINTER_NOTIFY_FIELD_TOTAL_PAGES ( 0x16 )
1902 #define PRINTER_NOTIFY_FIELD_PAGES_PRINTED ( 0x17 )
1903 #define PRINTER_NOTIFY_FIELD_TOTAL_BYTES ( 0x18 )
1904 #define PRINTER_NOTIFY_FIELD_BYTES_PRINTED ( 0x19 )
1905 #define PRINTER_NOTIFY_FIELD_OBJECT_GUID ( 0x1a )
1906 #define PRINTER_NOTIFY_FIELD_FRIENDLY_NAME ( 0x1b )
1907 #endif
1908 ;
1909
1910 enum spoolss_NotifyType
1911 #ifndef USE_UINT_ENUMS
1912  {
1913         PRINTER_NOTIFY_TYPE=(int)(0x00),
1914         JOB_NOTIFY_TYPE=(int)(0x01)
1915 }
1916 #else
1917  { __donnot_use_enum_spoolss_NotifyType=0x7FFFFFFF}
1918 #define PRINTER_NOTIFY_TYPE ( 0x00 )
1919 #define JOB_NOTIFY_TYPE ( 0x01 )
1920 #endif
1921 ;
1922
1923 union spoolss_Field {
1924         uint16_t field;/* [case(PRINTER_NOTIFY_TYPE)] */
1925 }/* [noprint,nodiscriminant] */;
1926
1927 struct spoolss_NotifyOptionType {
1928         enum spoolss_NotifyType type;
1929         uint16_t u1;
1930         uint32_t u2;
1931         uint32_t u3;
1932         uint32_t count;
1933         union spoolss_Field *fields;/* [unique,switch_is(type),size_is(count)] */
1934 };
1935
1936 /* bitmap spoolssNotifyOptionFlags */
1937 #define PRINTER_NOTIFY_OPTIONS_REFRESH ( 0x00000001 )
1938
1939 struct spoolss_NotifyOption {
1940         uint32_t version;/* [value(2)] */
1941         uint32_t flags;
1942         uint32_t count;
1943         struct spoolss_NotifyOptionType *types;/* [unique,size_is(count)] */
1944 };
1945
1946 struct spoolss_NotifyString {
1947         uint32_t size;
1948         const char *string;/* [unique,charset(UTF16),size_is(size/2)] */
1949 };
1950
1951 enum spoolss_NotifyTable
1952 #ifndef USE_UINT_ENUMS
1953  {
1954         NOTIFY_TABLE_DWORD=(int)(0x0001),
1955         NOTIFY_TABLE_STRING=(int)(0x0002),
1956         NOTIFY_TABLE_DEVMODE=(int)(0x0003),
1957         NOTIFY_TABLE_TIME=(int)(0x0004),
1958         NOTIFY_TABLE_SECURITYDESCRIPTOR=(int)(0x0005)
1959 }
1960 #else
1961  { __donnot_use_enum_spoolss_NotifyTable=0x7FFFFFFF}
1962 #define NOTIFY_TABLE_DWORD ( 0x0001 )
1963 #define NOTIFY_TABLE_STRING ( 0x0002 )
1964 #define NOTIFY_TABLE_DEVMODE ( 0x0003 )
1965 #define NOTIFY_TABLE_TIME ( 0x0004 )
1966 #define NOTIFY_TABLE_SECURITYDESCRIPTOR ( 0x0005 )
1967 #endif
1968 ;
1969
1970 union spoolss_NotifyData {
1971         uint32_t integer[2];/* [case] */
1972         struct spoolss_NotifyString string;/* [case(2)] */
1973         struct spoolss_DevmodeContainer devmode;/* [case(3)] */
1974         struct spoolss_TimeCtr time;/* [case(4)] */
1975         struct sec_desc_buf sd;/* [case(5)] */
1976 }/* [switch_type(uint32)] */;
1977
1978 struct spoolss_Notify {
1979         enum spoolss_NotifyType type;
1980         union spoolss_Field field;/* [switch_is(type)] */
1981         enum spoolss_NotifyTable variable_type;
1982         uint32_t job_id;
1983         union spoolss_NotifyData data;/* [switch_is(variable_type)] */
1984 };
1985
1986 struct spoolss_NotifyInfo {
1987         uint32_t version;/* [value(2)] */
1988         uint32_t flags;
1989         uint32_t count;
1990         struct spoolss_Notify *notifies;/* [size_is(count)] */
1991 };
1992
1993 union spoolss_ReplyPrinterInfo {
1994         struct spoolss_NotifyInfo *info0;/* [unique,case(0)] */
1995 }/* [switch_type(uint32)] */;
1996
1997 /* bitmap spoolss_PrinterNotifyFlags */
1998 #define PRINTER_NOTIFY_INFO_DISCARDED ( 0x00000001 )
1999 #define PRINTER_NOTIFY_INFO_DISCARDNOTED ( 0x00010000 )
2000 #define PRINTER_NOTIFY_INFO_COLOR_MISMATCH ( 0x00080000 )
2001
2002 struct spoolss_UserLevel1 {
2003         uint32_t size;
2004         const char *client;/* [unique,charset(UTF16)] */
2005         const char *user;/* [unique,charset(UTF16)] */
2006         uint32_t build;
2007         enum spoolss_MajorVersion major;
2008         enum spoolss_MinorVersion minor;
2009         enum spoolss_ProcessorArchitecture processor;
2010 };
2011
2012 struct spoolss_UserLevel2 {
2013         uint32_t not_used;
2014 };
2015
2016 struct spoolss_UserLevel3 {
2017         uint32_t size;
2018         uint32_t flags;
2019         uint32_t size2;
2020         const char *client;/* [unique,charset(UTF16)] */
2021         const char *user;/* [unique,charset(UTF16)] */
2022         uint32_t build;
2023         enum spoolss_MajorVersion major;
2024         enum spoolss_MinorVersion minor;
2025         enum spoolss_ProcessorArchitecture processor;
2026         uint64_t reserved;
2027 };
2028
2029 union spoolss_UserLevel {
2030         struct spoolss_UserLevel1 *level1;/* [unique,case] */
2031         struct spoolss_UserLevel2 *level2;/* [unique,case(2)] */
2032         struct spoolss_UserLevel3 *level3;/* [unique,case(3)] */
2033 }/* [switch_type(uint32)] */;
2034
2035 struct spoolss_UserLevelCtr {
2036         uint32_t level;
2037         union spoolss_UserLevel user_info;/* [switch_is(level)] */
2038 };
2039
2040 /* bitmap spoolss_AccessRights */
2041 #define SERVER_ACCESS_ADMINISTER ( 0x00000001 )
2042 #define SERVER_ACCESS_ENUMERATE ( 0x00000002 )
2043 #define PRINTER_ACCESS_ADMINISTER ( 0x00000004 )
2044 #define PRINTER_ACCESS_USE ( 0x00000008 )
2045 #define JOB_ACCESS_ADMINISTER ( 0x00000010 )
2046 #define JOB_ACCESS_READ ( 0x00000020 )
2047
2048 struct spoolss_PrinterEnumValues {
2049         const char * value_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
2050         uint32_t value_name_len;/* [value(2*strlen_m_term(value_name))] */
2051         enum winreg_Type type;
2052         union spoolss_PrinterData *data;/* [relative,subcontext_size(r->data_length),subcontext(0),switch_is(type)] */
2053         uint32_t data_length;/* [value(ndr_size_spoolss_PrinterData(data,type,ndr->iconv_convenience,ndr->flags))] */
2054 }/* [relative_base,gensize,public] */;
2055
2056 union spoolss_KeyNames {
2057         const char ** string_array;/* [default,flag(LIBNDR_FLAG_STR_NULLTERM)] */
2058 }/* [nodiscriminant] */;
2059
2060 /* bitmap spoolss_DeleteDriverFlags */
2061 #define DPD_DELETE_UNUSED_FILES ( 0x00000001 )
2062 #define DPD_DELETE_SPECIFIC_VERSION ( 0x00000002 )
2063 #define DPD_DELETE_ALL_FILES ( 0x00000004 )
2064
2065 enum spoolss_PortProtocol
2066 #ifndef USE_UINT_ENUMS
2067  {
2068         PROTOCOL_RAWTCP_TYPE=(int)(1),
2069         PROTOCOL_LPR_TYPE=(int)(2)
2070 }
2071 #else
2072  { __donnot_use_enum_spoolss_PortProtocol=0x7FFFFFFF}
2073 #define PROTOCOL_RAWTCP_TYPE ( 1 )
2074 #define PROTOCOL_LPR_TYPE ( 2 )
2075 #endif
2076 ;
2077
2078 struct spoolss_PortData1 {
2079         const char *portname;/* [charset(UTF16)] */
2080         uint32_t version;/* [value(0x00000001)] */
2081         enum spoolss_PortProtocol protocol;
2082         uint32_t size;/* [value(sizeof(r))] */
2083         uint32_t reserved;
2084         const char *hostaddress;/* [charset(UTF16)] */
2085         const char *snmpcommunity;/* [charset(UTF16)] */
2086         uint32_t dblspool;
2087         const char *queue;/* [charset(UTF16)] */
2088         const char *ip_address;/* [charset(UTF16)] */
2089         const char *hardware_address;/* [charset(UTF16)] */
2090         const char *device_type;/* [charset(UTF16)] */
2091         uint32_t port_number;
2092         uint32_t snmp_enabled;
2093         uint32_t snmp_dev_index;
2094 }/* [public] */;
2095
2096 struct spoolss_PortData2 {
2097         const char *portname;/* [charset(UTF16)] */
2098         uint32_t version;/* [value(0x00000002)] */
2099         enum spoolss_PortProtocol protocol;
2100         uint32_t size;/* [value(sizeof(r))] */
2101         uint32_t reserved;
2102         const char *hostaddress;/* [charset(UTF16)] */
2103         const char *snmpcommunity;/* [charset(UTF16)] */
2104         uint32_t dblspool;
2105         const char *queue;/* [charset(UTF16)] */
2106         const char *device_type;/* [charset(UTF16)] */
2107         uint32_t port_number;
2108         uint32_t snmp_enabled;
2109         uint32_t snmp_dev_index;
2110         uint32_t port_monitor_mib_index;
2111 }/* [public] */;
2112
2113 struct spoolss_MonitorUi {
2114         const char * dll_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
2115 }/* [public] */;
2116
2117 /* bitmap spoolss_AddPrinterDriverExFlags */
2118 #define APD_STRICT_UPGRADE ( 0x00000001 )
2119 #define APD_STRICT_DOWNGRADE ( 0x00000002 )
2120 #define APD_COPY_ALL_FILES ( 0x00000004 )
2121 #define APD_COPY_NEW_FILES ( 0x00000008 )
2122 #define APD_COPY_FROM_DIRECTORY ( 0x00000010 )
2123 #define APD_DONT_COPY_FILES_TO_CLUSTER ( 0x00001000 )
2124 #define APD_COPY_TO_ALL_SPOOLERS ( 0x00002000 )
2125 #define APD_RETURN_BLOCKING_STATUS_CODE ( 0x00010000 )
2126
2127 struct spoolss_CorePrinterDriver {
2128         struct GUID core_driver_guid;
2129         NTTIME driver_date;
2130         uint64_t driver_version;
2131         const char *formname;/* [charset(UTF8)] */
2132 };
2133
2134
2135 struct _spoolss_EnumPrinters {
2136         struct {
2137                 uint32_t flags;
2138                 const char *server;/* [unique,charset(UTF16)] */
2139                 uint32_t level;
2140                 DATA_BLOB *buffer;/* [unique] */
2141                 uint32_t offered;
2142         } in;
2143
2144         struct {
2145                 DATA_BLOB *info;/* [unique] */
2146                 uint32_t *needed;/* [ref] */
2147                 uint32_t *count;/* [ref] */
2148                 WERROR result;
2149         } out;
2150
2151 };
2152
2153
2154 struct __spoolss_EnumPrinters {
2155         struct {
2156                 uint32_t level;
2157                 uint32_t count;
2158         } in;
2159
2160         struct {
2161                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
2162         } out;
2163
2164 };
2165
2166
2167 struct spoolss_EnumPrinters {
2168         struct {
2169                 uint32_t flags;
2170                 const char *server;/* [unique,charset(UTF16)] */
2171                 uint32_t level;
2172                 DATA_BLOB *buffer;/* [unique] */
2173                 uint32_t offered;
2174         } in;
2175
2176         struct {
2177                 uint32_t *count;/* [ref] */
2178                 union spoolss_PrinterInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2179                 uint32_t *needed;/* [ref] */
2180                 WERROR result;
2181         } out;
2182
2183 };
2184
2185
2186 struct spoolss_OpenPrinter {
2187         struct {
2188                 const char *printername;/* [unique,charset(UTF16)] */
2189                 const char *datatype;/* [unique,charset(UTF16)] */
2190                 struct spoolss_DevmodeContainer devmode_ctr;
2191                 uint32_t access_mask;
2192         } in;
2193
2194         struct {
2195                 struct policy_handle *handle;/* [ref] */
2196                 WERROR result;
2197         } out;
2198
2199 };
2200
2201
2202 struct spoolss_SetJob {
2203         struct {
2204                 struct policy_handle *handle;/* [ref] */
2205                 uint32_t job_id;
2206                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
2207                 enum spoolss_JobControl command;
2208         } in;
2209
2210         struct {
2211                 WERROR result;
2212         } out;
2213
2214 };
2215
2216
2217 struct spoolss_GetJob {
2218         struct {
2219                 struct policy_handle *handle;/* [ref] */
2220                 uint32_t job_id;
2221                 uint32_t level;
2222                 DATA_BLOB *buffer;/* [unique] */
2223                 uint32_t offered;
2224         } in;
2225
2226         struct {
2227                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2228                 uint32_t *needed;/* [ref] */
2229                 WERROR result;
2230         } out;
2231
2232 };
2233
2234
2235 struct _spoolss_EnumJobs {
2236         struct {
2237                 struct policy_handle *handle;/* [ref] */
2238                 uint32_t firstjob;
2239                 uint32_t numjobs;
2240                 uint32_t level;
2241                 DATA_BLOB *buffer;/* [unique] */
2242                 uint32_t offered;
2243         } in;
2244
2245         struct {
2246                 DATA_BLOB *info;/* [unique] */
2247                 uint32_t *needed;/* [ref] */
2248                 uint32_t *count;/* [ref] */
2249                 WERROR result;
2250         } out;
2251
2252 };
2253
2254
2255 struct __spoolss_EnumJobs {
2256         struct {
2257                 uint32_t level;
2258                 uint32_t count;
2259         } in;
2260
2261         struct {
2262                 union spoolss_JobInfo *info;/* [switch_is(level)] */
2263         } out;
2264
2265 };
2266
2267
2268 struct spoolss_EnumJobs {
2269         struct {
2270                 struct policy_handle *handle;/* [ref] */
2271                 uint32_t firstjob;
2272                 uint32_t numjobs;
2273                 uint32_t level;
2274                 DATA_BLOB *buffer;/* [unique] */
2275                 uint32_t offered;
2276         } in;
2277
2278         struct {
2279                 uint32_t *count;/* [ref] */
2280                 union spoolss_JobInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2281                 uint32_t *needed;/* [ref] */
2282                 WERROR result;
2283         } out;
2284
2285 };
2286
2287
2288 struct spoolss_AddPrinter {
2289         struct {
2290                 const char *server;/* [unique,charset(UTF16)] */
2291                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2292                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2293                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2294         } in;
2295
2296         struct {
2297                 struct policy_handle *handle;/* [ref] */
2298                 WERROR result;
2299         } out;
2300
2301 };
2302
2303
2304 struct spoolss_DeletePrinter {
2305         struct {
2306                 struct policy_handle *handle;/* [ref] */
2307         } in;
2308
2309         struct {
2310                 WERROR result;
2311         } out;
2312
2313 };
2314
2315
2316 struct spoolss_SetPrinter {
2317         struct {
2318                 struct policy_handle *handle;/* [ref] */
2319                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2320                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2321                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2322                 enum spoolss_PrinterControl command;
2323         } in;
2324
2325         struct {
2326                 WERROR result;
2327         } out;
2328
2329 };
2330
2331
2332 struct spoolss_GetPrinter {
2333         struct {
2334                 struct policy_handle *handle;/* [ref] */
2335                 uint32_t level;
2336                 DATA_BLOB *buffer;/* [unique] */
2337                 uint32_t offered;
2338         } in;
2339
2340         struct {
2341                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2342                 uint32_t *needed;/* [ref] */
2343                 WERROR result;
2344         } out;
2345
2346 };
2347
2348
2349 struct spoolss_AddPrinterDriver {
2350         struct {
2351                 const char *servername;/* [unique,charset(UTF16)] */
2352                 struct spoolss_AddDriverInfoCtr *info_ctr;/* [ref] */
2353         } in;
2354
2355         struct {
2356                 WERROR result;
2357         } out;
2358
2359 };
2360
2361
2362 struct _spoolss_EnumPrinterDrivers {
2363         struct {
2364                 const char *server;/* [unique,charset(UTF16)] */
2365                 const char *environment;/* [unique,charset(UTF16)] */
2366                 uint32_t level;
2367                 DATA_BLOB *buffer;/* [unique] */
2368                 uint32_t offered;
2369         } in;
2370
2371         struct {
2372                 DATA_BLOB *info;/* [unique] */
2373                 uint32_t *needed;/* [ref] */
2374                 uint32_t *count;/* [ref] */
2375                 WERROR result;
2376         } out;
2377
2378 };
2379
2380
2381 struct __spoolss_EnumPrinterDrivers {
2382         struct {
2383                 uint32_t level;
2384                 uint32_t count;
2385         } in;
2386
2387         struct {
2388                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
2389         } out;
2390
2391 };
2392
2393
2394 struct spoolss_EnumPrinterDrivers {
2395         struct {
2396                 const char *server;/* [unique,charset(UTF16)] */
2397                 const char *environment;/* [unique,charset(UTF16)] */
2398                 uint32_t level;
2399                 DATA_BLOB *buffer;/* [unique] */
2400                 uint32_t offered;
2401         } in;
2402
2403         struct {
2404                 uint32_t *count;/* [ref] */
2405                 union spoolss_DriverInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2406                 uint32_t *needed;/* [ref] */
2407                 WERROR result;
2408         } out;
2409
2410 };
2411
2412
2413 struct spoolss_GetPrinterDriver {
2414         struct {
2415                 struct policy_handle *handle;/* [ref] */
2416                 const char *architecture;/* [unique,charset(UTF16)] */
2417                 uint32_t level;
2418                 DATA_BLOB *buffer;/* [unique] */
2419                 uint32_t offered;
2420         } in;
2421
2422         struct {
2423                 union spoolss_DriverInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2424                 uint32_t *needed;/* [ref] */
2425                 WERROR result;
2426         } out;
2427
2428 };
2429
2430
2431 struct spoolss_GetPrinterDriverDirectory {
2432         struct {
2433                 const char *server;/* [unique,charset(UTF16)] */
2434                 const char *environment;/* [unique,charset(UTF16)] */
2435                 uint32_t level;
2436                 DATA_BLOB *buffer;/* [unique] */
2437                 uint32_t offered;
2438         } in;
2439
2440         struct {
2441                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2442                 uint32_t *needed;/* [ref] */
2443                 WERROR result;
2444         } out;
2445
2446 };
2447
2448
2449 struct spoolss_DeletePrinterDriver {
2450         struct {
2451                 const char *server;/* [unique,charset(UTF16)] */
2452                 const char *architecture;/* [charset(UTF16)] */
2453                 const char *driver;/* [charset(UTF16)] */
2454         } in;
2455
2456         struct {
2457                 WERROR result;
2458         } out;
2459
2460 };
2461
2462
2463 struct spoolss_AddPrintProcessor {
2464         struct {
2465                 const char *server;/* [unique,charset(UTF16)] */
2466                 const char *architecture;/* [charset(UTF16)] */
2467                 const char *path_name;/* [charset(UTF16)] */
2468                 const char *print_processor_name;/* [charset(UTF16)] */
2469         } in;
2470
2471         struct {
2472                 WERROR result;
2473         } out;
2474
2475 };
2476
2477
2478 struct _spoolss_EnumPrintProcessors {
2479         struct {
2480                 const char *servername;/* [unique,charset(UTF16)] */
2481                 const char *environment;/* [unique,charset(UTF16)] */
2482                 uint32_t level;
2483                 DATA_BLOB *buffer;/* [unique] */
2484                 uint32_t offered;
2485         } in;
2486
2487         struct {
2488                 DATA_BLOB *info;/* [unique] */
2489                 uint32_t *needed;/* [ref] */
2490                 uint32_t *count;/* [ref] */
2491                 WERROR result;
2492         } out;
2493
2494 };
2495
2496
2497 struct __spoolss_EnumPrintProcessors {
2498         struct {
2499                 uint32_t level;
2500                 uint32_t count;
2501         } in;
2502
2503         struct {
2504                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
2505         } out;
2506
2507 };
2508
2509
2510 struct spoolss_EnumPrintProcessors {
2511         struct {
2512                 const char *servername;/* [unique,charset(UTF16)] */
2513                 const char *environment;/* [unique,charset(UTF16)] */
2514                 uint32_t level;
2515                 DATA_BLOB *buffer;/* [unique] */
2516                 uint32_t offered;
2517         } in;
2518
2519         struct {
2520                 uint32_t *count;/* [ref] */
2521                 union spoolss_PrintProcessorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2522                 uint32_t *needed;/* [ref] */
2523                 WERROR result;
2524         } out;
2525
2526 };
2527
2528
2529 struct spoolss_GetPrintProcessorDirectory {
2530         struct {
2531                 const char *server;/* [unique,charset(UTF16)] */
2532                 const char *environment;/* [unique,charset(UTF16)] */
2533                 uint32_t level;
2534                 DATA_BLOB *buffer;/* [unique] */
2535                 uint32_t offered;
2536         } in;
2537
2538         struct {
2539                 union spoolss_PrintProcessorDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2540                 uint32_t *needed;/* [ref] */
2541                 WERROR result;
2542         } out;
2543
2544 };
2545
2546
2547 struct spoolss_StartDocPrinter {
2548         struct {
2549                 struct policy_handle *handle;/* [ref] */
2550                 uint32_t level;
2551                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
2552         } in;
2553
2554         struct {
2555                 uint32_t *job_id;/* [ref] */
2556                 WERROR result;
2557         } out;
2558
2559 };
2560
2561
2562 struct spoolss_StartPagePrinter {
2563         struct {
2564                 struct policy_handle *handle;/* [ref] */
2565         } in;
2566
2567         struct {
2568                 WERROR result;
2569         } out;
2570
2571 };
2572
2573
2574 struct spoolss_WritePrinter {
2575         struct {
2576                 struct policy_handle *handle;/* [ref] */
2577                 DATA_BLOB data;
2578                 uint32_t _data_size;/* [value(r->in.data.length)] */
2579         } in;
2580
2581         struct {
2582                 uint32_t *num_written;/* [ref] */
2583                 WERROR result;
2584         } out;
2585
2586 };
2587
2588
2589 struct spoolss_EndPagePrinter {
2590         struct {
2591                 struct policy_handle *handle;/* [ref] */
2592         } in;
2593
2594         struct {
2595                 WERROR result;
2596         } out;
2597
2598 };
2599
2600
2601 struct spoolss_AbortPrinter {
2602         struct {
2603                 struct policy_handle *handle;/* [ref] */
2604         } in;
2605
2606         struct {
2607                 WERROR result;
2608         } out;
2609
2610 };
2611
2612
2613 struct spoolss_ReadPrinter {
2614         struct {
2615                 struct policy_handle *handle;/* [ref] */
2616                 uint32_t data_size;
2617         } in;
2618
2619         struct {
2620                 uint8_t *data;/* [ref,size_is(data_size)] */
2621                 uint32_t *_data_size;/* [ref] */
2622                 WERROR result;
2623         } out;
2624
2625 };
2626
2627
2628 struct spoolss_EndDocPrinter {
2629         struct {
2630                 struct policy_handle *handle;/* [ref] */
2631         } in;
2632
2633         struct {
2634                 WERROR result;
2635         } out;
2636
2637 };
2638
2639
2640 struct spoolss_AddJob {
2641         struct {
2642                 struct policy_handle *handle;/* [ref] */
2643                 uint32_t level;
2644                 uint32_t offered;
2645                 uint8_t *buffer;/* [unique,size_is(offered)] */
2646         } in;
2647
2648         struct {
2649                 uint32_t *needed;/* [ref] */
2650                 uint8_t *buffer;/* [unique,size_is(offered)] */
2651                 WERROR result;
2652         } out;
2653
2654 };
2655
2656
2657 struct spoolss_ScheduleJob {
2658         struct {
2659                 struct policy_handle *handle;/* [ref] */
2660                 uint32_t jobid;
2661         } in;
2662
2663         struct {
2664                 WERROR result;
2665         } out;
2666
2667 };
2668
2669
2670 struct _spoolss_GetPrinterData {
2671         struct {
2672                 struct policy_handle *handle;/* [ref] */
2673                 const char *value_name;/* [charset(UTF16)] */
2674                 uint32_t offered;
2675         } in;
2676
2677         struct {
2678                 enum winreg_Type *type;/* [ref] */
2679                 DATA_BLOB *data;/* [ref] */
2680                 uint32_t *needed;/* [ref] */
2681                 WERROR result;
2682         } out;
2683
2684 };
2685
2686
2687 struct __spoolss_GetPrinterData {
2688         struct {
2689                 enum winreg_Type type;
2690         } in;
2691
2692         struct {
2693                 union spoolss_PrinterData *data;/* [ref,switch_is(type)] */
2694         } out;
2695
2696 };
2697
2698
2699 struct spoolss_GetPrinterData {
2700         struct {
2701                 struct policy_handle *handle;/* [ref] */
2702                 const char *value_name;/* [charset(UTF16)] */
2703                 uint32_t offered;
2704         } in;
2705
2706         struct {
2707                 enum winreg_Type *type;/* [ref] */
2708                 union spoolss_PrinterData *data;/* [subcontext_size(offered),ref,subcontext(4),switch_is(*type)] */
2709                 uint32_t *needed;/* [ref] */
2710                 WERROR result;
2711         } out;
2712
2713 };
2714
2715
2716 struct _spoolss_SetPrinterData {
2717         struct {
2718                 struct policy_handle *handle;/* [ref] */
2719                 const char *value_name;/* [charset(UTF16)] */
2720                 enum winreg_Type type;
2721                 DATA_BLOB data;
2722                 uint32_t _offered;
2723         } in;
2724
2725         struct {
2726                 WERROR result;
2727         } out;
2728
2729 };
2730
2731
2732 struct __spoolss_SetPrinterData {
2733         struct {
2734                 enum winreg_Type type;
2735         } in;
2736
2737         struct {
2738                 union spoolss_PrinterData *data;/* [ref,switch_is(type)] */
2739         } out;
2740
2741 };
2742
2743
2744 struct spoolss_SetPrinterData {
2745         struct {
2746                 struct policy_handle *handle;/* [ref] */
2747                 const char *value_name;/* [charset(UTF16)] */
2748                 enum winreg_Type type;
2749                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
2750                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
2751         } in;
2752
2753         struct {
2754                 WERROR result;
2755         } out;
2756
2757 };
2758
2759
2760 struct spoolss_WaitForPrinterChange {
2761         struct {
2762                 WERROR result;
2763         } out;
2764
2765 };
2766
2767
2768 struct spoolss_ClosePrinter {
2769         struct {
2770                 struct policy_handle *handle;/* [ref] */
2771         } in;
2772
2773         struct {
2774                 struct policy_handle *handle;/* [ref] */
2775                 WERROR result;
2776         } out;
2777
2778 };
2779
2780
2781 struct spoolss_AddForm {
2782         struct {
2783                 struct policy_handle *handle;/* [ref] */
2784                 uint32_t level;
2785                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
2786         } in;
2787
2788         struct {
2789                 WERROR result;
2790         } out;
2791
2792 };
2793
2794
2795 struct spoolss_DeleteForm {
2796         struct {
2797                 struct policy_handle *handle;/* [ref] */
2798                 const char *form_name;/* [charset(UTF16)] */
2799         } in;
2800
2801         struct {
2802                 WERROR result;
2803         } out;
2804
2805 };
2806
2807
2808 struct spoolss_GetForm {
2809         struct {
2810                 struct policy_handle *handle;/* [ref] */
2811                 const char *form_name;/* [charset(UTF16)] */
2812                 uint32_t level;
2813                 DATA_BLOB *buffer;/* [unique] */
2814                 uint32_t offered;
2815         } in;
2816
2817         struct {
2818                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2819                 uint32_t *needed;/* [ref] */
2820                 WERROR result;
2821         } out;
2822
2823 };
2824
2825
2826 struct spoolss_SetForm {
2827         struct {
2828                 struct policy_handle *handle;/* [ref] */
2829                 const char *form_name;/* [charset(UTF16)] */
2830                 uint32_t level;
2831                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
2832         } in;
2833
2834         struct {
2835                 WERROR result;
2836         } out;
2837
2838 };
2839
2840
2841 struct _spoolss_EnumForms {
2842         struct {
2843                 struct policy_handle *handle;/* [ref] */
2844                 uint32_t level;
2845                 DATA_BLOB *buffer;/* [unique] */
2846                 uint32_t offered;
2847         } in;
2848
2849         struct {
2850                 DATA_BLOB *info;/* [unique] */
2851                 uint32_t *needed;/* [ref] */
2852                 uint32_t *count;/* [ref] */
2853                 WERROR result;
2854         } out;
2855
2856 };
2857
2858
2859 struct __spoolss_EnumForms {
2860         struct {
2861                 uint32_t level;
2862                 uint32_t count;
2863         } in;
2864
2865         struct {
2866                 union spoolss_FormInfo *info;/* [switch_is(level)] */
2867         } out;
2868
2869 };
2870
2871
2872 struct spoolss_EnumForms {
2873         struct {
2874                 struct policy_handle *handle;/* [ref] */
2875                 uint32_t level;
2876                 DATA_BLOB *buffer;/* [unique] */
2877                 uint32_t offered;
2878         } in;
2879
2880         struct {
2881                 uint32_t *count;/* [ref] */
2882                 union spoolss_FormInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2883                 uint32_t *needed;/* [ref] */
2884                 WERROR result;
2885         } out;
2886
2887 };
2888
2889
2890 struct _spoolss_EnumPorts {
2891         struct {
2892                 const char *servername;/* [unique,charset(UTF16)] */
2893                 uint32_t level;
2894                 DATA_BLOB *buffer;/* [unique] */
2895                 uint32_t offered;
2896         } in;
2897
2898         struct {
2899                 DATA_BLOB *info;/* [unique] */
2900                 uint32_t *needed;/* [ref] */
2901                 uint32_t *count;/* [ref] */
2902                 WERROR result;
2903         } out;
2904
2905 };
2906
2907
2908 struct __spoolss_EnumPorts {
2909         struct {
2910                 uint32_t level;
2911                 uint32_t count;
2912         } in;
2913
2914         struct {
2915                 union spoolss_PortInfo *info;/* [switch_is(level)] */
2916         } out;
2917
2918 };
2919
2920
2921 struct spoolss_EnumPorts {
2922         struct {
2923                 const char *servername;/* [unique,charset(UTF16)] */
2924                 uint32_t level;
2925                 DATA_BLOB *buffer;/* [unique] */
2926                 uint32_t offered;
2927         } in;
2928
2929         struct {
2930                 uint32_t *count;/* [ref] */
2931                 union spoolss_PortInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2932                 uint32_t *needed;/* [ref] */
2933                 WERROR result;
2934         } out;
2935
2936 };
2937
2938
2939 struct _spoolss_EnumMonitors {
2940         struct {
2941                 const char *servername;/* [unique,charset(UTF16)] */
2942                 uint32_t level;
2943                 DATA_BLOB *buffer;/* [unique] */
2944                 uint32_t offered;
2945         } in;
2946
2947         struct {
2948                 DATA_BLOB *info;/* [unique] */
2949                 uint32_t *needed;/* [ref] */
2950                 uint32_t *count;/* [ref] */
2951                 WERROR result;
2952         } out;
2953
2954 };
2955
2956
2957 struct __spoolss_EnumMonitors {
2958         struct {
2959                 uint32_t level;
2960                 uint32_t count;
2961         } in;
2962
2963         struct {
2964                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
2965         } out;
2966
2967 };
2968
2969
2970 struct spoolss_EnumMonitors {
2971         struct {
2972                 const char *servername;/* [unique,charset(UTF16)] */
2973                 uint32_t level;
2974                 DATA_BLOB *buffer;/* [unique] */
2975                 uint32_t offered;
2976         } in;
2977
2978         struct {
2979                 uint32_t *count;/* [ref] */
2980                 union spoolss_MonitorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2981                 uint32_t *needed;/* [ref] */
2982                 WERROR result;
2983         } out;
2984
2985 };
2986
2987
2988 struct spoolss_AddPort {
2989         struct {
2990                 const char *server_name;/* [unique,charset(UTF16)] */
2991                 uint32_t unknown;
2992                 const char *monitor_name;/* [charset(UTF16)] */
2993         } in;
2994
2995         struct {
2996                 WERROR result;
2997         } out;
2998
2999 };
3000
3001
3002 struct spoolss_ConfigurePort {
3003         struct {
3004                 WERROR result;
3005         } out;
3006
3007 };
3008
3009
3010 struct spoolss_DeletePort {
3011         struct {
3012                 WERROR result;
3013         } out;
3014
3015 };
3016
3017
3018 struct spoolss_CreatePrinterIC {
3019         struct {
3020                 struct policy_handle *handle;/* [ref] */
3021                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
3022         } in;
3023
3024         struct {
3025                 struct policy_handle *gdi_handle;/* [ref] */
3026                 WERROR result;
3027         } out;
3028
3029 };
3030
3031
3032 struct spoolss_PlayGDIScriptOnPrinterIC {
3033         struct {
3034                 WERROR result;
3035         } out;
3036
3037 };
3038
3039
3040 struct spoolss_DeletePrinterIC {
3041         struct {
3042                 struct policy_handle *gdi_handle;/* [ref] */
3043         } in;
3044
3045         struct {
3046                 struct policy_handle *gdi_handle;/* [ref] */
3047                 WERROR result;
3048         } out;
3049
3050 };
3051
3052
3053 struct spoolss_AddPrinterConnection {
3054         struct {
3055                 WERROR result;
3056         } out;
3057
3058 };
3059
3060
3061 struct spoolss_DeletePrinterConnection {
3062         struct {
3063                 WERROR result;
3064         } out;
3065
3066 };
3067
3068
3069 struct spoolss_PrinterMessageBox {
3070         struct {
3071                 WERROR result;
3072         } out;
3073
3074 };
3075
3076
3077 struct spoolss_AddMonitor {
3078         struct {
3079                 WERROR result;
3080         } out;
3081
3082 };
3083
3084
3085 struct spoolss_DeleteMonitor {
3086         struct {
3087                 WERROR result;
3088         } out;
3089
3090 };
3091
3092
3093 struct spoolss_DeletePrintProcessor {
3094         struct {
3095                 WERROR result;
3096         } out;
3097
3098 };
3099
3100
3101 struct spoolss_AddPrintProvidor {
3102         struct {
3103                 WERROR result;
3104         } out;
3105
3106 };
3107
3108
3109 struct spoolss_DeletePrintProvidor {
3110         struct {
3111                 WERROR result;
3112         } out;
3113
3114 };
3115
3116
3117 struct _spoolss_EnumPrintProcDataTypes {
3118         struct {
3119                 const char *servername;/* [unique,charset(UTF16)] */
3120                 const char *print_processor_name;/* [unique,charset(UTF16)] */
3121                 uint32_t level;
3122                 DATA_BLOB *buffer;/* [unique] */
3123                 uint32_t offered;
3124         } in;
3125
3126         struct {
3127                 DATA_BLOB *info;/* [unique] */
3128                 uint32_t *needed;/* [ref] */
3129                 uint32_t *count;/* [ref] */
3130                 WERROR result;
3131         } out;
3132
3133 };
3134
3135
3136 struct __spoolss_EnumPrintProcDataTypes {
3137         struct {
3138                 uint32_t level;
3139                 uint32_t count;
3140         } in;
3141
3142         struct {
3143                 union spoolss_PrintProcDataTypesInfo *info;/* [switch_is(level)] */
3144         } out;
3145
3146 };
3147
3148
3149 struct spoolss_EnumPrintProcDataTypes {
3150         struct {
3151                 const char *servername;/* [unique,charset(UTF16)] */
3152                 const char *print_processor_name;/* [unique,charset(UTF16)] */
3153                 uint32_t level;
3154                 DATA_BLOB *buffer;/* [unique] */
3155                 uint32_t offered;
3156         } in;
3157
3158         struct {
3159                 uint32_t *count;/* [ref] */
3160                 union spoolss_PrintProcDataTypesInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
3161                 uint32_t *needed;/* [ref] */
3162                 WERROR result;
3163         } out;
3164
3165 };
3166
3167
3168 struct spoolss_ResetPrinter {
3169         struct {
3170                 struct policy_handle *handle;/* [ref] */
3171                 const char *data_type;/* [unique,charset(UTF16)] */
3172                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
3173         } in;
3174
3175         struct {
3176                 WERROR result;
3177         } out;
3178
3179 };
3180
3181
3182 struct spoolss_GetPrinterDriver2 {
3183         struct {
3184                 struct policy_handle *handle;/* [ref] */
3185                 const char *architecture;/* [unique,charset(UTF16)] */
3186                 uint32_t level;
3187                 DATA_BLOB *buffer;/* [unique] */
3188                 uint32_t offered;
3189                 uint32_t client_major_version;
3190                 uint32_t client_minor_version;
3191         } in;
3192
3193         struct {
3194                 union spoolss_DriverInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
3195                 uint32_t *needed;/* [ref] */
3196                 uint32_t *server_major_version;/* [ref] */
3197                 uint32_t *server_minor_version;/* [ref] */
3198                 WERROR result;
3199         } out;
3200
3201 };
3202
3203
3204 struct spoolss_FindFirstPrinterChangeNotification {
3205         struct {
3206                 WERROR result;
3207         } out;
3208
3209 };
3210
3211
3212 struct spoolss_FindNextPrinterChangeNotification {
3213         struct {
3214                 WERROR result;
3215         } out;
3216
3217 };
3218
3219
3220 struct spoolss_FindClosePrinterNotify {
3221         struct {
3222                 struct policy_handle *handle;/* [ref] */
3223         } in;
3224
3225         struct {
3226                 WERROR result;
3227         } out;
3228
3229 };
3230
3231
3232 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
3233         struct {
3234                 WERROR result;
3235         } out;
3236
3237 };
3238
3239
3240 struct spoolss_ReplyOpenPrinter {
3241         struct {
3242                 const char *server_name;/* [charset(UTF16)] */
3243                 uint32_t printer_local;
3244                 enum winreg_Type type;
3245                 uint32_t bufsize;/* [range(0,512)] */
3246                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
3247         } in;
3248
3249         struct {
3250                 struct policy_handle *handle;/* [ref] */
3251                 WERROR result;
3252         } out;
3253
3254 };
3255
3256
3257 struct spoolss_RouterReplyPrinter {
3258         struct {
3259                 struct policy_handle *handle;/* [ref] */
3260                 uint32_t flags;
3261                 uint32_t bufsize;/* [range(0,512)] */
3262                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
3263         } in;
3264
3265         struct {
3266                 WERROR result;
3267         } out;
3268
3269 };
3270
3271
3272 struct spoolss_ReplyClosePrinter {
3273         struct {
3274                 struct policy_handle *handle;/* [ref] */
3275         } in;
3276
3277         struct {
3278                 struct policy_handle *handle;/* [ref] */
3279                 WERROR result;
3280         } out;
3281
3282 };
3283
3284
3285 struct spoolss_AddPortEx {
3286         struct {
3287                 WERROR result;
3288         } out;
3289
3290 };
3291
3292
3293 struct spoolss_RouterFindFirstPrinterChangeNotification {
3294         struct {
3295                 WERROR result;
3296         } out;
3297
3298 };
3299
3300
3301 struct spoolss_SpoolerInit {
3302         struct {
3303                 WERROR result;
3304         } out;
3305
3306 };
3307
3308
3309 struct spoolss_ResetPrinterEx {
3310         struct {
3311                 WERROR result;
3312         } out;
3313
3314 };
3315
3316
3317 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
3318         struct {
3319                 struct policy_handle *handle;/* [ref] */
3320                 uint32_t flags;
3321                 uint32_t options;
3322                 const char *local_machine;/* [unique,charset(UTF16)] */
3323                 uint32_t printer_local;
3324                 struct spoolss_NotifyOption *notify_options;/* [unique] */
3325         } in;
3326
3327         struct {
3328                 WERROR result;
3329         } out;
3330
3331 };
3332
3333
3334 struct spoolss_RouterReplyPrinterEx {
3335         struct {
3336                 struct policy_handle *handle;/* [ref] */
3337                 uint32_t color;
3338                 uint32_t flags;
3339                 uint32_t reply_type;
3340                 union spoolss_ReplyPrinterInfo info;/* [switch_is(reply_type)] */
3341         } in;
3342
3343         struct {
3344                 uint32_t *reply_result;/* [ref] */
3345                 WERROR result;
3346         } out;
3347
3348 };
3349
3350
3351 struct spoolss_RouterRefreshPrinterChangeNotify {
3352         struct {
3353                 struct policy_handle *handle;/* [ref] */
3354                 uint32_t change_low;
3355                 struct spoolss_NotifyOption *options;/* [unique] */
3356         } in;
3357
3358         struct {
3359                 struct spoolss_NotifyInfo **info;/* [ref] */
3360                 WERROR result;
3361         } out;
3362
3363 };
3364
3365
3366 struct spoolss_44 {
3367         struct {
3368                 WERROR result;
3369         } out;
3370
3371 };
3372
3373
3374 struct spoolss_OpenPrinterEx {
3375         struct {
3376                 const char *printername;/* [unique,charset(UTF16)] */
3377                 const char *datatype;/* [unique,charset(UTF16)] */
3378                 struct spoolss_DevmodeContainer devmode_ctr;
3379                 uint32_t access_mask;
3380                 uint32_t level;
3381                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
3382         } in;
3383
3384         struct {
3385                 struct policy_handle *handle;/* [ref] */
3386                 WERROR result;
3387         } out;
3388
3389 };
3390
3391
3392 struct spoolss_AddPrinterEx {
3393         struct {
3394                 const char *server;/* [unique,charset(UTF16)] */
3395                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
3396                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
3397                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
3398                 struct spoolss_UserLevelCtr *userlevel_ctr;/* [ref] */
3399         } in;
3400
3401         struct {
3402                 struct policy_handle *handle;/* [ref] */
3403                 WERROR result;
3404         } out;
3405
3406 };
3407
3408
3409 struct spoolss_47 {
3410         struct {
3411                 WERROR result;
3412         } out;
3413
3414 };
3415
3416
3417 struct spoolss_EnumPrinterData {
3418         struct {
3419                 struct policy_handle *handle;/* [ref] */
3420                 uint32_t enum_index;
3421                 uint32_t value_offered;
3422                 uint32_t data_offered;
3423         } in;
3424
3425         struct {
3426                 const char *value_name;/* [charset(UTF16),size_is(value_offered/2)] */
3427                 uint32_t *value_needed;/* [ref] */
3428                 enum winreg_Type *type;/* [ref] */
3429                 uint8_t *data;/* [ref,flag(LIBNDR_PRINT_ARRAY_HEX),size_is(data_offered)] */
3430                 uint32_t *data_needed;/* [ref] */
3431                 WERROR result;
3432         } out;
3433
3434 };
3435
3436
3437 struct spoolss_DeletePrinterData {
3438         struct {
3439                 struct policy_handle *handle;/* [ref] */
3440                 const char *value_name;/* [charset(UTF16)] */
3441         } in;
3442
3443         struct {
3444                 WERROR result;
3445         } out;
3446
3447 };
3448
3449
3450 struct spoolss_4a {
3451         struct {
3452                 WERROR result;
3453         } out;
3454
3455 };
3456
3457
3458 struct spoolss_4b {
3459         struct {
3460                 WERROR result;
3461         } out;
3462
3463 };
3464
3465
3466 struct spoolss_4c {
3467         struct {
3468                 WERROR result;
3469         } out;
3470
3471 };
3472
3473
3474 struct _spoolss_SetPrinterDataEx {
3475         struct {
3476                 struct policy_handle *handle;/* [ref] */
3477                 const char *key_name;/* [charset(UTF16)] */
3478                 const char *value_name;/* [charset(UTF16)] */
3479                 enum winreg_Type type;
3480                 DATA_BLOB data;
3481                 uint32_t _offered;
3482         } in;
3483
3484         struct {
3485                 WERROR result;
3486         } out;
3487
3488 };
3489
3490
3491 struct __spoolss_SetPrinterDataEx {
3492         struct {
3493                 enum winreg_Type type;
3494         } in;
3495
3496         struct {
3497                 union spoolss_PrinterData *data;/* [ref,switch_is(type)] */
3498         } out;
3499
3500 };
3501
3502
3503 struct spoolss_SetPrinterDataEx {
3504         struct {
3505                 struct policy_handle *handle;/* [ref] */
3506                 const char *key_name;/* [charset(UTF16)] */
3507                 const char *value_name;/* [charset(UTF16)] */
3508                 enum winreg_Type type;
3509                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
3510                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
3511         } in;
3512
3513         struct {
3514                 WERROR result;
3515         } out;
3516
3517 };
3518
3519
3520 struct _spoolss_GetPrinterDataEx {
3521         struct {
3522                 struct policy_handle *handle;/* [ref] */
3523                 const char *key_name;/* [charset(UTF16)] */
3524                 const char *value_name;/* [charset(UTF16)] */
3525                 uint32_t offered;
3526         } in;
3527
3528         struct {
3529                 enum winreg_Type *type;/* [ref] */
3530                 DATA_BLOB *data;/* [ref] */
3531                 uint32_t *needed;/* [ref] */
3532                 WERROR result;
3533         } out;
3534
3535 };
3536
3537
3538 struct __spoolss_GetPrinterDataEx {
3539         struct {
3540                 enum winreg_Type type;
3541         } in;
3542
3543         struct {
3544                 union spoolss_PrinterData *data;/* [ref,switch_is(type)] */
3545         } out;
3546
3547 };
3548
3549
3550 struct spoolss_GetPrinterDataEx {
3551         struct {
3552                 struct policy_handle *handle;/* [ref] */
3553                 const char *key_name;/* [charset(UTF16)] */
3554                 const char *value_name;/* [charset(UTF16)] */
3555                 uint32_t offered;
3556         } in;
3557
3558         struct {
3559                 enum winreg_Type *type;/* [ref] */
3560                 union spoolss_PrinterData *data;/* [subcontext_size(offered),ref,subcontext(4),switch_is(*type)] */
3561                 uint32_t *needed;/* [ref] */
3562                 WERROR result;
3563         } out;
3564
3565 };
3566
3567
3568 struct _spoolss_EnumPrinterDataEx {
3569         struct {
3570                 struct policy_handle *handle;/* [ref] */
3571                 const char *key_name;/* [charset(UTF16)] */
3572                 uint32_t offered;
3573         } in;
3574
3575         struct {
3576                 DATA_BLOB info;
3577                 uint32_t *needed;/* [ref] */
3578                 uint32_t *count;/* [ref] */
3579                 WERROR result;
3580         } out;
3581
3582 };
3583
3584
3585 struct __spoolss_EnumPrinterDataEx {
3586         struct {
3587                 uint32_t count;
3588         } in;
3589
3590         struct {
3591                 struct spoolss_PrinterEnumValues *info;
3592         } out;
3593
3594 };
3595
3596
3597 struct spoolss_EnumPrinterDataEx {
3598         struct {
3599                 struct policy_handle *handle;/* [ref] */
3600                 const char *key_name;/* [charset(UTF16)] */
3601                 uint32_t offered;
3602         } in;
3603
3604         struct {
3605                 uint32_t *count;/* [ref] */
3606                 struct spoolss_PrinterEnumValues **info;/* [ref,size_is(,*count)] */
3607                 uint32_t *needed;/* [ref] */
3608                 WERROR result;
3609         } out;
3610
3611 };
3612
3613
3614 struct spoolss_EnumPrinterKey {
3615         struct {
3616                 struct policy_handle *handle;/* [ref] */
3617                 const char *key_name;/* [charset(UTF16)] */
3618                 uint32_t offered;
3619         } in;
3620
3621         struct {
3622                 uint32_t *_ndr_size;/* [ref] */
3623                 union spoolss_KeyNames *key_buffer;/* [subcontext_size(*_ndr_size*2),ref,subcontext(0),switch_is(*_ndr_size)] */
3624                 uint32_t *needed;/* [ref] */
3625                 WERROR result;
3626         } out;
3627
3628 };
3629
3630
3631 struct spoolss_DeletePrinterDataEx {
3632         struct {
3633                 struct policy_handle *handle;/* [ref] */
3634                 const char *key_name;/* [charset(UTF16)] */
3635                 const char *value_name;/* [charset(UTF16)] */
3636         } in;
3637
3638         struct {
3639                 WERROR result;
3640         } out;
3641
3642 };
3643
3644
3645 struct spoolss_DeletePrinterKey {
3646         struct {
3647                 struct policy_handle *handle;/* [ref] */
3648                 const char *key_name;/* [charset(UTF16)] */
3649         } in;
3650
3651         struct {
3652                 WERROR result;
3653         } out;
3654
3655 };
3656
3657
3658 struct spoolss_53 {
3659         struct {
3660                 WERROR result;
3661         } out;
3662
3663 };
3664
3665
3666 struct spoolss_DeletePrinterDriverEx {
3667         struct {
3668                 const char *server;/* [unique,charset(UTF16)] */
3669                 const char *architecture;/* [charset(UTF16)] */
3670                 const char *driver;/* [charset(UTF16)] */
3671                 uint32_t delete_flags;
3672                 uint32_t version;
3673         } in;
3674
3675         struct {
3676                 WERROR result;
3677         } out;
3678
3679 };
3680
3681
3682 struct spoolss_55 {
3683         struct {
3684                 WERROR result;
3685         } out;
3686
3687 };
3688
3689
3690 struct spoolss_56 {
3691         struct {
3692                 WERROR result;
3693         } out;
3694
3695 };
3696
3697
3698 struct spoolss_57 {
3699         struct {
3700                 WERROR result;
3701         } out;
3702
3703 };
3704
3705
3706 struct spoolss_XcvData {
3707         struct {
3708                 struct policy_handle *handle;/* [ref] */
3709                 const char *function_name;/* [charset(UTF16)] */
3710                 DATA_BLOB in_data;
3711                 uint32_t _in_data_length;/* [value(r->in.in_data.length)] */
3712                 uint32_t out_data_size;
3713                 uint32_t *status_code;/* [ref] */
3714         } in;
3715
3716         struct {
3717                 uint8_t *out_data;/* [ref,size_is(out_data_size)] */
3718                 uint32_t *needed;/* [ref] */
3719                 uint32_t *status_code;/* [ref] */
3720                 WERROR result;
3721         } out;
3722
3723 };
3724
3725
3726 struct spoolss_AddPrinterDriverEx {
3727         struct {
3728                 const char *servername;/* [unique,charset(UTF16)] */
3729                 struct spoolss_AddDriverInfoCtr *info_ctr;/* [ref] */
3730                 uint32_t flags;
3731         } in;
3732
3733         struct {
3734                 WERROR result;
3735         } out;
3736
3737 };
3738
3739
3740 struct spoolss_5a {
3741         struct {
3742                 WERROR result;
3743         } out;
3744
3745 };
3746
3747
3748 struct spoolss_5b {
3749         struct {
3750                 WERROR result;
3751         } out;
3752
3753 };
3754
3755
3756 struct spoolss_5c {
3757         struct {
3758                 WERROR result;
3759         } out;
3760
3761 };
3762
3763
3764 struct spoolss_5d {
3765         struct {
3766                 WERROR result;
3767         } out;
3768
3769 };
3770
3771
3772 struct spoolss_5e {
3773         struct {
3774                 WERROR result;
3775         } out;
3776
3777 };
3778
3779
3780 struct spoolss_5f {
3781         struct {
3782                 WERROR result;
3783         } out;
3784
3785 };
3786
3787
3788 struct spoolss_60 {
3789         struct {
3790                 WERROR result;
3791         } out;
3792
3793 };
3794
3795
3796 struct spoolss_61 {
3797         struct {
3798                 WERROR result;
3799         } out;
3800
3801 };
3802
3803
3804 struct spoolss_62 {
3805         struct {
3806                 WERROR result;
3807         } out;
3808
3809 };
3810
3811
3812 struct spoolss_63 {
3813         struct {
3814                 WERROR result;
3815         } out;
3816
3817 };
3818
3819
3820 struct spoolss_64 {
3821         struct {
3822                 WERROR result;
3823         } out;
3824
3825 };
3826
3827
3828 struct spoolss_65 {
3829         struct {
3830                 WERROR result;
3831         } out;
3832
3833 };
3834
3835
3836 struct spoolss_GetCorePrinterDrivers {
3837         struct {
3838                 const char *servername;/* [unique,charset(UTF16)] */
3839                 const char *architecture;/* [ref,charset(UTF16)] */
3840                 uint32_t core_driver_size;
3841                 const char *core_driver_dependencies;/* [ref,charset(UTF16),size_is(core_driver_size)] */
3842                 uint32_t core_printer_driver_count;
3843         } in;
3844
3845         struct {
3846                 struct spoolss_CorePrinterDriver *core_printer_drivers;/* [ref,size_is(core_printer_driver_count)] */
3847                 WERROR result;
3848         } out;
3849
3850 };
3851
3852
3853 struct spoolss_67 {
3854         struct {
3855                 WERROR result;
3856         } out;
3857
3858 };
3859
3860
3861 struct spoolss_GetPrinterDriverPackagePath {
3862         struct {
3863                 const char *servername;/* [unique,charset(UTF16)] */
3864                 const char *architecture;/* [ref,charset(UTF16)] */
3865                 const char *language;/* [unique,charset(UTF16)] */
3866                 const char *package_id;/* [ref,charset(UTF16)] */
3867                 uint32_t driver_package_cab_size;
3868                 const char *driver_package_cab;/* [unique,charset(UTF16),size_is(driver_package_cab_size)] */
3869         } in;
3870
3871         struct {
3872                 uint32_t *required;/* [ref] */
3873                 const char *driver_package_cab;/* [unique,charset(UTF16),size_is(driver_package_cab_size)] */
3874                 WERROR result;
3875         } out;
3876
3877 };
3878
3879
3880 struct spoolss_69 {
3881         struct {
3882                 WERROR result;
3883         } out;
3884
3885 };
3886
3887
3888 struct spoolss_6a {
3889         struct {
3890                 WERROR result;
3891         } out;
3892
3893 };
3894
3895
3896 struct spoolss_6b {
3897         struct {
3898                 WERROR result;
3899         } out;
3900
3901 };
3902
3903
3904 struct spoolss_6c {
3905         struct {
3906                 WERROR result;
3907         } out;
3908
3909 };
3910
3911
3912 struct spoolss_6d {
3913         struct {
3914                 WERROR result;
3915         } out;
3916
3917 };
3918
3919 #endif /* _HEADER_spoolss */