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