spoolss: hand-marshall the spoolss_StringArray2 struct for spoolss_EnumPrinterKey.
[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_StringArray2 {
1210         uint32_t _ndr_size;/* [value((ndr_size_spoolss_StringArray2(r,ndr->iconv_convenience,ndr->flags)-4)/2)] */
1211         const char ** string;/* [subcontext_size(_ndr_size*2),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
1212 }/* [nopush,public,nopull] */;
1213
1214 struct spoolss_AddDriverInfo1 {
1215         const char *driver_name;/* [unique,charset(UTF16)] */
1216 };
1217
1218 enum spoolss_DriverOSVersion
1219 #ifndef USE_UINT_ENUMS
1220  {
1221         SPOOLSS_DRIVER_VERSION_9X=(int)(0),
1222         SPOOLSS_DRIVER_VERSION_NT35=(int)(1),
1223         SPOOLSS_DRIVER_VERSION_NT4=(int)(2),
1224         SPOOLSS_DRIVER_VERSION_200X=(int)(3)
1225 }
1226 #else
1227  { __donnot_use_enum_spoolss_DriverOSVersion=0x7FFFFFFF}
1228 #define SPOOLSS_DRIVER_VERSION_9X ( 0 )
1229 #define SPOOLSS_DRIVER_VERSION_NT35 ( 1 )
1230 #define SPOOLSS_DRIVER_VERSION_NT4 ( 2 )
1231 #define SPOOLSS_DRIVER_VERSION_200X ( 3 )
1232 #endif
1233 ;
1234
1235 struct spoolss_AddDriverInfo2 {
1236         enum spoolss_DriverOSVersion version;
1237         const char *driver_name;/* [unique,charset(UTF16)] */
1238         const char *architecture;/* [unique,charset(UTF16)] */
1239         const char *driver_path;/* [unique,charset(UTF16)] */
1240         const char *data_file;/* [unique,charset(UTF16)] */
1241         const char *config_file;/* [unique,charset(UTF16)] */
1242 };
1243
1244 struct spoolss_AddDriverInfo3 {
1245         enum spoolss_DriverOSVersion version;
1246         const char *driver_name;/* [unique,charset(UTF16)] */
1247         const char *architecture;/* [unique,charset(UTF16)] */
1248         const char *driver_path;/* [unique,charset(UTF16)] */
1249         const char *data_file;/* [unique,charset(UTF16)] */
1250         const char *config_file;/* [unique,charset(UTF16)] */
1251         const char *help_file;/* [unique,charset(UTF16)] */
1252         const char *monitor_name;/* [unique,charset(UTF16)] */
1253         const char *default_datatype;/* [unique,charset(UTF16)] */
1254         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1255         struct spoolss_StringArray *dependent_files;/* [unique] */
1256 };
1257
1258 struct spoolss_AddDriverInfo4 {
1259         enum spoolss_DriverOSVersion version;
1260         const char *driver_name;/* [unique,charset(UTF16)] */
1261         const char *architecture;/* [unique,charset(UTF16)] */
1262         const char *driver_path;/* [unique,charset(UTF16)] */
1263         const char *data_file;/* [unique,charset(UTF16)] */
1264         const char *config_file;/* [unique,charset(UTF16)] */
1265         const char *help_file;/* [unique,charset(UTF16)] */
1266         const char *monitor_name;/* [unique,charset(UTF16)] */
1267         const char *default_datatype;/* [unique,charset(UTF16)] */
1268         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1269         struct spoolss_StringArray *dependent_files;/* [unique] */
1270         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1271         struct spoolss_StringArray *previous_names;/* [unique] */
1272 };
1273
1274 /* bitmap spoolss_DriverAttributes */
1275 #define PRINTER_DRIVER_PACKAGE_AWARE ( 0x00000002 )
1276
1277 struct spoolss_AddDriverInfo5 {
1278         enum spoolss_DriverOSVersion version;
1279         const char *driver_name;/* [unique,charset(UTF16)] */
1280         const char *architecture;/* [unique,charset(UTF16)] */
1281         const char *driver_path;/* [unique,charset(UTF16)] */
1282         const char *data_file;/* [unique,charset(UTF16)] */
1283         const char *config_file;/* [unique,charset(UTF16)] */
1284         uint32_t driver_attributes;
1285         uint32_t config_version;
1286         uint32_t driver_version;
1287 };
1288
1289 struct spoolss_AddDriverInfo6 {
1290         enum spoolss_DriverOSVersion version;
1291         const char *driver_name;/* [unique,charset(UTF16)] */
1292         const char *architecture;/* [unique,charset(UTF16)] */
1293         const char *driver_path;/* [unique,charset(UTF16)] */
1294         const char *data_file;/* [unique,charset(UTF16)] */
1295         const char *config_file;/* [unique,charset(UTF16)] */
1296         const char *help_file;/* [unique,charset(UTF16)] */
1297         const char *monitor_name;/* [unique,charset(UTF16)] */
1298         const char *default_datatype;/* [unique,charset(UTF16)] */
1299         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1300         struct spoolss_StringArray *dependent_files;/* [unique] */
1301         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1302         struct spoolss_StringArray *previous_names;/* [unique] */
1303         NTTIME driver_date;
1304         uint64_t driver_version;
1305         const char *manufacturer_name;/* [unique,charset(UTF16)] */
1306         const char *manufacturer_url;/* [unique,charset(UTF16)] */
1307         const char *hardware_id;/* [unique,charset(UTF16)] */
1308         const char *provider;/* [unique,charset(UTF16)] */
1309 };
1310
1311 struct spoolss_AddDriverInfo8 {
1312         enum spoolss_DriverOSVersion version;
1313         const char *driver_name;/* [unique,charset(UTF16)] */
1314         const char *architecture;/* [unique,charset(UTF16)] */
1315         const char *driver_path;/* [unique,charset(UTF16)] */
1316         const char *data_file;/* [unique,charset(UTF16)] */
1317         const char *config_file;/* [unique,charset(UTF16)] */
1318         const char *help_file;/* [unique,charset(UTF16)] */
1319         const char *monitor_name;/* [unique,charset(UTF16)] */
1320         const char *default_datatype;/* [unique,charset(UTF16)] */
1321         uint32_t _ndr_size_dependent_files;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1322         struct spoolss_StringArray *dependent_files;/* [unique] */
1323         uint32_t _ndr_size_previous_names;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1324         struct spoolss_StringArray *previous_names;/* [unique] */
1325         NTTIME driver_date;
1326         uint64_t driver_version;
1327         const char *manufacturer_name;/* [unique,charset(UTF16)] */
1328         const char *manufacturer_url;/* [unique,charset(UTF16)] */
1329         const char *hardware_id;/* [unique,charset(UTF16)] */
1330         const char *provider;/* [unique,charset(UTF16)] */
1331         const char *print_processor;/* [unique,charset(UTF16)] */
1332         const char *vendor_setup;/* [unique,charset(UTF16)] */
1333         uint32_t _ndr_size_color_profiles;/* [value(((ndr_size_spoolss_StringArray(color_profiles,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1334         struct spoolss_StringArray *color_profiles;/* [unique] */
1335         const char *inf_path;/* [unique,charset(UTF16)] */
1336         uint32_t printer_driver_attributes;
1337         uint32_t _ndr_size_core_driver_dependencies;/* [value(((ndr_size_spoolss_StringArray(core_driver_dependencies,ndr->iconv_convenience,ndr->flags)-4)/2))] */
1338         struct spoolss_StringArray *core_driver_dependencies;/* [unique] */
1339         NTTIME min_inbox_driver_ver_date;
1340         uint64_t min_inbox_driver_ver_version;
1341 };
1342
1343 union spoolss_AddDriverInfo {
1344         struct spoolss_AddDriverInfo1 *info1;/* [unique,case] */
1345         struct spoolss_AddDriverInfo2 *info2;/* [unique,case(2)] */
1346         struct spoolss_AddDriverInfo3 *info3;/* [unique,case(3)] */
1347         struct spoolss_AddDriverInfo4 *info4;/* [unique,case(4)] */
1348         struct spoolss_AddDriverInfo6 *info6;/* [unique,case(6)] */
1349         struct spoolss_AddDriverInfo8 *info8;/* [unique,case(8)] */
1350 }/* [switch_type(uint32)] */;
1351
1352 struct spoolss_AddDriverInfoCtr {
1353         uint32_t level;
1354         union spoolss_AddDriverInfo info;/* [switch_is(level)] */
1355 };
1356
1357 struct spoolss_DriverInfo1 {
1358         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1359 }/* [gensize,public] */;
1360
1361 struct spoolss_DriverInfo2 {
1362         enum spoolss_DriverOSVersion version;
1363         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1364         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1365         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1366         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1367         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1368 }/* [gensize,public] */;
1369
1370 struct spoolss_DriverInfo3 {
1371         enum spoolss_DriverOSVersion version;
1372         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1373         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1374         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1375         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1376         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1377         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1378         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1379         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1380         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1381 }/* [gensize,public] */;
1382
1383 struct spoolss_DriverInfo4 {
1384         enum spoolss_DriverOSVersion version;
1385         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1386         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1387         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1388         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1389         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1390         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1391         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1392         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1393         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1394         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1395 }/* [gensize,public] */;
1396
1397 struct spoolss_DriverInfo5 {
1398         enum spoolss_DriverOSVersion version;
1399         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1400         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1401         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1402         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1403         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1404         uint32_t driver_attributes;
1405         uint32_t config_version;
1406         uint32_t driver_version;
1407 }/* [gensize,public] */;
1408
1409 struct spoolss_DriverInfo6 {
1410         enum spoolss_DriverOSVersion version;
1411         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1412         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1413         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1414         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1415         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1416         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1417         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1418         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1419         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1420         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1421         NTTIME driver_date;
1422         uint64_t driver_version;
1423         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1424         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1425         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1426         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1427 }/* [gensize,public] */;
1428
1429 struct spoolss_DriverInfo8 {
1430         enum spoolss_DriverOSVersion version;
1431         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1432         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1433         const char * driver_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1434         const char * data_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1435         const char * config_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1436         const char * help_file;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1437         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1438         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1439         const char ** dependent_files;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1440         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1441         NTTIME driver_date;
1442         uint64_t driver_version;
1443         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1444         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1445         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1446         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1447         const char * print_processor;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1448         const char * vendor_setup;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1449         const char ** color_profiles;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1450         const char * inf_path;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1451         uint32_t printer_driver_attributes;
1452         const char ** core_driver_dependencies;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1453         NTTIME min_inbox_driver_ver_date;
1454         uint64_t min_inbox_driver_ver_version;
1455 }/* [gensize,public] */;
1456
1457 enum spoolss_DriverFileType
1458 #ifndef USE_UINT_ENUMS
1459  {
1460         SPOOLSS_DRIVER_FILE_TYPE_RENDERING=(int)(0x00000000),
1461         SPOOLSS_DRIVER_FILE_TYPE_CONFIGURATION=(int)(0x00000001),
1462         SPOOLSS_DRIVER_FILE_TYPE_DATA=(int)(0x00000002),
1463         SPOOLSS_DRIVER_FILE_TYPE_HELP=(int)(0x00000003),
1464         SPOOLSS_DRIVER_FILE_TYPE_OTHER=(int)(0x00000004)
1465 }
1466 #else
1467  { __donnot_use_enum_spoolss_DriverFileType=0x7FFFFFFF}
1468 #define SPOOLSS_DRIVER_FILE_TYPE_RENDERING ( 0x00000000 )
1469 #define SPOOLSS_DRIVER_FILE_TYPE_CONFIGURATION ( 0x00000001 )
1470 #define SPOOLSS_DRIVER_FILE_TYPE_DATA ( 0x00000002 )
1471 #define SPOOLSS_DRIVER_FILE_TYPE_HELP ( 0x00000003 )
1472 #define SPOOLSS_DRIVER_FILE_TYPE_OTHER ( 0x00000004 )
1473 #endif
1474 ;
1475
1476 struct spoolss_DriverFileInfo {
1477         const char * file_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1478         enum spoolss_DriverFileType file_type;
1479         uint32_t file_version;
1480 }/* [public] */;
1481
1482 struct spoolss_DriverInfo101 {
1483         enum spoolss_DriverOSVersion version;
1484         const char * driver_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1485         const char * architecture;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1486         struct spoolss_DriverFileInfo *file_info;/* [relative,size_is(file_count)] */
1487         uint32_t file_count;
1488         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1489         const char * default_datatype;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1490         const char ** previous_names;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1491         NTTIME driver_date;
1492         uint64_t driver_version;
1493         const char * manufacturer_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1494         const char * manufacturer_url;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1495         const char * hardware_id;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1496         const char * provider;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1497 }/* [gensize,nopush,public,nopull] */;
1498
1499 union spoolss_DriverInfo {
1500         struct spoolss_DriverInfo1 info1;/* [case] */
1501         struct spoolss_DriverInfo2 info2;/* [case(2)] */
1502         struct spoolss_DriverInfo3 info3;/* [case(3)] */
1503         struct spoolss_DriverInfo4 info4;/* [case(4)] */
1504         struct spoolss_DriverInfo5 info5;/* [case(5)] */
1505         struct spoolss_DriverInfo6 info6;/* [case(6)] */
1506         struct spoolss_DriverInfo8 info8;/* [case(8)] */
1507         struct spoolss_DriverInfo101 info101;/* [case(101)] */
1508 }/* [relative_base,gensize,public,nodiscriminant] */;
1509
1510 struct spoolss_DriverDirectoryInfo1 {
1511         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1512 }/* [gensize,public] */;
1513
1514 union spoolss_DriverDirectoryInfo {
1515         struct spoolss_DriverDirectoryInfo1 info1;/* [case] */
1516 }/* [gensize,relative_base,nodiscriminant,public] */;
1517
1518 struct spoolss_PrintProcessorInfo1 {
1519         const char * print_processor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1520 }/* [gensize,public] */;
1521
1522 union spoolss_PrintProcessorInfo {
1523         struct spoolss_PrintProcessorInfo1 info1;/* [case] */
1524 }/* [relative_base,nodiscriminant,public] */;
1525
1526 struct spoolss_PrintProcessorDirectoryInfo1 {
1527         const char * directory_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1528 }/* [gensize,public] */;
1529
1530 union spoolss_PrintProcessorDirectoryInfo {
1531         struct spoolss_PrintProcessorDirectoryInfo1 info1;/* [case] */
1532 }/* [gensize,relative_base,nodiscriminant,public] */;
1533
1534 struct spoolss_DocumentInfo1 {
1535         const char *document_name;/* [unique,charset(UTF16)] */
1536         const char *output_file;/* [unique,charset(UTF16)] */
1537         const char *datatype;/* [unique,charset(UTF16)] */
1538 };
1539
1540 union spoolss_DocumentInfo {
1541         struct spoolss_DocumentInfo1 *info1;/* [unique,case] */
1542 }/* [switch_type(uint32)] */;
1543
1544 struct spoolss_OSVersion {
1545         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersion(r,ndr->iconv_convenience,ndr->flags))] */
1546         uint32_t major;
1547         uint32_t minor;
1548         uint32_t build;
1549         uint32_t platform_id;/* [value(2)] */
1550         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
1551 }/* [gensize,public] */;
1552
1553 struct spoolss_OSVersionEx {
1554         uint32_t _ndr_size;/* [value(ndr_size_spoolss_OSVersionEx(r,ndr->iconv_convenience,ndr->flags))] */
1555         uint32_t major;
1556         uint32_t minor;
1557         uint32_t build;
1558         uint32_t platform_id;/* [value(2)] */
1559         const char * extra_string;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
1560         uint16_t service_pack_major;
1561         uint16_t service_pack_minor;
1562         uint16_t suite_mask;
1563         uint8_t product_type;
1564         uint8_t reserved;
1565 }/* [gensize,public] */;
1566
1567 union spoolss_PrinterData {
1568         const char * string;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(REG_SZ)] */
1569         DATA_BLOB binary;/* [flag(LIBNDR_FLAG_REMAINING),case(REG_BINARY)] */
1570         uint32_t value;/* [case(REG_DWORD)] */
1571         const char ** string_array;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(REG_MULTI_SZ)] */
1572         DATA_BLOB data;/* [flag(LIBNDR_FLAG_REMAINING),default] */
1573 }/* [gensize,public,nodiscriminant] */;
1574
1575 enum spoolss_FormFlags
1576 #ifndef USE_UINT_ENUMS
1577  {
1578         SPOOLSS_FORM_USER=(int)(0),
1579         SPOOLSS_FORM_BUILTIN=(int)(1),
1580         SPOOLSS_FORM_PRINTER=(int)(2)
1581 }
1582 #else
1583  { __donnot_use_enum_spoolss_FormFlags=0x7FFFFFFF}
1584 #define SPOOLSS_FORM_USER ( 0 )
1585 #define SPOOLSS_FORM_BUILTIN ( 1 )
1586 #define SPOOLSS_FORM_PRINTER ( 2 )
1587 #endif
1588 ;
1589
1590 struct spoolss_FormSize {
1591         uint32_t width;
1592         uint32_t height;
1593 };
1594
1595 struct spoolss_FormArea {
1596         uint32_t left;
1597         uint32_t top;
1598         uint32_t right;
1599         uint32_t bottom;
1600 };
1601
1602 struct spoolss_FormInfo1 {
1603         enum spoolss_FormFlags flags;
1604         const char * form_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1605         struct spoolss_FormSize size;
1606         struct spoolss_FormArea area;
1607 }/* [gensize,public] */;
1608
1609 /* bitmap spoolss_FormStringType */
1610 #define SPOOLSS_FORM_STRING_TYPE_NONE ( 0x00000001 )
1611 #define SPOOLSS_FORM_STRING_TYPE_MUI_DLL ( 0x00000002 )
1612 #define SPOOLSS_FORM_STRING_TYPE_LANG_PAIR ( 0x00000004 )
1613
1614 struct spoolss_FormInfo2 {
1615         enum spoolss_FormFlags flags;
1616         const char * form_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1617         struct spoolss_FormSize size;
1618         struct spoolss_FormArea area;
1619         const char * keyword;/* [relative,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
1620         uint32_t string_type;
1621         const char * mui_dll;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1622         uint32_t ressource_id;
1623         const char * display_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1624         uint32_t lang_id;
1625 }/* [gensize,public] */;
1626
1627 union spoolss_FormInfo {
1628         struct spoolss_FormInfo1 info1;/* [case] */
1629         struct spoolss_FormInfo2 info2;/* [case(2)] */
1630 }/* [relative_base,gensize,public,nodiscriminant] */;
1631
1632 struct spoolss_AddFormInfo1 {
1633         enum spoolss_FormFlags flags;
1634         const char *form_name;/* [unique,charset(UTF16)] */
1635         struct spoolss_FormSize size;
1636         struct spoolss_FormArea area;
1637 };
1638
1639 struct spoolss_AddFormInfo2 {
1640         enum spoolss_FormFlags flags;
1641         const char *form_name;/* [unique,charset(UTF16)] */
1642         struct spoolss_FormSize size;
1643         struct spoolss_FormArea area;
1644         const char *keyword;/* [unique,charset(DOS)] */
1645         uint32_t string_type;
1646         const char *mui_dll;/* [unique,charset(UTF16)] */
1647         uint32_t ressource_id;
1648         const char *display_name;/* [unique,charset(UTF16)] */
1649         uint32_t lang_id;
1650 };
1651
1652 union spoolss_AddFormInfo {
1653         struct spoolss_AddFormInfo1 *info1;/* [unique,case] */
1654         struct spoolss_AddFormInfo2 *info2;/* [unique,case(2)] */
1655 }/* [switch_type(uint32)] */;
1656
1657 struct spoolss_PortInfo1 {
1658         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1659 }/* [gensize,public] */;
1660
1661 /* bitmap spoolss_PortType */
1662 #define SPOOLSS_PORT_TYPE_WRITE ( 0x00000001 )
1663 #define SPOOLSS_PORT_TYPE_READ ( 0x00000002 )
1664 #define SPOOLSS_PORT_TYPE_REDIRECTED ( 0x00000004 )
1665 #define SPOOLSS_PORT_TYPE_NET_ATTACHED ( 0x00000008 )
1666
1667 struct spoolss_PortInfo2 {
1668         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1669         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1670         const char * description;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1671         uint32_t port_type;
1672         uint32_t reserved;
1673 }/* [gensize,public] */;
1674
1675 enum spoolss_PortStatus
1676 #ifndef USE_UINT_ENUMS
1677  {
1678         PORT_STATUS_CLEAR=(int)(0x00000000),
1679         PORT_STATUS_OFFLINE=(int)(0x00000001),
1680         PORT_STATUS_PAPER_JAM=(int)(0x00000002),
1681         PORT_STATUS_PAPER_OUT=(int)(0x00000003),
1682         PORT_STATUS_OUTPUT_BIN_FULL=(int)(0x00000004),
1683         PORT_STATUS_PAPER_PROBLEM=(int)(0x00000005),
1684         PORT_STATUS_NO_TONER=(int)(0x00000006),
1685         PORT_STATUS_DOOR_OPEN=(int)(0x00000007),
1686         PORT_STATUS_USER_INTERVENTION=(int)(0x00000008),
1687         PORT_STATUS_OUT_OF_MEMORY=(int)(0x00000009),
1688         PORT_STATUS_TONER_LOW=(int)(0x0000000A),
1689         PORT_STATUS_WARMING_UP=(int)(0x0000000B),
1690         PORT_STATUS_POWER_SAVE=(int)(0x0000000C)
1691 }
1692 #else
1693  { __donnot_use_enum_spoolss_PortStatus=0x7FFFFFFF}
1694 #define PORT_STATUS_CLEAR ( 0x00000000 )
1695 #define PORT_STATUS_OFFLINE ( 0x00000001 )
1696 #define PORT_STATUS_PAPER_JAM ( 0x00000002 )
1697 #define PORT_STATUS_PAPER_OUT ( 0x00000003 )
1698 #define PORT_STATUS_OUTPUT_BIN_FULL ( 0x00000004 )
1699 #define PORT_STATUS_PAPER_PROBLEM ( 0x00000005 )
1700 #define PORT_STATUS_NO_TONER ( 0x00000006 )
1701 #define PORT_STATUS_DOOR_OPEN ( 0x00000007 )
1702 #define PORT_STATUS_USER_INTERVENTION ( 0x00000008 )
1703 #define PORT_STATUS_OUT_OF_MEMORY ( 0x00000009 )
1704 #define PORT_STATUS_TONER_LOW ( 0x0000000A )
1705 #define PORT_STATUS_WARMING_UP ( 0x0000000B )
1706 #define PORT_STATUS_POWER_SAVE ( 0x0000000C )
1707 #endif
1708 ;
1709
1710 enum spoolss_PortSeverity
1711 #ifndef USE_UINT_ENUMS
1712  {
1713         PORT_STATUS_TYPE_ERROR=(int)(0x00000001),
1714         PORT_STATUS_TYPE_WARNING=(int)(0x00000002),
1715         PORT_STATUS_TYPE_INFO=(int)(0x00000003)
1716 }
1717 #else
1718  { __donnot_use_enum_spoolss_PortSeverity=0x7FFFFFFF}
1719 #define PORT_STATUS_TYPE_ERROR ( 0x00000001 )
1720 #define PORT_STATUS_TYPE_WARNING ( 0x00000002 )
1721 #define PORT_STATUS_TYPE_INFO ( 0x00000003 )
1722 #endif
1723 ;
1724
1725 struct spoolss_PortInfo3 {
1726         enum spoolss_PortStatus status;
1727         const char * status_string;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1728         enum spoolss_PortSeverity severity;
1729 }/* [gensize,public] */;
1730
1731 struct spoolss_PortInfoFF {
1732         const char * port_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1733         DATA_BLOB monitor_data;
1734 }/* [gensize,public] */;
1735
1736 union spoolss_PortInfo {
1737         struct spoolss_PortInfo1 info1;/* [case] */
1738         struct spoolss_PortInfo2 info2;/* [case(2)] */
1739         struct spoolss_PortInfo3 info3;/* [case(3)] */
1740         struct spoolss_PortInfoFF infoFF;/* [case(0xff)] */
1741 }/* [relative_base,nodiscriminant,public] */;
1742
1743 struct spoolss_MonitorInfo1 {
1744         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1745 }/* [gensize,public] */;
1746
1747 struct spoolss_MonitorInfo2 {
1748         const char * monitor_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1749         const char * environment;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1750         const char * dll_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1751 }/* [gensize,public] */;
1752
1753 union spoolss_MonitorInfo {
1754         struct spoolss_MonitorInfo1 info1;/* [case] */
1755         struct spoolss_MonitorInfo2 info2;/* [case(2)] */
1756 }/* [relative_base,nodiscriminant,public] */;
1757
1758 struct spoolss_PrintProcDataTypesInfo1 {
1759         const char * name_array;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1760 }/* [gensize,public] */;
1761
1762 union spoolss_PrintProcDataTypesInfo {
1763         struct spoolss_PrintProcDataTypesInfo1 info1;/* [case] */
1764 }/* [relative_base,nodiscriminant,public] */;
1765
1766 /* bitmap spoolss_PrinterChangeFlags */
1767 #define PRINTER_CHANGE_ADD_PRINTER ( 0x00000001 )
1768 #define PRINTER_CHANGE_SET_PRINTER ( 0x00000002 )
1769 #define PRINTER_CHANGE_DELETE_PRINTER ( 0x00000004 )
1770 #define PRINTER_CHANGE_FAILED_CONNECTION_PRINTER ( 0x00000008 )
1771 #define PRINTER_CHANGE_ADD_JOB ( 0x00000100 )
1772 #define PRINTER_CHANGE_SET_JOB ( 0x00000200 )
1773 #define PRINTER_CHANGE_DELETE_JOB ( 0x00000400 )
1774 #define PRINTER_CHANGE_WRITE_JOB ( 0x00000800 )
1775 #define PRINTER_CHANGE_ADD_FORM ( 0x00010000 )
1776 #define PRINTER_CHANGE_SET_FORM ( 0x00020000 )
1777 #define PRINTER_CHANGE_DELETE_FORM ( 0x00040000 )
1778 #define PRINTER_CHANGE_ADD_PORT ( 0x00100000 )
1779 #define PRINTER_CHANGE_CONFIGURE_PORT ( 0x00200000 )
1780 #define PRINTER_CHANGE_DELETE_PORT ( 0x00400000 )
1781 #define PRINTER_CHANGE_ADD_PRINT_PROCESSOR ( 0x01000000 )
1782 #define PRINTER_CHANGE_DELETE_PRINT_PROCESSOR ( 0x04000000 )
1783 #define PRINTER_CHANGE_SERVER ( 0x08000000 )
1784 #define PRINTER_CHANGE_ADD_PRINTER_DRIVER ( 0x10000000 )
1785 #define PRINTER_CHANGE_SET_PRINTER_DRIVER ( 0x20000000 )
1786 #define PRINTER_CHANGE_DELETE_PRINTER_DRIVER ( 0x40000000 )
1787 #define PRINTER_CHANGE_TIMEOUT ( 0x80000000 )
1788
1789 enum spoolss_JobNotifyField
1790 #ifndef USE_UINT_ENUMS
1791  {
1792         JOB_NOTIFY_FIELD_PRINTER_NAME=(int)(0x00),
1793         JOB_NOTIFY_FIELD_MACHINE_NAME=(int)(0x01),
1794         JOB_NOTIFY_FIELD_PORT_NAME=(int)(0x02),
1795         JOB_NOTIFY_FIELD_USER_NAME=(int)(0x03),
1796         JOB_NOTIFY_FIELD_NOTIFY_NAME=(int)(0x04),
1797         JOB_NOTIFY_FIELD_DATATYPE=(int)(0x05),
1798         JOB_NOTIFY_FIELD_PRINT_PROCESSOR=(int)(0x06),
1799         JOB_NOTIFY_FIELD_PARAMETERS=(int)(0x07),
1800         JOB_NOTIFY_FIELD_DRIVER_NAME=(int)(0x08),
1801         JOB_NOTIFY_FIELD_DEVMODE=(int)(0x09),
1802         JOB_NOTIFY_FIELD_STATUS=(int)(0x0a),
1803         JOB_NOTIFY_FIELD_STATUS_STRING=(int)(0x0b),
1804         JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR=(int)(0x0c),
1805         JOB_NOTIFY_FIELD_DOCUMENT=(int)(0x0d),
1806         JOB_NOTIFY_FIELD_PRIORITY=(int)(0x0e),
1807         JOB_NOTIFY_FIELD_POSITION=(int)(0x0f),
1808         JOB_NOTIFY_FIELD_SUBMITTED=(int)(0x10),
1809         JOB_NOTIFY_FIELD_START_TIME=(int)(0x11),
1810         JOB_NOTIFY_FIELD_UNTIL_TIME=(int)(0x12),
1811         JOB_NOTIFY_FIELD_TIME=(int)(0x13),
1812         JOB_NOTIFY_FIELD_TOTAL_PAGES=(int)(0x14),
1813         JOB_NOTIFY_FIELD_PAGES_PRINTED=(int)(0x15),
1814         JOB_NOTIFY_FIELD_TOTAL_BYTES=(int)(0x16),
1815         JOB_NOTIFY_FIELD_BYTES_PRINTED=(int)(0x17)
1816 }
1817 #else
1818  { __donnot_use_enum_spoolss_JobNotifyField=0x7FFFFFFF}
1819 #define JOB_NOTIFY_FIELD_PRINTER_NAME ( 0x00 )
1820 #define JOB_NOTIFY_FIELD_MACHINE_NAME ( 0x01 )
1821 #define JOB_NOTIFY_FIELD_PORT_NAME ( 0x02 )
1822 #define JOB_NOTIFY_FIELD_USER_NAME ( 0x03 )
1823 #define JOB_NOTIFY_FIELD_NOTIFY_NAME ( 0x04 )
1824 #define JOB_NOTIFY_FIELD_DATATYPE ( 0x05 )
1825 #define JOB_NOTIFY_FIELD_PRINT_PROCESSOR ( 0x06 )
1826 #define JOB_NOTIFY_FIELD_PARAMETERS ( 0x07 )
1827 #define JOB_NOTIFY_FIELD_DRIVER_NAME ( 0x08 )
1828 #define JOB_NOTIFY_FIELD_DEVMODE ( 0x09 )
1829 #define JOB_NOTIFY_FIELD_STATUS ( 0x0a )
1830 #define JOB_NOTIFY_FIELD_STATUS_STRING ( 0x0b )
1831 #define JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR ( 0x0c )
1832 #define JOB_NOTIFY_FIELD_DOCUMENT ( 0x0d )
1833 #define JOB_NOTIFY_FIELD_PRIORITY ( 0x0e )
1834 #define JOB_NOTIFY_FIELD_POSITION ( 0x0f )
1835 #define JOB_NOTIFY_FIELD_SUBMITTED ( 0x10 )
1836 #define JOB_NOTIFY_FIELD_START_TIME ( 0x11 )
1837 #define JOB_NOTIFY_FIELD_UNTIL_TIME ( 0x12 )
1838 #define JOB_NOTIFY_FIELD_TIME ( 0x13 )
1839 #define JOB_NOTIFY_FIELD_TOTAL_PAGES ( 0x14 )
1840 #define JOB_NOTIFY_FIELD_PAGES_PRINTED ( 0x15 )
1841 #define JOB_NOTIFY_FIELD_TOTAL_BYTES ( 0x16 )
1842 #define JOB_NOTIFY_FIELD_BYTES_PRINTED ( 0x17 )
1843 #endif
1844 ;
1845
1846 enum spoolss_PrintNotifyField
1847 #ifndef USE_UINT_ENUMS
1848  {
1849         PRINTER_NOTIFY_FIELD_SERVER_NAME=(int)(0x00),
1850         PRINTER_NOTIFY_FIELD_PRINTER_NAME=(int)(0x01),
1851         PRINTER_NOTIFY_FIELD_SHARE_NAME=(int)(0x02),
1852         PRINTER_NOTIFY_FIELD_PORT_NAME=(int)(0x03),
1853         PRINTER_NOTIFY_FIELD_DRIVER_NAME=(int)(0x04),
1854         PRINTER_NOTIFY_FIELD_COMMENT=(int)(0x05),
1855         PRINTER_NOTIFY_FIELD_LOCATION=(int)(0x06),
1856         PRINTER_NOTIFY_FIELD_DEVMODE=(int)(0x07),
1857         PRINTER_NOTIFY_FIELD_SEPFILE=(int)(0x08),
1858         PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR=(int)(0x09),
1859         PRINTER_NOTIFY_FIELD_PARAMETERS=(int)(0x0a),
1860         PRINTER_NOTIFY_FIELD_DATATYPE=(int)(0x0b),
1861         PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR=(int)(0x0c),
1862         PRINTER_NOTIFY_FIELD_ATTRIBUTES=(int)(0x0d),
1863         PRINTER_NOTIFY_FIELD_PRIORITY=(int)(0x0e),
1864         PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY=(int)(0x0f),
1865         PRINTER_NOTIFY_FIELD_START_TIME=(int)(0x10),
1866         PRINTER_NOTIFY_FIELD_UNTIL_TIME=(int)(0x11),
1867         PRINTER_NOTIFY_FIELD_STATUS=(int)(0x12),
1868         PRINTER_NOTIFY_FIELD_STATUS_STRING=(int)(0x13),
1869         PRINTER_NOTIFY_FIELD_CJOBS=(int)(0x14),
1870         PRINTER_NOTIFY_FIELD_AVERAGE_PPM=(int)(0x15),
1871         PRINTER_NOTIFY_FIELD_TOTAL_PAGES=(int)(0x16),
1872         PRINTER_NOTIFY_FIELD_PAGES_PRINTED=(int)(0x17),
1873         PRINTER_NOTIFY_FIELD_TOTAL_BYTES=(int)(0x18),
1874         PRINTER_NOTIFY_FIELD_BYTES_PRINTED=(int)(0x19),
1875         PRINTER_NOTIFY_FIELD_OBJECT_GUID=(int)(0x1a),
1876         PRINTER_NOTIFY_FIELD_FRIENDLY_NAME=(int)(0x1b)
1877 }
1878 #else
1879  { __donnot_use_enum_spoolss_PrintNotifyField=0x7FFFFFFF}
1880 #define PRINTER_NOTIFY_FIELD_SERVER_NAME ( 0x00 )
1881 #define PRINTER_NOTIFY_FIELD_PRINTER_NAME ( 0x01 )
1882 #define PRINTER_NOTIFY_FIELD_SHARE_NAME ( 0x02 )
1883 #define PRINTER_NOTIFY_FIELD_PORT_NAME ( 0x03 )
1884 #define PRINTER_NOTIFY_FIELD_DRIVER_NAME ( 0x04 )
1885 #define PRINTER_NOTIFY_FIELD_COMMENT ( 0x05 )
1886 #define PRINTER_NOTIFY_FIELD_LOCATION ( 0x06 )
1887 #define PRINTER_NOTIFY_FIELD_DEVMODE ( 0x07 )
1888 #define PRINTER_NOTIFY_FIELD_SEPFILE ( 0x08 )
1889 #define PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR ( 0x09 )
1890 #define PRINTER_NOTIFY_FIELD_PARAMETERS ( 0x0a )
1891 #define PRINTER_NOTIFY_FIELD_DATATYPE ( 0x0b )
1892 #define PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR ( 0x0c )
1893 #define PRINTER_NOTIFY_FIELD_ATTRIBUTES ( 0x0d )
1894 #define PRINTER_NOTIFY_FIELD_PRIORITY ( 0x0e )
1895 #define PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY ( 0x0f )
1896 #define PRINTER_NOTIFY_FIELD_START_TIME ( 0x10 )
1897 #define PRINTER_NOTIFY_FIELD_UNTIL_TIME ( 0x11 )
1898 #define PRINTER_NOTIFY_FIELD_STATUS ( 0x12 )
1899 #define PRINTER_NOTIFY_FIELD_STATUS_STRING ( 0x13 )
1900 #define PRINTER_NOTIFY_FIELD_CJOBS ( 0x14 )
1901 #define PRINTER_NOTIFY_FIELD_AVERAGE_PPM ( 0x15 )
1902 #define PRINTER_NOTIFY_FIELD_TOTAL_PAGES ( 0x16 )
1903 #define PRINTER_NOTIFY_FIELD_PAGES_PRINTED ( 0x17 )
1904 #define PRINTER_NOTIFY_FIELD_TOTAL_BYTES ( 0x18 )
1905 #define PRINTER_NOTIFY_FIELD_BYTES_PRINTED ( 0x19 )
1906 #define PRINTER_NOTIFY_FIELD_OBJECT_GUID ( 0x1a )
1907 #define PRINTER_NOTIFY_FIELD_FRIENDLY_NAME ( 0x1b )
1908 #endif
1909 ;
1910
1911 enum spoolss_NotifyType
1912 #ifndef USE_UINT_ENUMS
1913  {
1914         PRINTER_NOTIFY_TYPE=(int)(0x00),
1915         JOB_NOTIFY_TYPE=(int)(0x01)
1916 }
1917 #else
1918  { __donnot_use_enum_spoolss_NotifyType=0x7FFFFFFF}
1919 #define PRINTER_NOTIFY_TYPE ( 0x00 )
1920 #define JOB_NOTIFY_TYPE ( 0x01 )
1921 #endif
1922 ;
1923
1924 union spoolss_Field {
1925         uint16_t field;/* [case(PRINTER_NOTIFY_TYPE)] */
1926 }/* [noprint,nodiscriminant] */;
1927
1928 struct spoolss_NotifyOptionType {
1929         enum spoolss_NotifyType type;
1930         uint16_t u1;
1931         uint32_t u2;
1932         uint32_t u3;
1933         uint32_t count;
1934         union spoolss_Field *fields;/* [unique,switch_is(type),size_is(count)] */
1935 };
1936
1937 /* bitmap spoolssNotifyOptionFlags */
1938 #define PRINTER_NOTIFY_OPTIONS_REFRESH ( 0x00000001 )
1939
1940 struct spoolss_NotifyOption {
1941         uint32_t version;/* [value(2)] */
1942         uint32_t flags;
1943         uint32_t count;
1944         struct spoolss_NotifyOptionType *types;/* [unique,size_is(count)] */
1945 };
1946
1947 struct spoolss_NotifyString {
1948         uint32_t size;
1949         const char *string;/* [unique,charset(UTF16),size_is(size/2)] */
1950 };
1951
1952 enum spoolss_NotifyTable
1953 #ifndef USE_UINT_ENUMS
1954  {
1955         NOTIFY_TABLE_DWORD=(int)(0x0001),
1956         NOTIFY_TABLE_STRING=(int)(0x0002),
1957         NOTIFY_TABLE_DEVMODE=(int)(0x0003),
1958         NOTIFY_TABLE_TIME=(int)(0x0004),
1959         NOTIFY_TABLE_SECURITYDESCRIPTOR=(int)(0x0005)
1960 }
1961 #else
1962  { __donnot_use_enum_spoolss_NotifyTable=0x7FFFFFFF}
1963 #define NOTIFY_TABLE_DWORD ( 0x0001 )
1964 #define NOTIFY_TABLE_STRING ( 0x0002 )
1965 #define NOTIFY_TABLE_DEVMODE ( 0x0003 )
1966 #define NOTIFY_TABLE_TIME ( 0x0004 )
1967 #define NOTIFY_TABLE_SECURITYDESCRIPTOR ( 0x0005 )
1968 #endif
1969 ;
1970
1971 union spoolss_NotifyData {
1972         uint32_t integer[2];/* [case] */
1973         struct spoolss_NotifyString string;/* [case(2)] */
1974         struct spoolss_DevmodeContainer devmode;/* [case(3)] */
1975         struct spoolss_TimeCtr time;/* [case(4)] */
1976         struct sec_desc_buf sd;/* [case(5)] */
1977 }/* [switch_type(uint32)] */;
1978
1979 struct spoolss_Notify {
1980         enum spoolss_NotifyType type;
1981         union spoolss_Field field;/* [switch_is(type)] */
1982         enum spoolss_NotifyTable variable_type;
1983         uint32_t job_id;
1984         union spoolss_NotifyData data;/* [switch_is(variable_type)] */
1985 };
1986
1987 struct spoolss_NotifyInfo {
1988         uint32_t version;/* [value(2)] */
1989         uint32_t flags;
1990         uint32_t count;
1991         struct spoolss_Notify *notifies;/* [size_is(count)] */
1992 };
1993
1994 union spoolss_ReplyPrinterInfo {
1995         struct spoolss_NotifyInfo *info0;/* [unique,case(0)] */
1996 }/* [switch_type(uint32)] */;
1997
1998 /* bitmap spoolss_PrinterNotifyFlags */
1999 #define PRINTER_NOTIFY_INFO_DISCARDED ( 0x00000001 )
2000 #define PRINTER_NOTIFY_INFO_DISCARDNOTED ( 0x00010000 )
2001 #define PRINTER_NOTIFY_INFO_COLOR_MISMATCH ( 0x00080000 )
2002
2003 struct spoolss_UserLevel1 {
2004         uint32_t size;
2005         const char *client;/* [unique,charset(UTF16)] */
2006         const char *user;/* [unique,charset(UTF16)] */
2007         uint32_t build;
2008         enum spoolss_MajorVersion major;
2009         enum spoolss_MinorVersion minor;
2010         enum spoolss_ProcessorArchitecture processor;
2011 };
2012
2013 struct spoolss_UserLevel2 {
2014         uint32_t not_used;
2015 };
2016
2017 struct spoolss_UserLevel3 {
2018         uint32_t size;
2019         uint32_t flags;
2020         uint32_t size2;
2021         const char *client;/* [unique,charset(UTF16)] */
2022         const char *user;/* [unique,charset(UTF16)] */
2023         uint32_t build;
2024         enum spoolss_MajorVersion major;
2025         enum spoolss_MinorVersion minor;
2026         enum spoolss_ProcessorArchitecture processor;
2027         uint64_t reserved;
2028 };
2029
2030 union spoolss_UserLevel {
2031         struct spoolss_UserLevel1 *level1;/* [unique,case] */
2032         struct spoolss_UserLevel2 *level2;/* [unique,case(2)] */
2033         struct spoolss_UserLevel3 *level3;/* [unique,case(3)] */
2034 }/* [switch_type(uint32)] */;
2035
2036 struct spoolss_UserLevelCtr {
2037         uint32_t level;
2038         union spoolss_UserLevel user_info;/* [switch_is(level)] */
2039 };
2040
2041 /* bitmap spoolss_AccessRights */
2042 #define SERVER_ACCESS_ADMINISTER ( 0x00000001 )
2043 #define SERVER_ACCESS_ENUMERATE ( 0x00000002 )
2044 #define PRINTER_ACCESS_ADMINISTER ( 0x00000004 )
2045 #define PRINTER_ACCESS_USE ( 0x00000008 )
2046 #define JOB_ACCESS_ADMINISTER ( 0x00000010 )
2047 #define JOB_ACCESS_READ ( 0x00000020 )
2048
2049 struct spoolss_PrinterEnumValues {
2050         const char * value_name;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
2051         uint32_t value_name_len;/* [value(2*strlen_m_term(value_name))] */
2052         enum winreg_Type type;
2053         union spoolss_PrinterData *data;/* [relative,subcontext_size(r->data_length),subcontext(0),switch_is(type)] */
2054         uint32_t data_length;/* [value(ndr_size_spoolss_PrinterData(data,type,ndr->iconv_convenience,ndr->flags))] */
2055 }/* [relative_base,gensize,public] */;
2056
2057 /* bitmap spoolss_DeleteDriverFlags */
2058 #define DPD_DELETE_UNUSED_FILES ( 0x00000001 )
2059 #define DPD_DELETE_SPECIFIC_VERSION ( 0x00000002 )
2060 #define DPD_DELETE_ALL_FILES ( 0x00000004 )
2061
2062 enum spoolss_PortProtocol
2063 #ifndef USE_UINT_ENUMS
2064  {
2065         PROTOCOL_RAWTCP_TYPE=(int)(1),
2066         PROTOCOL_LPR_TYPE=(int)(2)
2067 }
2068 #else
2069  { __donnot_use_enum_spoolss_PortProtocol=0x7FFFFFFF}
2070 #define PROTOCOL_RAWTCP_TYPE ( 1 )
2071 #define PROTOCOL_LPR_TYPE ( 2 )
2072 #endif
2073 ;
2074
2075 struct spoolss_PortData1 {
2076         const char *portname;/* [charset(UTF16)] */
2077         uint32_t version;/* [value(0x00000001)] */
2078         enum spoolss_PortProtocol protocol;
2079         uint32_t size;/* [value(sizeof(r))] */
2080         uint32_t reserved;
2081         const char *hostaddress;/* [charset(UTF16)] */
2082         const char *snmpcommunity;/* [charset(UTF16)] */
2083         uint32_t dblspool;
2084         const char *queue;/* [charset(UTF16)] */
2085         const char *ip_address;/* [charset(UTF16)] */
2086         const char *hardware_address;/* [charset(UTF16)] */
2087         const char *device_type;/* [charset(UTF16)] */
2088         uint32_t port_number;
2089         uint32_t snmp_enabled;
2090         uint32_t snmp_dev_index;
2091 }/* [public] */;
2092
2093 struct spoolss_PortData2 {
2094         const char *portname;/* [charset(UTF16)] */
2095         uint32_t version;/* [value(0x00000002)] */
2096         enum spoolss_PortProtocol protocol;
2097         uint32_t size;/* [value(sizeof(r))] */
2098         uint32_t reserved;
2099         const char *hostaddress;/* [charset(UTF16)] */
2100         const char *snmpcommunity;/* [charset(UTF16)] */
2101         uint32_t dblspool;
2102         const char *queue;/* [charset(UTF16)] */
2103         const char *device_type;/* [charset(UTF16)] */
2104         uint32_t port_number;
2105         uint32_t snmp_enabled;
2106         uint32_t snmp_dev_index;
2107         uint32_t port_monitor_mib_index;
2108 }/* [public] */;
2109
2110 struct spoolss_MonitorUi {
2111         const char * dll_name;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
2112 }/* [public] */;
2113
2114 /* bitmap spoolss_AddPrinterDriverExFlags */
2115 #define APD_STRICT_UPGRADE ( 0x00000001 )
2116 #define APD_STRICT_DOWNGRADE ( 0x00000002 )
2117 #define APD_COPY_ALL_FILES ( 0x00000004 )
2118 #define APD_COPY_NEW_FILES ( 0x00000008 )
2119 #define APD_COPY_FROM_DIRECTORY ( 0x00000010 )
2120 #define APD_DONT_COPY_FILES_TO_CLUSTER ( 0x00001000 )
2121 #define APD_COPY_TO_ALL_SPOOLERS ( 0x00002000 )
2122 #define APD_RETURN_BLOCKING_STATUS_CODE ( 0x00010000 )
2123
2124 struct spoolss_CorePrinterDriver {
2125         struct GUID core_driver_guid;
2126         NTTIME driver_date;
2127         uint64_t driver_version;
2128         const char *formname;/* [charset(UTF8)] */
2129 };
2130
2131
2132 struct _spoolss_EnumPrinters {
2133         struct {
2134                 uint32_t flags;
2135                 const char *server;/* [unique,charset(UTF16)] */
2136                 uint32_t level;
2137                 DATA_BLOB *buffer;/* [unique] */
2138                 uint32_t offered;
2139         } in;
2140
2141         struct {
2142                 DATA_BLOB *info;/* [unique] */
2143                 uint32_t *needed;/* [ref] */
2144                 uint32_t *count;/* [ref] */
2145                 WERROR result;
2146         } out;
2147
2148 };
2149
2150
2151 struct __spoolss_EnumPrinters {
2152         struct {
2153                 uint32_t level;
2154                 uint32_t count;
2155         } in;
2156
2157         struct {
2158                 union spoolss_PrinterInfo *info;/* [switch_is(level)] */
2159         } out;
2160
2161 };
2162
2163
2164 struct spoolss_EnumPrinters {
2165         struct {
2166                 uint32_t flags;
2167                 const char *server;/* [unique,charset(UTF16)] */
2168                 uint32_t level;
2169                 DATA_BLOB *buffer;/* [unique] */
2170                 uint32_t offered;
2171         } in;
2172
2173         struct {
2174                 uint32_t *count;/* [ref] */
2175                 union spoolss_PrinterInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2176                 uint32_t *needed;/* [ref] */
2177                 WERROR result;
2178         } out;
2179
2180 };
2181
2182
2183 struct spoolss_OpenPrinter {
2184         struct {
2185                 const char *printername;/* [unique,charset(UTF16)] */
2186                 const char *datatype;/* [unique,charset(UTF16)] */
2187                 struct spoolss_DevmodeContainer devmode_ctr;
2188                 uint32_t access_mask;
2189         } in;
2190
2191         struct {
2192                 struct policy_handle *handle;/* [ref] */
2193                 WERROR result;
2194         } out;
2195
2196 };
2197
2198
2199 struct spoolss_SetJob {
2200         struct {
2201                 struct policy_handle *handle;/* [ref] */
2202                 uint32_t job_id;
2203                 struct spoolss_JobInfoContainer *ctr;/* [unique] */
2204                 enum spoolss_JobControl command;
2205         } in;
2206
2207         struct {
2208                 WERROR result;
2209         } out;
2210
2211 };
2212
2213
2214 struct spoolss_GetJob {
2215         struct {
2216                 struct policy_handle *handle;/* [ref] */
2217                 uint32_t job_id;
2218                 uint32_t level;
2219                 DATA_BLOB *buffer;/* [unique] */
2220                 uint32_t offered;
2221         } in;
2222
2223         struct {
2224                 union spoolss_JobInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2225                 uint32_t *needed;/* [ref] */
2226                 WERROR result;
2227         } out;
2228
2229 };
2230
2231
2232 struct _spoolss_EnumJobs {
2233         struct {
2234                 struct policy_handle *handle;/* [ref] */
2235                 uint32_t firstjob;
2236                 uint32_t numjobs;
2237                 uint32_t level;
2238                 DATA_BLOB *buffer;/* [unique] */
2239                 uint32_t offered;
2240         } in;
2241
2242         struct {
2243                 DATA_BLOB *info;/* [unique] */
2244                 uint32_t *needed;/* [ref] */
2245                 uint32_t *count;/* [ref] */
2246                 WERROR result;
2247         } out;
2248
2249 };
2250
2251
2252 struct __spoolss_EnumJobs {
2253         struct {
2254                 uint32_t level;
2255                 uint32_t count;
2256         } in;
2257
2258         struct {
2259                 union spoolss_JobInfo *info;/* [switch_is(level)] */
2260         } out;
2261
2262 };
2263
2264
2265 struct spoolss_EnumJobs {
2266         struct {
2267                 struct policy_handle *handle;/* [ref] */
2268                 uint32_t firstjob;
2269                 uint32_t numjobs;
2270                 uint32_t level;
2271                 DATA_BLOB *buffer;/* [unique] */
2272                 uint32_t offered;
2273         } in;
2274
2275         struct {
2276                 uint32_t *count;/* [ref] */
2277                 union spoolss_JobInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2278                 uint32_t *needed;/* [ref] */
2279                 WERROR result;
2280         } out;
2281
2282 };
2283
2284
2285 struct spoolss_AddPrinter {
2286         struct {
2287                 const char *server;/* [unique,charset(UTF16)] */
2288                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2289                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2290                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2291         } in;
2292
2293         struct {
2294                 struct policy_handle *handle;/* [ref] */
2295                 WERROR result;
2296         } out;
2297
2298 };
2299
2300
2301 struct spoolss_DeletePrinter {
2302         struct {
2303                 struct policy_handle *handle;/* [ref] */
2304         } in;
2305
2306         struct {
2307                 WERROR result;
2308         } out;
2309
2310 };
2311
2312
2313 struct spoolss_SetPrinter {
2314         struct {
2315                 struct policy_handle *handle;/* [ref] */
2316                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
2317                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
2318                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
2319                 enum spoolss_PrinterControl command;
2320         } in;
2321
2322         struct {
2323                 WERROR result;
2324         } out;
2325
2326 };
2327
2328
2329 struct spoolss_GetPrinter {
2330         struct {
2331                 struct policy_handle *handle;/* [ref] */
2332                 uint32_t level;
2333                 DATA_BLOB *buffer;/* [unique] */
2334                 uint32_t offered;
2335         } in;
2336
2337         struct {
2338                 union spoolss_PrinterInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2339                 uint32_t *needed;/* [ref] */
2340                 WERROR result;
2341         } out;
2342
2343 };
2344
2345
2346 struct spoolss_AddPrinterDriver {
2347         struct {
2348                 const char *servername;/* [unique,charset(UTF16)] */
2349                 struct spoolss_AddDriverInfoCtr *info_ctr;/* [ref] */
2350         } in;
2351
2352         struct {
2353                 WERROR result;
2354         } out;
2355
2356 };
2357
2358
2359 struct _spoolss_EnumPrinterDrivers {
2360         struct {
2361                 const char *server;/* [unique,charset(UTF16)] */
2362                 const char *environment;/* [unique,charset(UTF16)] */
2363                 uint32_t level;
2364                 DATA_BLOB *buffer;/* [unique] */
2365                 uint32_t offered;
2366         } in;
2367
2368         struct {
2369                 DATA_BLOB *info;/* [unique] */
2370                 uint32_t *needed;/* [ref] */
2371                 uint32_t *count;/* [ref] */
2372                 WERROR result;
2373         } out;
2374
2375 };
2376
2377
2378 struct __spoolss_EnumPrinterDrivers {
2379         struct {
2380                 uint32_t level;
2381                 uint32_t count;
2382         } in;
2383
2384         struct {
2385                 union spoolss_DriverInfo *info;/* [switch_is(level)] */
2386         } out;
2387
2388 };
2389
2390
2391 struct spoolss_EnumPrinterDrivers {
2392         struct {
2393                 const char *server;/* [unique,charset(UTF16)] */
2394                 const char *environment;/* [unique,charset(UTF16)] */
2395                 uint32_t level;
2396                 DATA_BLOB *buffer;/* [unique] */
2397                 uint32_t offered;
2398         } in;
2399
2400         struct {
2401                 uint32_t *count;/* [ref] */
2402                 union spoolss_DriverInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2403                 uint32_t *needed;/* [ref] */
2404                 WERROR result;
2405         } out;
2406
2407 };
2408
2409
2410 struct spoolss_GetPrinterDriver {
2411         struct {
2412                 struct policy_handle *handle;/* [ref] */
2413                 const char *architecture;/* [unique,charset(UTF16)] */
2414                 uint32_t level;
2415                 DATA_BLOB *buffer;/* [unique] */
2416                 uint32_t offered;
2417         } in;
2418
2419         struct {
2420                 union spoolss_DriverInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2421                 uint32_t *needed;/* [ref] */
2422                 WERROR result;
2423         } out;
2424
2425 };
2426
2427
2428 struct spoolss_GetPrinterDriverDirectory {
2429         struct {
2430                 const char *server;/* [unique,charset(UTF16)] */
2431                 const char *environment;/* [unique,charset(UTF16)] */
2432                 uint32_t level;
2433                 DATA_BLOB *buffer;/* [unique] */
2434                 uint32_t offered;
2435         } in;
2436
2437         struct {
2438                 union spoolss_DriverDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2439                 uint32_t *needed;/* [ref] */
2440                 WERROR result;
2441         } out;
2442
2443 };
2444
2445
2446 struct spoolss_DeletePrinterDriver {
2447         struct {
2448                 const char *server;/* [unique,charset(UTF16)] */
2449                 const char *architecture;/* [charset(UTF16)] */
2450                 const char *driver;/* [charset(UTF16)] */
2451         } in;
2452
2453         struct {
2454                 WERROR result;
2455         } out;
2456
2457 };
2458
2459
2460 struct spoolss_AddPrintProcessor {
2461         struct {
2462                 const char *server;/* [unique,charset(UTF16)] */
2463                 const char *architecture;/* [charset(UTF16)] */
2464                 const char *path_name;/* [charset(UTF16)] */
2465                 const char *print_processor_name;/* [charset(UTF16)] */
2466         } in;
2467
2468         struct {
2469                 WERROR result;
2470         } out;
2471
2472 };
2473
2474
2475 struct _spoolss_EnumPrintProcessors {
2476         struct {
2477                 const char *servername;/* [unique,charset(UTF16)] */
2478                 const char *environment;/* [unique,charset(UTF16)] */
2479                 uint32_t level;
2480                 DATA_BLOB *buffer;/* [unique] */
2481                 uint32_t offered;
2482         } in;
2483
2484         struct {
2485                 DATA_BLOB *info;/* [unique] */
2486                 uint32_t *needed;/* [ref] */
2487                 uint32_t *count;/* [ref] */
2488                 WERROR result;
2489         } out;
2490
2491 };
2492
2493
2494 struct __spoolss_EnumPrintProcessors {
2495         struct {
2496                 uint32_t level;
2497                 uint32_t count;
2498         } in;
2499
2500         struct {
2501                 union spoolss_PrintProcessorInfo *info;/* [switch_is(level)] */
2502         } out;
2503
2504 };
2505
2506
2507 struct spoolss_EnumPrintProcessors {
2508         struct {
2509                 const char *servername;/* [unique,charset(UTF16)] */
2510                 const char *environment;/* [unique,charset(UTF16)] */
2511                 uint32_t level;
2512                 DATA_BLOB *buffer;/* [unique] */
2513                 uint32_t offered;
2514         } in;
2515
2516         struct {
2517                 uint32_t *count;/* [ref] */
2518                 union spoolss_PrintProcessorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2519                 uint32_t *needed;/* [ref] */
2520                 WERROR result;
2521         } out;
2522
2523 };
2524
2525
2526 struct spoolss_GetPrintProcessorDirectory {
2527         struct {
2528                 const char *server;/* [unique,charset(UTF16)] */
2529                 const char *environment;/* [unique,charset(UTF16)] */
2530                 uint32_t level;
2531                 DATA_BLOB *buffer;/* [unique] */
2532                 uint32_t offered;
2533         } in;
2534
2535         struct {
2536                 union spoolss_PrintProcessorDirectoryInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2537                 uint32_t *needed;/* [ref] */
2538                 WERROR result;
2539         } out;
2540
2541 };
2542
2543
2544 struct spoolss_StartDocPrinter {
2545         struct {
2546                 struct policy_handle *handle;/* [ref] */
2547                 uint32_t level;
2548                 union spoolss_DocumentInfo info;/* [switch_is(level)] */
2549         } in;
2550
2551         struct {
2552                 uint32_t *job_id;/* [ref] */
2553                 WERROR result;
2554         } out;
2555
2556 };
2557
2558
2559 struct spoolss_StartPagePrinter {
2560         struct {
2561                 struct policy_handle *handle;/* [ref] */
2562         } in;
2563
2564         struct {
2565                 WERROR result;
2566         } out;
2567
2568 };
2569
2570
2571 struct spoolss_WritePrinter {
2572         struct {
2573                 struct policy_handle *handle;/* [ref] */
2574                 DATA_BLOB data;
2575                 uint32_t _data_size;/* [value(r->in.data.length)] */
2576         } in;
2577
2578         struct {
2579                 uint32_t *num_written;/* [ref] */
2580                 WERROR result;
2581         } out;
2582
2583 };
2584
2585
2586 struct spoolss_EndPagePrinter {
2587         struct {
2588                 struct policy_handle *handle;/* [ref] */
2589         } in;
2590
2591         struct {
2592                 WERROR result;
2593         } out;
2594
2595 };
2596
2597
2598 struct spoolss_AbortPrinter {
2599         struct {
2600                 struct policy_handle *handle;/* [ref] */
2601         } in;
2602
2603         struct {
2604                 WERROR result;
2605         } out;
2606
2607 };
2608
2609
2610 struct spoolss_ReadPrinter {
2611         struct {
2612                 struct policy_handle *handle;/* [ref] */
2613                 uint32_t data_size;
2614         } in;
2615
2616         struct {
2617                 uint8_t *data;/* [ref,size_is(data_size)] */
2618                 uint32_t *_data_size;/* [ref] */
2619                 WERROR result;
2620         } out;
2621
2622 };
2623
2624
2625 struct spoolss_EndDocPrinter {
2626         struct {
2627                 struct policy_handle *handle;/* [ref] */
2628         } in;
2629
2630         struct {
2631                 WERROR result;
2632         } out;
2633
2634 };
2635
2636
2637 struct spoolss_AddJob {
2638         struct {
2639                 struct policy_handle *handle;/* [ref] */
2640                 uint32_t level;
2641                 uint32_t offered;
2642                 uint8_t *buffer;/* [unique,size_is(offered)] */
2643         } in;
2644
2645         struct {
2646                 uint32_t *needed;/* [ref] */
2647                 uint8_t *buffer;/* [unique,size_is(offered)] */
2648                 WERROR result;
2649         } out;
2650
2651 };
2652
2653
2654 struct spoolss_ScheduleJob {
2655         struct {
2656                 struct policy_handle *handle;/* [ref] */
2657                 uint32_t jobid;
2658         } in;
2659
2660         struct {
2661                 WERROR result;
2662         } out;
2663
2664 };
2665
2666
2667 struct _spoolss_GetPrinterData {
2668         struct {
2669                 struct policy_handle *handle;/* [ref] */
2670                 const char *value_name;/* [charset(UTF16)] */
2671                 uint32_t offered;
2672         } in;
2673
2674         struct {
2675                 enum winreg_Type *type;/* [ref] */
2676                 DATA_BLOB *data;/* [ref] */
2677                 uint32_t *needed;/* [ref] */
2678                 WERROR result;
2679         } out;
2680
2681 };
2682
2683
2684 struct __spoolss_GetPrinterData {
2685         struct {
2686                 enum winreg_Type type;
2687         } in;
2688
2689         struct {
2690                 union spoolss_PrinterData *data;/* [ref,switch_is(type)] */
2691         } out;
2692
2693 };
2694
2695
2696 struct spoolss_GetPrinterData {
2697         struct {
2698                 struct policy_handle *handle;/* [ref] */
2699                 const char *value_name;/* [charset(UTF16)] */
2700                 uint32_t offered;
2701         } in;
2702
2703         struct {
2704                 enum winreg_Type *type;/* [ref] */
2705                 union spoolss_PrinterData *data;/* [subcontext_size(offered),ref,subcontext(4),switch_is(*type)] */
2706                 uint32_t *needed;/* [ref] */
2707                 WERROR result;
2708         } out;
2709
2710 };
2711
2712
2713 struct _spoolss_SetPrinterData {
2714         struct {
2715                 struct policy_handle *handle;/* [ref] */
2716                 const char *value_name;/* [charset(UTF16)] */
2717                 enum winreg_Type type;
2718                 DATA_BLOB data;
2719                 uint32_t _offered;
2720         } in;
2721
2722         struct {
2723                 WERROR result;
2724         } out;
2725
2726 };
2727
2728
2729 struct __spoolss_SetPrinterData {
2730         struct {
2731                 enum winreg_Type type;
2732         } in;
2733
2734         struct {
2735                 union spoolss_PrinterData *data;/* [ref,switch_is(type)] */
2736         } out;
2737
2738 };
2739
2740
2741 struct spoolss_SetPrinterData {
2742         struct {
2743                 struct policy_handle *handle;/* [ref] */
2744                 const char *value_name;/* [charset(UTF16)] */
2745                 enum winreg_Type type;
2746                 union spoolss_PrinterData data;/* [subcontext(4),switch_is(type)] */
2747                 uint32_t _offered;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
2748         } in;
2749
2750         struct {
2751                 WERROR result;
2752         } out;
2753
2754 };
2755
2756
2757 struct spoolss_WaitForPrinterChange {
2758         struct {
2759                 WERROR result;
2760         } out;
2761
2762 };
2763
2764
2765 struct spoolss_ClosePrinter {
2766         struct {
2767                 struct policy_handle *handle;/* [ref] */
2768         } in;
2769
2770         struct {
2771                 struct policy_handle *handle;/* [ref] */
2772                 WERROR result;
2773         } out;
2774
2775 };
2776
2777
2778 struct spoolss_AddForm {
2779         struct {
2780                 struct policy_handle *handle;/* [ref] */
2781                 uint32_t level;
2782                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
2783         } in;
2784
2785         struct {
2786                 WERROR result;
2787         } out;
2788
2789 };
2790
2791
2792 struct spoolss_DeleteForm {
2793         struct {
2794                 struct policy_handle *handle;/* [ref] */
2795                 const char *form_name;/* [charset(UTF16)] */
2796         } in;
2797
2798         struct {
2799                 WERROR result;
2800         } out;
2801
2802 };
2803
2804
2805 struct spoolss_GetForm {
2806         struct {
2807                 struct policy_handle *handle;/* [ref] */
2808                 const char *form_name;/* [charset(UTF16)] */
2809                 uint32_t level;
2810                 DATA_BLOB *buffer;/* [unique] */
2811                 uint32_t offered;
2812         } in;
2813
2814         struct {
2815                 union spoolss_FormInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2816                 uint32_t *needed;/* [ref] */
2817                 WERROR result;
2818         } out;
2819
2820 };
2821
2822
2823 struct spoolss_SetForm {
2824         struct {
2825                 struct policy_handle *handle;/* [ref] */
2826                 const char *form_name;/* [charset(UTF16)] */
2827                 uint32_t level;
2828                 union spoolss_AddFormInfo info;/* [switch_is(level)] */
2829         } in;
2830
2831         struct {
2832                 WERROR result;
2833         } out;
2834
2835 };
2836
2837
2838 struct _spoolss_EnumForms {
2839         struct {
2840                 struct policy_handle *handle;/* [ref] */
2841                 uint32_t level;
2842                 DATA_BLOB *buffer;/* [unique] */
2843                 uint32_t offered;
2844         } in;
2845
2846         struct {
2847                 DATA_BLOB *info;/* [unique] */
2848                 uint32_t *needed;/* [ref] */
2849                 uint32_t *count;/* [ref] */
2850                 WERROR result;
2851         } out;
2852
2853 };
2854
2855
2856 struct __spoolss_EnumForms {
2857         struct {
2858                 uint32_t level;
2859                 uint32_t count;
2860         } in;
2861
2862         struct {
2863                 union spoolss_FormInfo *info;/* [switch_is(level)] */
2864         } out;
2865
2866 };
2867
2868
2869 struct spoolss_EnumForms {
2870         struct {
2871                 struct policy_handle *handle;/* [ref] */
2872                 uint32_t level;
2873                 DATA_BLOB *buffer;/* [unique] */
2874                 uint32_t offered;
2875         } in;
2876
2877         struct {
2878                 uint32_t *count;/* [ref] */
2879                 union spoolss_FormInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2880                 uint32_t *needed;/* [ref] */
2881                 WERROR result;
2882         } out;
2883
2884 };
2885
2886
2887 struct _spoolss_EnumPorts {
2888         struct {
2889                 const char *servername;/* [unique,charset(UTF16)] */
2890                 uint32_t level;
2891                 DATA_BLOB *buffer;/* [unique] */
2892                 uint32_t offered;
2893         } in;
2894
2895         struct {
2896                 DATA_BLOB *info;/* [unique] */
2897                 uint32_t *needed;/* [ref] */
2898                 uint32_t *count;/* [ref] */
2899                 WERROR result;
2900         } out;
2901
2902 };
2903
2904
2905 struct __spoolss_EnumPorts {
2906         struct {
2907                 uint32_t level;
2908                 uint32_t count;
2909         } in;
2910
2911         struct {
2912                 union spoolss_PortInfo *info;/* [switch_is(level)] */
2913         } out;
2914
2915 };
2916
2917
2918 struct spoolss_EnumPorts {
2919         struct {
2920                 const char *servername;/* [unique,charset(UTF16)] */
2921                 uint32_t level;
2922                 DATA_BLOB *buffer;/* [unique] */
2923                 uint32_t offered;
2924         } in;
2925
2926         struct {
2927                 uint32_t *count;/* [ref] */
2928                 union spoolss_PortInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2929                 uint32_t *needed;/* [ref] */
2930                 WERROR result;
2931         } out;
2932
2933 };
2934
2935
2936 struct _spoolss_EnumMonitors {
2937         struct {
2938                 const char *servername;/* [unique,charset(UTF16)] */
2939                 uint32_t level;
2940                 DATA_BLOB *buffer;/* [unique] */
2941                 uint32_t offered;
2942         } in;
2943
2944         struct {
2945                 DATA_BLOB *info;/* [unique] */
2946                 uint32_t *needed;/* [ref] */
2947                 uint32_t *count;/* [ref] */
2948                 WERROR result;
2949         } out;
2950
2951 };
2952
2953
2954 struct __spoolss_EnumMonitors {
2955         struct {
2956                 uint32_t level;
2957                 uint32_t count;
2958         } in;
2959
2960         struct {
2961                 union spoolss_MonitorInfo *info;/* [switch_is(level)] */
2962         } out;
2963
2964 };
2965
2966
2967 struct spoolss_EnumMonitors {
2968         struct {
2969                 const char *servername;/* [unique,charset(UTF16)] */
2970                 uint32_t level;
2971                 DATA_BLOB *buffer;/* [unique] */
2972                 uint32_t offered;
2973         } in;
2974
2975         struct {
2976                 uint32_t *count;/* [ref] */
2977                 union spoolss_MonitorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
2978                 uint32_t *needed;/* [ref] */
2979                 WERROR result;
2980         } out;
2981
2982 };
2983
2984
2985 struct spoolss_AddPort {
2986         struct {
2987                 const char *server_name;/* [unique,charset(UTF16)] */
2988                 uint32_t unknown;
2989                 const char *monitor_name;/* [charset(UTF16)] */
2990         } in;
2991
2992         struct {
2993                 WERROR result;
2994         } out;
2995
2996 };
2997
2998
2999 struct spoolss_ConfigurePort {
3000         struct {
3001                 WERROR result;
3002         } out;
3003
3004 };
3005
3006
3007 struct spoolss_DeletePort {
3008         struct {
3009                 WERROR result;
3010         } out;
3011
3012 };
3013
3014
3015 struct spoolss_CreatePrinterIC {
3016         struct {
3017                 struct policy_handle *handle;/* [ref] */
3018                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
3019         } in;
3020
3021         struct {
3022                 struct policy_handle *gdi_handle;/* [ref] */
3023                 WERROR result;
3024         } out;
3025
3026 };
3027
3028
3029 struct spoolss_PlayGDIScriptOnPrinterIC {
3030         struct {
3031                 WERROR result;
3032         } out;
3033
3034 };
3035
3036
3037 struct spoolss_DeletePrinterIC {
3038         struct {
3039                 struct policy_handle *gdi_handle;/* [ref] */
3040         } in;
3041
3042         struct {
3043                 struct policy_handle *gdi_handle;/* [ref] */
3044                 WERROR result;
3045         } out;
3046
3047 };
3048
3049
3050 struct spoolss_AddPrinterConnection {
3051         struct {
3052                 WERROR result;
3053         } out;
3054
3055 };
3056
3057
3058 struct spoolss_DeletePrinterConnection {
3059         struct {
3060                 WERROR result;
3061         } out;
3062
3063 };
3064
3065
3066 struct spoolss_PrinterMessageBox {
3067         struct {
3068                 WERROR result;
3069         } out;
3070
3071 };
3072
3073
3074 struct spoolss_AddMonitor {
3075         struct {
3076                 WERROR result;
3077         } out;
3078
3079 };
3080
3081
3082 struct spoolss_DeleteMonitor {
3083         struct {
3084                 WERROR result;
3085         } out;
3086
3087 };
3088
3089
3090 struct spoolss_DeletePrintProcessor {
3091         struct {
3092                 WERROR result;
3093         } out;
3094
3095 };
3096
3097
3098 struct spoolss_AddPrintProvidor {
3099         struct {
3100                 WERROR result;
3101         } out;
3102
3103 };
3104
3105
3106 struct spoolss_DeletePrintProvidor {
3107         struct {
3108                 WERROR result;
3109         } out;
3110
3111 };
3112
3113
3114 struct _spoolss_EnumPrintProcDataTypes {
3115         struct {
3116                 const char *servername;/* [unique,charset(UTF16)] */
3117                 const char *print_processor_name;/* [unique,charset(UTF16)] */
3118                 uint32_t level;
3119                 DATA_BLOB *buffer;/* [unique] */
3120                 uint32_t offered;
3121         } in;
3122
3123         struct {
3124                 DATA_BLOB *info;/* [unique] */
3125                 uint32_t *needed;/* [ref] */
3126                 uint32_t *count;/* [ref] */
3127                 WERROR result;
3128         } out;
3129
3130 };
3131
3132
3133 struct __spoolss_EnumPrintProcDataTypes {
3134         struct {
3135                 uint32_t level;
3136                 uint32_t count;
3137         } in;
3138
3139         struct {
3140                 union spoolss_PrintProcDataTypesInfo *info;/* [switch_is(level)] */
3141         } out;
3142
3143 };
3144
3145
3146 struct spoolss_EnumPrintProcDataTypes {
3147         struct {
3148                 const char *servername;/* [unique,charset(UTF16)] */
3149                 const char *print_processor_name;/* [unique,charset(UTF16)] */
3150                 uint32_t level;
3151                 DATA_BLOB *buffer;/* [unique] */
3152                 uint32_t offered;
3153         } in;
3154
3155         struct {
3156                 uint32_t *count;/* [ref] */
3157                 union spoolss_PrintProcDataTypesInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
3158                 uint32_t *needed;/* [ref] */
3159                 WERROR result;
3160         } out;
3161
3162 };
3163
3164
3165 struct spoolss_ResetPrinter {
3166         struct {
3167                 struct policy_handle *handle;/* [ref] */
3168                 const char *data_type;/* [unique,charset(UTF16)] */
3169                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
3170         } in;
3171
3172         struct {
3173                 WERROR result;
3174         } out;
3175
3176 };
3177
3178
3179 struct spoolss_GetPrinterDriver2 {
3180         struct {
3181                 struct policy_handle *handle;/* [ref] */
3182                 const char *architecture;/* [unique,charset(UTF16)] */
3183                 uint32_t level;
3184                 DATA_BLOB *buffer;/* [unique] */
3185                 uint32_t offered;
3186                 uint32_t client_major_version;
3187                 uint32_t client_minor_version;
3188         } in;
3189
3190         struct {
3191                 union spoolss_DriverInfo *info;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
3192                 uint32_t *needed;/* [ref] */
3193                 uint32_t *server_major_version;/* [ref] */
3194                 uint32_t *server_minor_version;/* [ref] */
3195                 WERROR result;
3196         } out;
3197
3198 };
3199
3200
3201 struct spoolss_FindFirstPrinterChangeNotification {
3202         struct {
3203                 WERROR result;
3204         } out;
3205
3206 };
3207
3208
3209 struct spoolss_FindNextPrinterChangeNotification {
3210         struct {
3211                 WERROR result;
3212         } out;
3213
3214 };
3215
3216
3217 struct spoolss_FindClosePrinterNotify {
3218         struct {
3219                 struct policy_handle *handle;/* [ref] */
3220         } in;
3221
3222         struct {
3223                 WERROR result;
3224         } out;
3225
3226 };
3227
3228
3229 struct spoolss_RouterFindFirstPrinterChangeNotificationOld {
3230         struct {
3231                 WERROR result;
3232         } out;
3233
3234 };
3235
3236
3237 struct spoolss_ReplyOpenPrinter {
3238         struct {
3239                 const char *server_name;/* [charset(UTF16)] */
3240                 uint32_t printer_local;
3241                 enum winreg_Type type;
3242                 uint32_t bufsize;/* [range(0,512)] */
3243                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
3244         } in;
3245
3246         struct {
3247                 struct policy_handle *handle;/* [ref] */
3248                 WERROR result;
3249         } out;
3250
3251 };
3252
3253
3254 struct spoolss_RouterReplyPrinter {
3255         struct {
3256                 struct policy_handle *handle;/* [ref] */
3257                 uint32_t flags;
3258                 uint32_t bufsize;/* [range(0,512)] */
3259                 uint8_t *buffer;/* [unique,size_is(bufsize)] */
3260         } in;
3261
3262         struct {
3263                 WERROR result;
3264         } out;
3265
3266 };
3267
3268
3269 struct spoolss_ReplyClosePrinter {
3270         struct {
3271                 struct policy_handle *handle;/* [ref] */
3272         } in;
3273
3274         struct {
3275                 struct policy_handle *handle;/* [ref] */
3276                 WERROR result;
3277         } out;
3278
3279 };
3280
3281
3282 struct spoolss_AddPortEx {
3283         struct {
3284                 WERROR result;
3285         } out;
3286
3287 };
3288
3289
3290 struct spoolss_RouterFindFirstPrinterChangeNotification {
3291         struct {
3292                 WERROR result;
3293         } out;
3294
3295 };
3296
3297
3298 struct spoolss_SpoolerInit {
3299         struct {
3300                 WERROR result;
3301         } out;
3302
3303 };
3304
3305
3306 struct spoolss_ResetPrinterEx {
3307         struct {
3308                 WERROR result;
3309         } out;
3310
3311 };
3312
3313
3314 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx {
3315         struct {
3316                 struct policy_handle *handle;/* [ref] */
3317                 uint32_t flags;
3318                 uint32_t options;
3319                 const char *local_machine;/* [unique,charset(UTF16)] */
3320                 uint32_t printer_local;
3321                 struct spoolss_NotifyOption *notify_options;/* [unique] */
3322         } in;
3323
3324         struct {
3325                 WERROR result;
3326         } out;
3327
3328 };
3329
3330
3331 struct spoolss_RouterReplyPrinterEx {
3332         struct {
3333                 struct policy_handle *handle;/* [ref] */
3334                 uint32_t color;
3335                 uint32_t flags;
3336                 uint32_t reply_type;
3337                 union spoolss_ReplyPrinterInfo info;/* [switch_is(reply_type)] */
3338         } in;
3339
3340         struct {
3341                 uint32_t *reply_result;/* [ref] */
3342                 WERROR result;
3343         } out;
3344
3345 };
3346
3347
3348 struct spoolss_RouterRefreshPrinterChangeNotify {
3349         struct {
3350                 struct policy_handle *handle;/* [ref] */
3351                 uint32_t change_low;
3352                 struct spoolss_NotifyOption *options;/* [unique] */
3353         } in;
3354
3355         struct {
3356                 struct spoolss_NotifyInfo **info;/* [ref] */
3357                 WERROR result;
3358         } out;
3359
3360 };
3361
3362
3363 struct spoolss_44 {
3364         struct {
3365                 WERROR result;
3366         } out;
3367
3368 };
3369
3370
3371 struct spoolss_OpenPrinterEx {
3372         struct {
3373                 const char *printername;/* [unique,charset(UTF16)] */
3374                 const char *datatype;/* [unique,charset(UTF16)] */
3375                 struct spoolss_DevmodeContainer devmode_ctr;
3376                 uint32_t access_mask;
3377                 uint32_t level;
3378                 union spoolss_UserLevel userlevel;/* [switch_is(level)] */
3379         } in;
3380
3381         struct {
3382                 struct policy_handle *handle;/* [ref] */
3383                 WERROR result;
3384         } out;
3385
3386 };
3387
3388
3389 struct spoolss_AddPrinterEx {
3390         struct {
3391                 const char *server;/* [unique,charset(UTF16)] */
3392                 struct spoolss_SetPrinterInfoCtr *info_ctr;/* [ref] */
3393                 struct spoolss_DevmodeContainer *devmode_ctr;/* [ref] */
3394                 struct sec_desc_buf *secdesc_ctr;/* [ref] */
3395                 struct spoolss_UserLevelCtr *userlevel_ctr;/* [ref] */
3396         } in;
3397
3398         struct {
3399                 struct policy_handle *handle;/* [ref] */
3400                 WERROR result;
3401         } out;
3402
3403 };
3404
3405
3406 struct spoolss_47 {
3407         struct {
3408                 WERROR result;
3409         } out;
3410
3411 };
3412
3413
3414 struct spoolss_EnumPrinterData {
3415         struct {
3416                 struct policy_handle *handle;/* [ref] */
3417                 uint32_t enum_index;
3418                 uint32_t value_offered;
3419                 uint32_t data_offered;
3420         } in;
3421
3422         struct {
3423                 const char *value_name;/* [charset(UTF16),size_is(value_offered/2)] */
3424                 uint32_t *value_needed;/* [ref] */
3425                 enum winreg_Type *type;/* [ref] */
3426                 uint8_t *data;/* [ref,flag(LIBNDR_PRINT_ARRAY_HEX),size_is(data_offered)] */
3427                 uint32_t *data_needed;/* [ref] */
3428                 WERROR result;
3429         } out;
3430
3431 };
3432
3433
3434 struct spoolss_DeletePrinterData {
3435         struct {
3436                 struct policy_handle *handle;/* [ref] */
3437                 const char *value_name;/* [charset(UTF16)] */
3438         } in;
3439
3440         struct {
3441                 WERROR result;
3442         } out;
3443
3444 };
3445
3446
3447 struct spoolss_4a {
3448         struct {
3449                 WERROR result;
3450         } out;
3451
3452 };
3453
3454
3455 struct spoolss_4b {
3456         struct {
3457                 WERROR result;
3458         } out;
3459
3460 };
3461
3462
3463 struct spoolss_4c {
3464         struct {
3465                 WERROR result;
3466         } out;
3467
3468 };
3469
3470
3471 struct spoolss_SetPrinterDataEx {
3472         struct {
3473                 struct policy_handle *handle;/* [ref] */
3474                 const char *key_name;/* [charset(UTF16)] */
3475                 const char *value_name;/* [charset(UTF16)] */
3476                 enum winreg_Type type;
3477                 uint8_t *buffer;/* [ref,size_is(offered)] */
3478                 uint32_t offered;
3479         } in;
3480
3481         struct {
3482                 WERROR result;
3483         } out;
3484
3485 };
3486
3487
3488 struct spoolss_GetPrinterDataEx {
3489         struct {
3490                 struct policy_handle *handle;/* [ref] */
3491                 const char *key_name;/* [charset(UTF16)] */
3492                 const char *value_name;/* [charset(UTF16)] */
3493                 uint32_t offered;
3494         } in;
3495
3496         struct {
3497                 enum winreg_Type *type;/* [ref] */
3498                 uint8_t *buffer;/* [ref,size_is(offered)] */
3499                 uint32_t *needed;/* [ref] */
3500                 WERROR result;
3501         } out;
3502
3503 };
3504
3505
3506 struct _spoolss_EnumPrinterDataEx {
3507         struct {
3508                 struct policy_handle *handle;/* [ref] */
3509                 const char *key_name;/* [charset(UTF16)] */
3510                 uint32_t offered;
3511         } in;
3512
3513         struct {
3514                 DATA_BLOB info;
3515                 uint32_t *needed;/* [ref] */
3516                 uint32_t *count;/* [ref] */
3517                 WERROR result;
3518         } out;
3519
3520 };
3521
3522
3523 struct __spoolss_EnumPrinterDataEx {
3524         struct {
3525                 uint32_t count;
3526         } in;
3527
3528         struct {
3529                 struct spoolss_PrinterEnumValues *info;
3530         } out;
3531
3532 };
3533
3534
3535 struct spoolss_EnumPrinterDataEx {
3536         struct {
3537                 struct policy_handle *handle;/* [ref] */
3538                 const char *key_name;/* [charset(UTF16)] */
3539                 uint32_t offered;
3540         } in;
3541
3542         struct {
3543                 uint32_t *count;/* [ref] */
3544                 struct spoolss_PrinterEnumValues **info;/* [ref,size_is(,*count)] */
3545                 uint32_t *needed;/* [ref] */
3546                 WERROR result;
3547         } out;
3548
3549 };
3550
3551
3552 struct spoolss_EnumPrinterKey {
3553         struct {
3554                 struct policy_handle *handle;/* [ref] */
3555                 const char *key_name;/* [charset(UTF16)] */
3556                 uint32_t offered;
3557         } in;
3558
3559         struct {
3560                 struct spoolss_StringArray2 *key_buffer;/* [ref] */
3561                 uint32_t *needed;/* [ref] */
3562                 WERROR result;
3563         } out;
3564
3565 };
3566
3567
3568 struct spoolss_DeletePrinterDataEx {
3569         struct {
3570                 struct policy_handle *handle;/* [ref] */
3571                 const char *key_name;/* [charset(UTF16)] */
3572                 const char *value_name;/* [charset(UTF16)] */
3573         } in;
3574
3575         struct {
3576                 WERROR result;
3577         } out;
3578
3579 };
3580
3581
3582 struct spoolss_DeletePrinterKey {
3583         struct {
3584                 struct policy_handle *handle;/* [ref] */
3585                 const char *key_name;/* [charset(UTF16)] */
3586         } in;
3587
3588         struct {
3589                 WERROR result;
3590         } out;
3591
3592 };
3593
3594
3595 struct spoolss_53 {
3596         struct {
3597                 WERROR result;
3598         } out;
3599
3600 };
3601
3602
3603 struct spoolss_DeletePrinterDriverEx {
3604         struct {
3605                 const char *server;/* [unique,charset(UTF16)] */
3606