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