1 /* header auto-generated by pidl */
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/misc.h"
8 #include "librpc/gen_ndr/security.h"
9 #include "librpc/gen_ndr/winreg.h"
10 #ifndef _HEADER_spoolss
11 #define _HEADER_spoolss
13 #define PRINTER_STATUS_OK ( 0x00000000 )
14 #define JOB_STATUS_QUEUED ( 0x0000 )
15 #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) )
16 #define SPL_ARCH_WIN40 ( "WIN40" )
17 #define SPL_ARCH_W32X86 ( "W32X86" )
18 #define SPL_ARCH_W32MIPS ( "W32MIPS" )
19 #define SPL_ARCH_W32ALPHA ( "W32ALPHA" )
20 #define SPL_ARCH_W32PPC ( "W32PPC" )
21 #define SPL_ARCH_IA64 ( "IA64" )
22 #define SPL_ARCH_X64 ( "x64" )
23 #define SPOOLSS_ARCHITECTURE_ALL ( "all" )
24 #define SPOOLSS_ARCHITECTURE_NT_X86 ( "Windows NT x86" )
25 #define SPOOLSS_DEFAULT_SERVER_PATH ( "C:\\WINDOWS\\system32\\spool" )
26 #define SPL_LOCAL_PORT ( "Local Port" )
27 #define SPL_TCPIP_PORT ( "Standard TCP/IP Port" )
28 #define SPL_XCV_MONITOR_LOCALMON ( ",XcvMonitor Local Port" )
29 #define SPL_XCV_MONITOR_TCPMON ( ",XcvMonitor Standard TCP/IP Port" )
30 #define PRINTER_CHANGE_PRINTER ( 0x000000FF )
31 #define PRINTER_CHANGE_JOB ( 0x0000FF00 )
32 #define PRINTER_CHANGE_FORM ( (PRINTER_CHANGE_ADD_FORM|PRINTER_CHANGE_SET_FORM|PRINTER_CHANGE_DELETE_FORM) )
33 #define PRINTER_CHANGE_PORT ( (PRINTER_CHANGE_ADD_PORT|PRINTER_CHANGE_CONFIGURE_PORT|PRINTER_CHANGE_DELETE_PORT) )
34 #define PRINTER_CHANGE_PRINT_PROCESSOR ( 0x07000000 )
35 #define PRINTER_CHANGE_PRINTER_DRIVER ( (PRINTER_CHANGE_ADD_PRINTER_DRIVER|PRINTER_CHANGE_SET_PRINTER_DRIVER|PRINTER_CHANGE_DELETE_PRINTER_DRIVER) )
36 #define PRINTER_CHANGE_ALL ( (PRINTER_CHANGE_PRINTER|PRINTER_CHANGE_JOB|PRINTER_CHANGE_FORM|PRINTER_CHANGE_PORT|PRINTER_CHANGE_PRINT_PROCESSOR|PRINTER_CHANGE_PRINTER_DRIVER) )
37 #define SERVER_ALL_ACCESS ( SEC_STD_REQUIRED|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
38 #define SERVER_READ ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
39 #define SERVER_WRITE ( STANDARD_RIGHTS_WRITE_ACCESS|SERVER_ACCESS_ADMINISTER|SERVER_ACCESS_ENUMERATE )
40 #define SERVER_EXECUTE ( SEC_STD_READ_CONTROL|SERVER_ACCESS_ENUMERATE )
41 #define PRINTER_ALL_ACCESS ( SEC_STD_REQUIRED|PRINTER_ACCESS_ADMINISTER|PRINTER_ACCESS_USE )
42 #define PRINTER_READ ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
43 #define PRINTER_WRITE ( STANDARD_RIGHTS_WRITE_ACCESS|PRINTER_ACCESS_USE )
44 #define PRINTER_EXECUTE ( SEC_STD_READ_CONTROL|PRINTER_ACCESS_USE )
45 #define JOB_ALL_ACCESS ( SEC_STD_REQUIRED|JOB_ACCESS_ADMINISTER )
46 #define JOB_READ ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
47 #define JOB_WRITE ( STANDARD_RIGHTS_WRITE_ACCESS|JOB_ACCESS_ADMINISTER )
48 #define JOB_EXECUTE ( SEC_STD_READ_CONTROL|JOB_ACCESS_ADMINISTER )
49 #define PRINTER_ACE_FULL_CONTROL ( SEC_GENERIC_ALL|PRINTER_ALL_ACCESS )
50 #define PRINTER_ACE_MANAGE_DOCUMENTS ( SEC_GENERIC_ALL|READ_CONTROL_ACCESS )
51 #define PRINTER_ACE_PRINT ( GENERIC_EXECUTE_ACCESS|READ_CONTROL_ACCESS|PRINTER_ACCESS_USE )
63 struct spoolss_TimeCtr
{
64 uint32_t size
;/* [value(ndr_size_spoolss_Time(time,ndr->iconv_convenience,ndr->flags))] */
65 struct spoolss_Time
*time
;/* [unique] */
68 enum spoolss_ProcessorArchitecture
69 #ifndef USE_UINT_ENUMS
71 PROCESSOR_ARCHITECTURE_INTEL
=0x0000,
72 PROCESSOR_ARCHITECTURE_IA64
=0x0006,
73 PROCESSOR_ARCHITECTURE_AMD64
=0x0009
76 { __donnot_use_enum_spoolss_ProcessorArchitecture
=0x7FFFFFFF}
77 #define PROCESSOR_ARCHITECTURE_INTEL ( 0x0000 )
78 #define PROCESSOR_ARCHITECTURE_IA64 ( 0x0006 )
79 #define PROCESSOR_ARCHITECTURE_AMD64 ( 0x0009 )
83 enum spoolss_ProcessorType
84 #ifndef USE_UINT_ENUMS
86 PROCESSOR_INTEL_386
=0x00000182,
87 PROCESSOR_INTEL_486
=0x000001E6,
88 PROCESSOR_INTEL_PENTIUM
=0x0000024A,
89 PROCESSOR_INTEL_IA64
=0x00000898,
90 PROCESSOR_AMD_X8664
=0x000022A0
93 { __donnot_use_enum_spoolss_ProcessorType
=0x7FFFFFFF}
94 #define PROCESSOR_INTEL_386 ( 0x00000182 )
95 #define PROCESSOR_INTEL_486 ( 0x000001E6 )
96 #define PROCESSOR_INTEL_PENTIUM ( 0x0000024A )
97 #define PROCESSOR_INTEL_IA64 ( 0x00000898 )
98 #define PROCESSOR_AMD_X8664 ( 0x000022A0 )
102 enum spoolss_MajorVersion
103 #ifndef USE_UINT_ENUMS
105 SPOOLSS_MAJOR_VERSION_NT4_95_98_ME
=0x00000004,
106 SPOOLSS_MAJOR_VERSION_2000_2003_XP
=0x00000005,
107 SPOOLSS_MAJOR_VERSION_2008_VISTA
=0x00000006
110 { __donnot_use_enum_spoolss_MajorVersion
=0x7FFFFFFF}
111 #define SPOOLSS_MAJOR_VERSION_NT4_95_98_ME ( 0x00000004 )
112 #define SPOOLSS_MAJOR_VERSION_2000_2003_XP ( 0x00000005 )
113 #define SPOOLSS_MAJOR_VERSION_2008_VISTA ( 0x00000006 )
117 enum spoolss_MinorVersion
118 #ifndef USE_UINT_ENUMS
120 SPOOLSS_MINOR_VERSION_0
=0x00000000,
121 SPOOLSS_MINOR_VERSION_XP
=0x00000001,
122 SPOOLSS_MINOR_VERSION_2003_XP64
=0x00000002,
123 SPOOLSS_MINOR_VERSION_98
=0x0000000a,
124 SPOOLSS_MINOR_VERSION_ME
=0x0000005a
127 { __donnot_use_enum_spoolss_MinorVersion
=0x7FFFFFFF}
128 #define SPOOLSS_MINOR_VERSION_0 ( 0x00000000 )
129 #define SPOOLSS_MINOR_VERSION_XP ( 0x00000001 )
130 #define SPOOLSS_MINOR_VERSION_2003_XP64 ( 0x00000002 )
131 #define SPOOLSS_MINOR_VERSION_98 ( 0x0000000a )
132 #define SPOOLSS_MINOR_VERSION_ME ( 0x0000005a )
136 /* bitmap spoolss_PrinterStatus */
137 #define PRINTER_STATUS_PAUSED ( 0x00000001 )
138 #define PRINTER_STATUS_ERROR ( 0x00000002 )
139 #define PRINTER_STATUS_PENDING_DELETION ( 0x00000004 )
140 #define PRINTER_STATUS_PAPER_JAM ( 0x00000008 )
141 #define PRINTER_STATUS_PAPER_OUT ( 0x00000010 )
142 #define PRINTER_STATUS_MANUAL_FEED ( 0x00000020 )
143 #define PRINTER_STATUS_PAPER_PROBLEM ( 0x00000040 )
144 #define PRINTER_STATUS_OFFLINE ( 0x00000080 )
145 #define PRINTER_STATUS_IO_ACTIVE ( 0x00000100 )
146 #define PRINTER_STATUS_BUSY ( 0x00000200 )
147 #define PRINTER_STATUS_PRINTING ( 0x00000400 )
148 #define PRINTER_STATUS_OUTPUT_BIN_FULL ( 0x00000800 )
149 #define PRINTER_STATUS_NOT_AVAILABLE ( 0x00001000 )
150 #define PRINTER_STATUS_WAITING ( 0x00002000 )
151 #define PRINTER_STATUS_PROCESSING ( 0x00004000 )
152 #define PRINTER_STATUS_INITIALIZING ( 0x00008000 )
153 #define PRINTER_STATUS_WARMING_UP ( 0x00010000 )
154 #define PRINTER_STATUS_TONER_LOW ( 0x00020000 )
155 #define PRINTER_STATUS_NO_TONER ( 0x00040000 )
156 #define PRINTER_STATUS_PAGE_PUNT ( 0x00080000 )
157 #define PRINTER_STATUS_USER_INTERVENTION ( 0x00100000 )
158 #define PRINTER_STATUS_OUT_OF_MEMORY ( 0x00200000 )
159 #define PRINTER_STATUS_DOOR_OPEN ( 0x00400000 )
160 #define PRINTER_STATUS_SERVER_UNKNOWN ( 0x00800000 )
161 #define PRINTER_STATUS_POWER_SAVE ( 0x01000000 )
163 /* bitmap spoolss_JobStatus */
164 #define JOB_STATUS_PAUSED ( 0x00000001 )
165 #define JOB_STATUS_ERROR ( 0x00000002 )
166 #define JOB_STATUS_DELETING ( 0x00000004 )
167 #define JOB_STATUS_SPOOLING ( 0x00000008 )
168 #define JOB_STATUS_PRINTING ( 0x00000010 )
169 #define JOB_STATUS_OFFLINE ( 0x00000020 )
170 #define JOB_STATUS_PAPEROUT ( 0x00000040 )
171 #define JOB_STATUS_PRINTED ( 0x00000080 )
172 #define JOB_STATUS_DELETED ( 0x00000100 )
173 #define JOB_STATUS_BLOCKED_DEVQ ( 0x00000200 )
174 #define JOB_STATUS_USER_INTERVENTION ( 0x00000400 )
175 #define JOB_STATUS_RESTART ( 0x00000800 )
176 #define JOB_STATUS_COMPLETE ( 0x00001000 )
178 struct spoolss_PrinterInfo0
{
179 const char * printername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
180 const char * servername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
183 uint32_t total_bytes
;
184 struct spoolss_Time time
;
185 uint32_t global_counter
;
186 uint32_t total_pages
;
190 uint32_t max_spooling
;
191 uint32_t session_counter
;
192 uint32_t num_error_out_of_paper
;
193 uint32_t num_error_not_ready
;
195 uint32_t number_of_processors
;
196 enum spoolss_ProcessorType processor_type
;
197 uint32_t high_part_total_bytes
;
201 uint32_t enumerate_network_printers
;
202 uint32_t c_setprinter
;
203 enum spoolss_ProcessorArchitecture processor_architecture
;
204 uint16_t processor_level
;
208 }/* [gensize,public] */;
210 /* bitmap spoolss_DeviceModeFields */
211 #define DEVMODE_ORIENTATION ( 0x00000001 )
212 #define DEVMODE_PAPERSIZE ( 0x00000002 )
213 #define DEVMODE_PAPERLENGTH ( 0x00000004 )
214 #define DEVMODE_PAPERWIDTH ( 0x00000008 )
215 #define DEVMODE_SCALE ( 0x00000010 )
216 #define DEVMODE_POSITION ( 0x00000020 )
217 #define DEVMODE_NUP ( 0x00000040 )
218 #define DEVMODE_COPIES ( 0x00000100 )
219 #define DEVMODE_DEFAULTSOURCE ( 0x00000200 )
220 #define DEVMODE_PRINTQUALITY ( 0x00000400 )
221 #define DEVMODE_COLOR ( 0x00000800 )
222 #define DEVMODE_DUPLEX ( 0x00001000 )
223 #define DEVMODE_YRESOLUTION ( 0x00002000 )
224 #define DEVMODE_TTOPTION ( 0x00004000 )
225 #define DEVMODE_COLLATE ( 0x00008000 )
226 #define DEVMODE_FORMNAME ( 0x00010000 )
227 #define DEVMODE_LOGPIXELS ( 0x00020000 )
228 #define DEVMODE_BITSPERPEL ( 0x00040000 )
229 #define DEVMODE_PELSWIDTH ( 0x00080000 )
230 #define DEVMODE_PELSHEIGHT ( 0x00100000 )
231 #define DEVMODE_DISPLAYFLAGS ( 0x00200000 )
232 #define DEVMODE_DISPLAYFREQUENCY ( 0x00400000 )
233 #define DEVMODE_ICMMETHOD ( 0x00800000 )
234 #define DEVMODE_ICMINTENT ( 0x01000000 )
235 #define DEVMODE_MEDIATYPE ( 0x02000000 )
236 #define DEVMODE_DITHERTYPE ( 0x04000000 )
237 #define DEVMODE_PANNINGWIDTH ( 0x08000000 )
238 #define DEVMODE_PANNINGHEIGHT ( 0x10000000 )
240 struct spoolss_DeviceMode
{
241 const char *devicename
;/* [charset(UTF16)] */
242 uint16_t specversion
;
243 uint16_t driverversion
;
245 uint16_t __driverextra_length
;/* [value(r->driverextra_data.length)] */
247 uint16_t orientation
;
249 uint16_t paperlength
;
253 uint16_t defaultsource
;
254 uint16_t printquality
;
257 uint16_t yresolution
;
260 const char *formname
;/* [charset(UTF16)] */
265 uint32_t displayflags
;
266 uint32_t displayfrequency
;
273 uint32_t panningwidth
;
274 uint32_t panningheight
;
275 DATA_BLOB driverextra_data
;/* [subcontext_size(__driverextra_length),subcontext(0),flag(LIBNDR_FLAG_REMAINING)] */
276 }/* [gensize,public] */;
278 /* bitmap spoolss_EnumPrinterFlags */
279 #define PRINTER_ENUM_DEFAULT ( 0x00000001 )
280 #define PRINTER_ENUM_LOCAL ( 0x00000002 )
281 #define PRINTER_ENUM_CONNECTIONS ( 0x00000004 )
282 #define PRINTER_ENUM_FAVORITE ( 0x00000004 )
283 #define PRINTER_ENUM_NAME ( 0x00000008 )
284 #define PRINTER_ENUM_REMOTE ( 0x00000010 )
285 #define PRINTER_ENUM_SHARED ( 0x00000020 )
286 #define PRINTER_ENUM_NETWORK ( 0x00000040 )
287 #define PRINTER_ENUM_EXPAND ( 0x00004000 )
288 #define PRINTER_ENUM_CONTAINER ( 0x00008000 )
289 #define PRINTER_ENUM_ICON1 ( 0x00010000 )
290 #define PRINTER_ENUM_ICON2 ( 0x00020000 )
291 #define PRINTER_ENUM_ICON3 ( 0x00040000 )
292 #define PRINTER_ENUM_ICON4 ( 0x00080000 )
293 #define PRINTER_ENUM_ICON5 ( 0x00100000 )
294 #define PRINTER_ENUM_ICON6 ( 0x00200000 )
295 #define PRINTER_ENUM_ICON7 ( 0x00400000 )
296 #define PRINTER_ENUM_ICON8 ( 0x00800000 )
297 #define PRINTER_ENUM_HIDE ( 0x01000000 )
299 struct spoolss_PrinterInfo1
{
301 const char * description
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
302 const char * name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
303 const char * comment
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
304 }/* [gensize,public] */;
306 /* bitmap spoolss_PrinterAttributes */
307 #define PRINTER_ATTRIBUTE_QUEUED ( 0x00000001 )
308 #define PRINTER_ATTRIBUTE_DIRECT ( 0x00000002 )
309 #define PRINTER_ATTRIBUTE_DEFAULT ( 0x00000004 )
310 #define PRINTER_ATTRIBUTE_SHARED ( 0x00000008 )
311 #define PRINTER_ATTRIBUTE_NETWORK ( 0x00000010 )
312 #define PRINTER_ATTRIBUTE_HIDDEN ( 0x00000020 )
313 #define PRINTER_ATTRIBUTE_LOCAL ( 0x00000040 )
314 #define PRINTER_ATTRIBUTE_ENABLE_DEVQ ( 0x00000080 )
315 #define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS ( 0x00000100 )
316 #define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST ( 0x00000200 )
317 #define PRINTER_ATTRIBUTE_WORK_OFFLINE ( 0x00000400 )
318 #define PRINTER_ATTRIBUTE_ENABLE_BIDI ( 0x00000800 )
319 #define PRINTER_ATTRIBUTE_RAW_ONLY ( 0x00001000 )
320 #define PRINTER_ATTRIBUTE_PUBLISHED ( 0x00002000 )
321 #define PRINTER_ATTRIBUTE_FAX ( 0x00004000 )
322 #define PRINTER_ATTRIBUTE_TS ( 0x00008000 )
324 struct spoolss_PrinterInfo2
{
325 const char * servername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
326 const char * printername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
327 const char * sharename
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
328 const char * portname
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
329 const char * drivername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
330 const char * comment
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
331 const char * location
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
332 struct spoolss_DeviceMode
*devmode
;/* [relative,subcontext(0)] */
333 const char * sepfile
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
334 const char * printprocessor
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
335 const char * datatype
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
336 const char * parameters
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
337 struct security_descriptor
*secdesc
;/* [relative,subcontext(0)] */
339 uint32_t priority
;/* [range(0,99)] */
340 uint32_t defaultpriority
;
346 }/* [gensize,public] */;
348 struct spoolss_PrinterInfo3
{
349 struct security_descriptor
*secdesc
;/* [relative,subcontext(0)] */
350 }/* [gensize,public] */;
352 struct spoolss_PrinterInfo4
{
353 const char * printername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
354 const char * servername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
356 }/* [gensize,public] */;
358 struct spoolss_PrinterInfo5
{
359 const char * printername
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
360 const char * portname
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
362 uint32_t device_not_selected_timeout
;
363 uint32_t transmission_retry_timeout
;
364 }/* [gensize,public] */;
366 struct spoolss_PrinterInfo6
{
368 }/* [gensize,public] */;
370 /* bitmap spoolss_DsPrintAction */
371 #define DSPRINT_PUBLISH ( 0x00000001 )
372 #define DSPRINT_UPDATE ( 0x00000002 )
373 #define DSPRINT_UNPUBLISH ( 0x00000004 )
374 #define DSPRINT_REPUBLISH ( 0x00000008 )
375 #define DSPRINT_PENDING ( 0x80000000 )
377 struct spoolss_PrinterInfo7
{
378 const char * guid
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
380 }/* [gensize,public] */;
382 struct spoolss_DeviceModeInfo
{
383 struct spoolss_DeviceMode
*devmode
;/* [relative,subcontext(0)] */
386 union spoolss_PrinterInfo
{
387 struct spoolss_PrinterInfo0 info0
;/* [case(0)] */
388 struct spoolss_PrinterInfo1 info1
;/* [case] */
389 struct spoolss_PrinterInfo2 info2
;/* [case(2)] */
390 struct spoolss_PrinterInfo3 info3
;/* [case(3)] */
391 struct spoolss_PrinterInfo4 info4
;/* [case(4)] */
392 struct spoolss_PrinterInfo5 info5
;/* [case(5)] */
393 struct spoolss_PrinterInfo6 info6
;/* [case(6)] */
394 struct spoolss_PrinterInfo7 info7
;/* [case(7)] */
395 struct spoolss_DeviceModeInfo info8
;/* [case(8)] */
396 struct spoolss_DeviceModeInfo info9
;/* [case(9)] */
397 }/* [relative_base,gensize,public,nodiscriminant] */;
399 struct spoolss_DevmodeContainer
{
400 uint32_t _ndr_size
;/* [value(_ndr_size_spoolss_DeviceMode(devmode,ndr->iconv_convenience,ndr->flags))] */
401 struct spoolss_DeviceMode
*devmode
;/* [unique,subcontext_size(_ndr_size),subcontext(4)] */
404 struct spoolss_JobInfo1
{
406 const char * printer_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
407 const char * server_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
408 const char * user_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
409 const char * document_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
410 const char * data_type
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
411 const char * text_status
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
413 uint32_t priority
;/* [range(0,99)] */
415 uint32_t total_pages
;
416 uint32_t pages_printed
;
417 struct spoolss_Time submitted
;
418 }/* [gensize,public] */;
420 struct spoolss_JobInfo2
{
422 const char * printer_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
423 const char * server_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
424 const char * user_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
425 const char * document_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
426 const char * notify_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
427 const char * data_type
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
428 const char * print_processor
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
429 const char * parameters
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
430 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
431 struct spoolss_DeviceMode
*devmode
;/* [relative] */
432 const char * text_status
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
433 struct security_descriptor
*secdesc
;/* [relative] */
435 uint32_t priority
;/* [range(0,99)] */
439 uint32_t total_pages
;
441 struct spoolss_Time submitted
;
443 uint32_t pages_printed
;
444 }/* [gensize,public] */;
446 struct spoolss_JobInfo3
{
448 uint32_t next_job_id
;
450 }/* [gensize,public] */;
452 struct spoolss_JobInfo4
{
454 const char * printer_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
455 const char * server_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
456 const char * user_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
457 const char * document_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
458 const char * notify_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
459 const char * data_type
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
460 const char * print_processor
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
461 const char * parameters
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
462 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
463 struct spoolss_DeviceMode
*devmode
;/* [relative] */
464 const char * text_status
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
465 struct security_descriptor
*secdesc
;/* [relative] */
467 uint32_t priority
;/* [range(0,99)] */
471 uint32_t total_pages
;
473 struct spoolss_Time submitted
;
475 uint32_t pages_printed
;
477 }/* [gensize,public] */;
479 union spoolss_JobInfo
{
480 struct spoolss_JobInfo1 info1
;/* [case] */
481 struct spoolss_JobInfo2 info2
;/* [case(2)] */
482 struct spoolss_JobInfo3 info3
;/* [case(3)] */
483 struct spoolss_JobInfo4 info4
;/* [case(4)] */
484 }/* [relative_base,gensize,public,nodiscriminant] */;
486 struct spoolss_SetJobInfo1
{
488 const char *printer_name
;/* [unique,charset(UTF16)] */
489 const char *server_name
;/* [unique,charset(UTF16)] */
490 const char *user_name
;/* [unique,charset(UTF16)] */
491 const char *document_name
;/* [unique,charset(UTF16)] */
492 const char *data_type
;/* [unique,charset(UTF16)] */
493 const char *text_status
;/* [unique,charset(UTF16)] */
495 uint32_t priority
;/* [range(0,99)] */
497 uint32_t total_pages
;
498 uint32_t pages_printed
;
499 struct spoolss_Time submitted
;
502 struct spoolss_SetJobInfo2
{
504 const char *printer_name
;/* [unique,charset(UTF16)] */
505 const char *server_name
;/* [unique,charset(UTF16)] */
506 const char *user_name
;/* [unique,charset(UTF16)] */
507 const char *document_name
;/* [unique,charset(UTF16)] */
508 const char *notify_name
;/* [unique,charset(UTF16)] */
509 const char *data_type
;/* [unique,charset(UTF16)] */
510 const char *print_processor
;/* [unique,charset(UTF16)] */
511 const char *parameters
;/* [unique,charset(UTF16)] */
512 const char *driver_name
;/* [unique,charset(UTF16)] */
513 uint32_t _devmode_ptr
;
514 const char *text_status
;/* [unique,charset(UTF16)] */
515 uint32_t _secdesc_ptr
;
517 uint32_t priority
;/* [range(0,99)] */
521 uint32_t total_pages
;
523 struct spoolss_Time submitted
;
525 uint32_t pages_printed
;
528 struct spoolss_SetJobInfo4
{
530 const char *printer_name
;/* [unique,charset(UTF16)] */
531 const char *server_name
;/* [unique,charset(UTF16)] */
532 const char *user_name
;/* [unique,charset(UTF16)] */
533 const char *document_name
;/* [unique,charset(UTF16)] */
534 const char *notify_name
;/* [unique,charset(UTF16)] */
535 const char *data_type
;/* [unique,charset(UTF16)] */
536 const char *print_processor
;/* [unique,charset(UTF16)] */
537 const char *parameters
;/* [unique,charset(UTF16)] */
538 const char *driver_name
;/* [unique,charset(UTF16)] */
539 uint32_t _devmode_ptr
;
540 const char *text_status
;/* [unique,charset(UTF16)] */
541 uint32_t _secdesc_ptr
;
543 uint32_t priority
;/* [range(0,99)] */
547 uint32_t total_pages
;
549 struct spoolss_Time submitted
;
551 uint32_t pages_printed
;
555 union spoolss_SetJobInfo
{
556 struct spoolss_SetJobInfo1
*info1
;/* [unique,case] */
557 struct spoolss_SetJobInfo2
*info2
;/* [unique,case(2)] */
558 struct spoolss_JobInfo3
*info3
;/* [unique,case(3)] */
559 struct spoolss_SetJobInfo4
*info4
;/* [unique,case(4)] */
562 struct spoolss_JobInfoContainer
{
564 union spoolss_SetJobInfo info
;/* [switch_is(level)] */
567 enum spoolss_JobControl
568 #ifndef USE_UINT_ENUMS
570 SPOOLSS_JOB_CONTROL_PAUSE
=1,
571 SPOOLSS_JOB_CONTROL_RESUME
=2,
572 SPOOLSS_JOB_CONTROL_CANCEL
=3,
573 SPOOLSS_JOB_CONTROL_RESTART
=4,
574 SPOOLSS_JOB_CONTROL_DELETE
=5,
575 SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER
=6,
576 SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED
=7,
577 SPOOLSS_JOB_CONTROL_RETAIN
=8,
578 SPOOLSS_JOB_CONTROL_RELEASE
=9
581 { __donnot_use_enum_spoolss_JobControl
=0x7FFFFFFF}
582 #define SPOOLSS_JOB_CONTROL_PAUSE ( 1 )
583 #define SPOOLSS_JOB_CONTROL_RESUME ( 2 )
584 #define SPOOLSS_JOB_CONTROL_CANCEL ( 3 )
585 #define SPOOLSS_JOB_CONTROL_RESTART ( 4 )
586 #define SPOOLSS_JOB_CONTROL_DELETE ( 5 )
587 #define SPOOLSS_JOB_CONTROL_SEND_TO_PRINTER ( 6 )
588 #define SPOOLSS_JOB_CONTROL_LAST_PAGE_EJECTED ( 7 )
589 #define SPOOLSS_JOB_CONTROL_RETAIN ( 8 )
590 #define SPOOLSS_JOB_CONTROL_RELEASE ( 9 )
594 enum spoolss_PrinterControl
595 #ifndef USE_UINT_ENUMS
597 SPOOLSS_PRINTER_CONTROL_UNPAUSE
=0,
598 SPOOLSS_PRINTER_CONTROL_PAUSE
=1,
599 SPOOLSS_PRINTER_CONTROL_RESUME
=2,
600 SPOOLSS_PRINTER_CONTROL_PURGE
=3,
601 SPOOLSS_PRINTER_CONTROL_SET_STATUS
=4
604 { __donnot_use_enum_spoolss_PrinterControl
=0x7FFFFFFF}
605 #define SPOOLSS_PRINTER_CONTROL_UNPAUSE ( 0 )
606 #define SPOOLSS_PRINTER_CONTROL_PAUSE ( 1 )
607 #define SPOOLSS_PRINTER_CONTROL_RESUME ( 2 )
608 #define SPOOLSS_PRINTER_CONTROL_PURGE ( 3 )
609 #define SPOOLSS_PRINTER_CONTROL_SET_STATUS ( 4 )
613 struct spoolss_SetPrinterInfo0
{
614 const char *servername
;/* [unique,charset(UTF16)] */
615 const char *printername
;/* [unique,charset(UTF16)] */
618 uint32_t total_bytes
;
619 struct spoolss_Time time
;
620 uint32_t global_counter
;
621 uint32_t total_pages
;
625 uint32_t max_spooling
;
626 uint32_t session_counter
;
627 uint32_t num_error_out_of_paper
;
628 uint32_t num_error_not_ready
;
630 uint32_t number_of_processors
;
631 enum spoolss_ProcessorType processor_type
;
632 uint32_t high_part_total_bytes
;
636 uint32_t enumerate_network_printers
;
637 uint32_t c_setprinter
;
638 enum spoolss_ProcessorArchitecture processor_architecture
;
639 uint16_t processor_level
;
645 struct spoolss_SetPrinterInfo1
{
647 const char *description
;/* [unique,charset(UTF16)] */
648 const char *name
;/* [unique,charset(UTF16)] */
649 const char *comment
;/* [unique,charset(UTF16)] */
652 struct spoolss_SetPrinterInfo2
{
653 const char *servername
;/* [unique,charset(UTF16)] */
654 const char *printername
;/* [unique,charset(UTF16)] */
655 const char *sharename
;/* [unique,charset(UTF16)] */
656 const char *portname
;/* [unique,charset(UTF16)] */
657 const char *drivername
;/* [unique,charset(UTF16)] */
658 const char *comment
;/* [unique,charset(UTF16)] */
659 const char *location
;/* [unique,charset(UTF16)] */
660 struct spoolss_DeviceMode
*devmode
;/* [unique,subcontext(0)] */
661 const char *sepfile
;/* [unique,charset(UTF16)] */
662 const char *printprocessor
;/* [unique,charset(UTF16)] */
663 const char *datatype
;/* [unique,charset(UTF16)] */
664 const char *parameters
;/* [unique,charset(UTF16)] */
665 struct security_descriptor
*secdesc
;/* [unique,subcontext(0)] */
667 uint32_t priority
;/* [range(0,99)] */
668 uint32_t defaultpriority
;
676 struct spoolss_SetPrinterInfo3
{
677 uint32_t sec_desc_ptr
;
680 struct spoolss_SetPrinterInfo4
{
681 const char *printername
;/* [unique,charset(UTF16)] */
682 const char *servername
;/* [unique,charset(UTF16)] */
686 struct spoolss_SetPrinterInfo5
{
687 const char *printername
;/* [unique,charset(UTF16)] */
688 const char *portname
;/* [unique,charset(UTF16)] */
690 uint32_t device_not_selected_timeout
;
691 uint32_t transmission_retry_timeout
;
694 struct spoolss_SetPrinterInfo6
{
698 struct spoolss_SetPrinterInfo7
{
699 const char *guid
;/* [unique,charset(UTF16)] */
703 union spoolss_SetPrinterInfo
{
704 struct spoolss_SetPrinterInfo0
*info0
;/* [unique,case(0)] */
705 struct spoolss_SetPrinterInfo1
*info1
;/* [unique,case] */
706 struct spoolss_SetPrinterInfo2
*info2
;/* [unique,case(2)] */
707 struct spoolss_SetPrinterInfo3
*info3
;/* [unique,case(3)] */
708 struct spoolss_SetPrinterInfo4
*info4
;/* [unique,case(4)] */
709 struct spoolss_SetPrinterInfo5
*info5
;/* [unique,case(5)] */
710 struct spoolss_SetPrinterInfo6
*info6
;/* [unique,case(6)] */
711 struct spoolss_SetPrinterInfo7
*info7
;/* [unique,case(7)] */
712 struct spoolss_DeviceModeInfo
*info8
;/* [unique,case(8)] */
713 struct spoolss_DeviceModeInfo
*info9
;/* [unique,case(9)] */
714 }/* [switch_type(uint32)] */;
716 struct spoolss_SetPrinterInfoCtr
{
718 union spoolss_SetPrinterInfo info
;/* [switch_is(level)] */
721 struct spoolss_StringArray
{
722 uint32_t _ndr_size
;/* [value((ndr_size_spoolss_StringArray(r,ndr->iconv_convenience,ndr->flags)-4)/2)] */
723 const char ** string
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
726 struct spoolss_AddDriverInfo1
{
727 const char *driver_name
;/* [unique,charset(UTF16)] */
730 enum spoolss_DriverOSVersion
731 #ifndef USE_UINT_ENUMS
733 SPOOLSS_DRIVER_VERSION_9X
=0,
734 SPOOLSS_DRIVER_VERSION_NT35
=1,
735 SPOOLSS_DRIVER_VERSION_NT4
=2,
736 SPOOLSS_DRIVER_VERSION_200X
=3
739 { __donnot_use_enum_spoolss_DriverOSVersion
=0x7FFFFFFF}
740 #define SPOOLSS_DRIVER_VERSION_9X ( 0 )
741 #define SPOOLSS_DRIVER_VERSION_NT35 ( 1 )
742 #define SPOOLSS_DRIVER_VERSION_NT4 ( 2 )
743 #define SPOOLSS_DRIVER_VERSION_200X ( 3 )
747 struct spoolss_AddDriverInfo2
{
748 enum spoolss_DriverOSVersion version
;
749 const char *driver_name
;/* [unique,charset(UTF16)] */
750 const char *architecture
;/* [unique,charset(UTF16)] */
751 const char *driver_path
;/* [unique,charset(UTF16)] */
752 const char *data_file
;/* [unique,charset(UTF16)] */
753 const char *config_file
;/* [unique,charset(UTF16)] */
756 struct spoolss_AddDriverInfo3
{
757 enum spoolss_DriverOSVersion version
;
758 const char *driver_name
;/* [unique,charset(UTF16)] */
759 const char *architecture
;/* [unique,charset(UTF16)] */
760 const char *driver_path
;/* [unique,charset(UTF16)] */
761 const char *data_file
;/* [unique,charset(UTF16)] */
762 const char *config_file
;/* [unique,charset(UTF16)] */
763 const char *help_file
;/* [unique,charset(UTF16)] */
764 const char *monitor_name
;/* [unique,charset(UTF16)] */
765 const char *default_datatype
;/* [unique,charset(UTF16)] */
766 uint32_t _ndr_size_dependent_files
;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
767 struct spoolss_StringArray
*dependent_files
;/* [unique] */
770 struct spoolss_AddDriverInfo4
{
771 enum spoolss_DriverOSVersion version
;
772 const char *driver_name
;/* [unique,charset(UTF16)] */
773 const char *architecture
;/* [unique,charset(UTF16)] */
774 const char *driver_path
;/* [unique,charset(UTF16)] */
775 const char *data_file
;/* [unique,charset(UTF16)] */
776 const char *config_file
;/* [unique,charset(UTF16)] */
777 const char *help_file
;/* [unique,charset(UTF16)] */
778 const char *monitor_name
;/* [unique,charset(UTF16)] */
779 const char *default_datatype
;/* [unique,charset(UTF16)] */
780 uint32_t _ndr_size_dependent_files
;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
781 struct spoolss_StringArray
*dependent_files
;/* [unique] */
782 uint32_t _ndr_size_previous_names
;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
783 struct spoolss_StringArray
*previous_names
;/* [unique] */
786 /* bitmap spoolss_DriverAttributes */
787 #define PRINTER_DRIVER_PACKAGE_AWARE ( 0x00000002 )
789 struct spoolss_AddDriverInfo5
{
790 enum spoolss_DriverOSVersion version
;
791 const char *driver_name
;/* [unique,charset(UTF16)] */
792 const char *architecture
;/* [unique,charset(UTF16)] */
793 const char *driver_path
;/* [unique,charset(UTF16)] */
794 const char *data_file
;/* [unique,charset(UTF16)] */
795 const char *config_file
;/* [unique,charset(UTF16)] */
796 uint32_t driver_attributes
;
797 uint32_t config_version
;
798 uint32_t driver_version
;
801 struct spoolss_AddDriverInfo6
{
802 enum spoolss_DriverOSVersion version
;
803 const char *driver_name
;/* [unique,charset(UTF16)] */
804 const char *architecture
;/* [unique,charset(UTF16)] */
805 const char *driver_path
;/* [unique,charset(UTF16)] */
806 const char *data_file
;/* [unique,charset(UTF16)] */
807 const char *config_file
;/* [unique,charset(UTF16)] */
808 const char *help_file
;/* [unique,charset(UTF16)] */
809 const char *monitor_name
;/* [unique,charset(UTF16)] */
810 const char *default_datatype
;/* [unique,charset(UTF16)] */
811 uint32_t _ndr_size_dependent_files
;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
812 struct spoolss_StringArray
*dependent_files
;/* [unique] */
813 uint32_t _ndr_size_previous_names
;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
814 struct spoolss_StringArray
*previous_names
;/* [unique] */
816 uint64_t driver_version
;
817 const char *manufacturer_name
;/* [unique,charset(UTF16)] */
818 const char *manufacturer_url
;/* [unique,charset(UTF16)] */
819 const char *hardware_id
;/* [unique,charset(UTF16)] */
820 const char *provider
;/* [unique,charset(UTF16)] */
823 struct spoolss_AddDriverInfo8
{
824 enum spoolss_DriverOSVersion version
;
825 const char *driver_name
;/* [unique,charset(UTF16)] */
826 const char *architecture
;/* [unique,charset(UTF16)] */
827 const char *driver_path
;/* [unique,charset(UTF16)] */
828 const char *data_file
;/* [unique,charset(UTF16)] */
829 const char *config_file
;/* [unique,charset(UTF16)] */
830 const char *help_file
;/* [unique,charset(UTF16)] */
831 const char *monitor_name
;/* [unique,charset(UTF16)] */
832 const char *default_datatype
;/* [unique,charset(UTF16)] */
833 uint32_t _ndr_size_dependent_files
;/* [value(((ndr_size_spoolss_StringArray(dependent_files,ndr->iconv_convenience,ndr->flags)-4)/2))] */
834 struct spoolss_StringArray
*dependent_files
;/* [unique] */
835 uint32_t _ndr_size_previous_names
;/* [value(((ndr_size_spoolss_StringArray(previous_names,ndr->iconv_convenience,ndr->flags)-4)/2))] */
836 struct spoolss_StringArray
*previous_names
;/* [unique] */
838 uint64_t driver_version
;
839 const char *manufacturer_name
;/* [unique,charset(UTF16)] */
840 const char *manufacturer_url
;/* [unique,charset(UTF16)] */
841 const char *hardware_id
;/* [unique,charset(UTF16)] */
842 const char *provider
;/* [unique,charset(UTF16)] */
843 const char *print_processor
;/* [unique,charset(UTF16)] */
844 const char *vendor_setup
;/* [unique,charset(UTF16)] */
845 uint32_t _ndr_size_color_profiles
;/* [value(((ndr_size_spoolss_StringArray(color_profiles,ndr->iconv_convenience,ndr->flags)-4)/2))] */
846 struct spoolss_StringArray
*color_profiles
;/* [unique] */
847 const char *inf_path
;/* [unique,charset(UTF16)] */
848 uint32_t printer_driver_attributes
;
849 uint32_t _ndr_size_core_driver_dependencies
;/* [value(((ndr_size_spoolss_StringArray(core_driver_dependencies,ndr->iconv_convenience,ndr->flags)-4)/2))] */
850 struct spoolss_StringArray
*core_driver_dependencies
;/* [unique] */
851 NTTIME min_inbox_driver_ver_date
;
852 uint64_t min_inbox_driver_ver_version
;
855 union spoolss_AddDriverInfo
{
856 struct spoolss_AddDriverInfo1
*info1
;/* [unique,case] */
857 struct spoolss_AddDriverInfo2
*info2
;/* [unique,case(2)] */
858 struct spoolss_AddDriverInfo3
*info3
;/* [unique,case(3)] */
859 struct spoolss_AddDriverInfo4
*info4
;/* [unique,case(4)] */
860 struct spoolss_AddDriverInfo6
*info6
;/* [unique,case(6)] */
861 struct spoolss_AddDriverInfo8
*info8
;/* [unique,case(8)] */
862 }/* [switch_type(uint32)] */;
864 struct spoolss_AddDriverInfoCtr
{
866 union spoolss_AddDriverInfo info
;/* [switch_is(level)] */
869 struct spoolss_DriverInfo1
{
870 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
871 }/* [gensize,public] */;
873 struct spoolss_DriverInfo2
{
874 enum spoolss_DriverOSVersion version
;
875 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
876 const char * architecture
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
877 const char * driver_path
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
878 const char * data_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
879 const char * config_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
880 }/* [gensize,public] */;
882 struct spoolss_DriverInfo3
{
883 enum spoolss_DriverOSVersion version
;
884 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
885 const char * architecture
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
886 const char * driver_path
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
887 const char * data_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
888 const char * config_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
889 const char * help_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
890 const char ** dependent_files
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
891 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
892 const char * default_datatype
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
893 }/* [gensize,public] */;
895 struct spoolss_DriverInfo4
{
896 enum spoolss_DriverOSVersion version
;
897 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
898 const char * architecture
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
899 const char * driver_path
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
900 const char * data_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
901 const char * config_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
902 const char * help_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
903 const char ** dependent_files
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
904 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
905 const char * default_datatype
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
906 const char ** previous_names
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
907 }/* [gensize,public] */;
909 struct spoolss_DriverInfo5
{
910 enum spoolss_DriverOSVersion version
;
911 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
912 const char * architecture
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
913 const char * driver_path
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
914 const char * data_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
915 const char * config_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
916 uint32_t driver_attributes
;
917 uint32_t config_version
;
918 uint32_t driver_version
;
919 }/* [gensize,public] */;
921 struct spoolss_DriverInfo6
{
922 enum spoolss_DriverOSVersion version
;
923 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
924 const char * architecture
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
925 const char * driver_path
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
926 const char * data_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
927 const char * config_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
928 const char * help_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
929 const char ** dependent_files
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
930 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
931 const char * default_datatype
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
932 const char ** previous_names
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
934 uint64_t driver_version
;
935 const char * manufacturer_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
936 const char * manufacturer_url
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
937 const char * hardware_id
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
938 const char * provider
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
939 }/* [gensize,public] */;
941 struct spoolss_DriverInfo8
{
942 enum spoolss_DriverOSVersion version
;
943 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
944 const char * architecture
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
945 const char * driver_path
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
946 const char * data_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
947 const char * config_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
948 const char * help_file
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
949 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
950 const char * default_datatype
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
951 const char ** dependent_files
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
952 const char ** previous_names
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
954 uint64_t driver_version
;
955 const char * manufacturer_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
956 const char * manufacturer_url
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
957 const char * hardware_id
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
958 const char * provider
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
959 const char * print_processor
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
960 const char * vendor_setup
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
961 const char ** color_profiles
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
962 const char * inf_path
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
963 uint32_t printer_driver_attributes
;
964 const char ** core_driver_dependencies
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
965 NTTIME min_inbox_driver_ver_date
;
966 uint64_t min_inbox_driver_ver_version
;
967 }/* [gensize,public] */;
969 enum spoolss_DriverFileType
970 #ifndef USE_UINT_ENUMS
972 SPOOLSS_DRIVER_FILE_TYPE_RENDERING
=0x00000000,
973 SPOOLSS_DRIVER_FILE_TYPE_CONFIGURATION
=0x00000001,
974 SPOOLSS_DRIVER_FILE_TYPE_DATA
=0x00000002,
975 SPOOLSS_DRIVER_FILE_TYPE_HELP
=0x00000003,
976 SPOOLSS_DRIVER_FILE_TYPE_OTHER
=0x00000004
979 { __donnot_use_enum_spoolss_DriverFileType
=0x7FFFFFFF}
980 #define SPOOLSS_DRIVER_FILE_TYPE_RENDERING ( 0x00000000 )
981 #define SPOOLSS_DRIVER_FILE_TYPE_CONFIGURATION ( 0x00000001 )
982 #define SPOOLSS_DRIVER_FILE_TYPE_DATA ( 0x00000002 )
983 #define SPOOLSS_DRIVER_FILE_TYPE_HELP ( 0x00000003 )
984 #define SPOOLSS_DRIVER_FILE_TYPE_OTHER ( 0x00000004 )
988 struct spoolss_DriverFileInfo
{
989 const char * file_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
990 enum spoolss_DriverFileType file_type
;
991 uint32_t file_version
;
994 struct spoolss_DriverInfo101
{
995 enum spoolss_DriverOSVersion version
;
996 const char * driver_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
997 const char * architecture
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
998 struct spoolss_DriverFileInfo
*file_info
;/* [relative,size_is(file_count)] */
1000 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1001 const char * default_datatype
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1002 const char ** previous_names
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1004 uint64_t driver_version
;
1005 const char * manufacturer_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1006 const char * manufacturer_url
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1007 const char * hardware_id
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1008 const char * provider
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1009 }/* [gensize,nopush,public,nopull] */;
1011 union spoolss_DriverInfo
{
1012 struct spoolss_DriverInfo1 info1
;/* [case] */
1013 struct spoolss_DriverInfo2 info2
;/* [case(2)] */
1014 struct spoolss_DriverInfo3 info3
;/* [case(3)] */
1015 struct spoolss_DriverInfo4 info4
;/* [case(4)] */
1016 struct spoolss_DriverInfo5 info5
;/* [case(5)] */
1017 struct spoolss_DriverInfo6 info6
;/* [case(6)] */
1018 struct spoolss_DriverInfo8 info8
;/* [case(8)] */
1019 struct spoolss_DriverInfo101 info101
;/* [case(101)] */
1020 }/* [relative_base,gensize,public,nodiscriminant] */;
1022 struct spoolss_DriverDirectoryInfo1
{
1023 const char * directory_name
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1024 }/* [gensize,public] */;
1026 union spoolss_DriverDirectoryInfo
{
1027 struct spoolss_DriverDirectoryInfo1 info1
;/* [case] */
1028 }/* [gensize,relative_base,nodiscriminant,public] */;
1030 struct spoolss_PrintProcessorInfo1
{
1031 const char * print_processor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1032 }/* [gensize,public] */;
1034 union spoolss_PrintProcessorInfo
{
1035 struct spoolss_PrintProcessorInfo1 info1
;/* [case] */
1036 }/* [relative_base,nodiscriminant,public] */;
1038 struct spoolss_PrintProcessorDirectoryInfo1
{
1039 const char * directory_name
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1040 }/* [gensize,public] */;
1042 union spoolss_PrintProcessorDirectoryInfo
{
1043 struct spoolss_PrintProcessorDirectoryInfo1 info1
;/* [case] */
1044 }/* [gensize,relative_base,nodiscriminant,public] */;
1046 struct spoolss_DocumentInfo1
{
1047 const char *document_name
;/* [unique,charset(UTF16)] */
1048 const char *output_file
;/* [unique,charset(UTF16)] */
1049 const char *datatype
;/* [unique,charset(UTF16)] */
1052 union spoolss_DocumentInfo
{
1053 struct spoolss_DocumentInfo1
*info1
;/* [unique,case] */
1054 }/* [switch_type(uint32)] */;
1056 struct spoolss_OSVersion
{
1057 uint32_t _ndr_size
;/* [value(ndr_size_spoolss_OSVersion(r,ndr->iconv_convenience,ndr->flags))] */
1061 uint32_t unknown
;/* [value(2)] */
1062 const char * extra_string
;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
1063 }/* [gensize,public] */;
1065 struct spoolss_OSVersionEx
{
1066 uint32_t _ndr_size
;/* [value(ndr_size_spoolss_OSVersionEx(r,ndr->iconv_convenience,ndr->flags))] */
1070 uint32_t unknown1
;/* [value(2)] */
1071 const char * extra_string
;/* [subcontext_size(256),subcontext(0),flag(LIBNDR_FLAG_STR_NULLTERM)] */
1074 }/* [gensize,public] */;
1076 union spoolss_PrinterData
{
1077 const char * string
;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(REG_SZ)] */
1078 DATA_BLOB binary
;/* [flag(LIBNDR_FLAG_REMAINING),case(REG_BINARY)] */
1079 uint32_t value
;/* [case(REG_DWORD)] */
1080 const char ** string_array
;/* [flag(LIBNDR_FLAG_STR_NULLTERM),case(REG_MULTI_SZ)] */
1081 DATA_BLOB data
;/* [flag(LIBNDR_FLAG_REMAINING),default] */
1082 }/* [gensize,public,nodiscriminant] */;
1084 enum spoolss_FormFlags
1085 #ifndef USE_UINT_ENUMS
1087 SPOOLSS_FORM_USER
=0,
1088 SPOOLSS_FORM_BUILTIN
=1,
1089 SPOOLSS_FORM_PRINTER
=2
1092 { __donnot_use_enum_spoolss_FormFlags
=0x7FFFFFFF}
1093 #define SPOOLSS_FORM_USER ( 0 )
1094 #define SPOOLSS_FORM_BUILTIN ( 1 )
1095 #define SPOOLSS_FORM_PRINTER ( 2 )
1099 struct spoolss_FormSize
{
1104 struct spoolss_FormArea
{
1111 struct spoolss_FormInfo1
{
1112 enum spoolss_FormFlags flags
;
1113 const char * form_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1114 struct spoolss_FormSize size
;
1115 struct spoolss_FormArea area
;
1116 }/* [gensize,public] */;
1118 /* bitmap spoolss_FormStringType */
1119 #define SPOOLSS_FORM_STRING_TYPE_NONE ( 0x00000001 )
1120 #define SPOOLSS_FORM_STRING_TYPE_MUI_DLL ( 0x00000002 )
1121 #define SPOOLSS_FORM_STRING_TYPE_LANG_PAIR ( 0x00000004 )
1123 struct spoolss_FormInfo2
{
1124 enum spoolss_FormFlags flags
;
1125 const char * form_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1126 struct spoolss_FormSize size
;
1127 struct spoolss_FormArea area
;
1128 const char * keyword
;/* [relative,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
1129 uint32_t string_type
;
1130 const char * mui_dll
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1131 uint32_t ressource_id
;
1132 const char * display_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1134 }/* [gensize,public] */;
1136 union spoolss_FormInfo
{
1137 struct spoolss_FormInfo1 info1
;/* [case] */
1138 struct spoolss_FormInfo2 info2
;/* [case(2)] */
1139 }/* [relative_base,gensize,public,nodiscriminant] */;
1141 struct spoolss_AddFormInfo1
{
1142 enum spoolss_FormFlags flags
;
1143 const char *form_name
;/* [unique,charset(UTF16)] */
1144 struct spoolss_FormSize size
;
1145 struct spoolss_FormArea area
;
1148 struct spoolss_AddFormInfo2
{
1149 enum spoolss_FormFlags flags
;
1150 const char *form_name
;/* [unique,charset(UTF16)] */
1151 struct spoolss_FormSize size
;
1152 struct spoolss_FormArea area
;
1153 const char *keyword
;/* [unique,charset(DOS)] */
1154 uint32_t string_type
;
1155 const char *mui_dll
;/* [unique,charset(UTF16)] */
1156 uint32_t ressource_id
;
1157 const char *display_name
;/* [unique,charset(UTF16)] */
1161 union spoolss_AddFormInfo
{
1162 struct spoolss_AddFormInfo1
*info1
;/* [unique,case] */
1163 struct spoolss_AddFormInfo2
*info2
;/* [unique,case(2)] */
1164 }/* [switch_type(uint32)] */;
1166 struct spoolss_PortInfo1
{
1167 const char * port_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1168 }/* [gensize,public] */;
1170 /* bitmap spoolss_PortType */
1171 #define SPOOLSS_PORT_TYPE_WRITE ( 0x00000001 )
1172 #define SPOOLSS_PORT_TYPE_READ ( 0x00000002 )
1173 #define SPOOLSS_PORT_TYPE_REDIRECTED ( 0x00000004 )
1174 #define SPOOLSS_PORT_TYPE_NET_ATTACHED ( 0x00000008 )
1176 struct spoolss_PortInfo2
{
1177 const char * port_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1178 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1179 const char * description
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1182 }/* [gensize,public] */;
1184 enum spoolss_PortStatus
1185 #ifndef USE_UINT_ENUMS
1187 PORT_STATUS_CLEAR
=0x00000000,
1188 PORT_STATUS_OFFLINE
=0x00000001,
1189 PORT_STATUS_PAPER_JAM
=0x00000002,
1190 PORT_STATUS_PAPER_OUT
=0x00000003,
1191 PORT_STATUS_OUTPUT_BIN_FULL
=0x00000004,
1192 PORT_STATUS_PAPER_PROBLEM
=0x00000005,
1193 PORT_STATUS_NO_TONER
=0x00000006,
1194 PORT_STATUS_DOOR_OPEN
=0x00000007,
1195 PORT_STATUS_USER_INTERVENTION
=0x00000008,
1196 PORT_STATUS_OUT_OF_MEMORY
=0x00000009,
1197 PORT_STATUS_TONER_LOW
=0x0000000A,
1198 PORT_STATUS_WARMING_UP
=0x0000000B,
1199 PORT_STATUS_POWER_SAVE
=0x0000000C
1202 { __donnot_use_enum_spoolss_PortStatus
=0x7FFFFFFF}
1203 #define PORT_STATUS_CLEAR ( 0x00000000 )
1204 #define PORT_STATUS_OFFLINE ( 0x00000001 )
1205 #define PORT_STATUS_PAPER_JAM ( 0x00000002 )
1206 #define PORT_STATUS_PAPER_OUT ( 0x00000003 )
1207 #define PORT_STATUS_OUTPUT_BIN_FULL ( 0x00000004 )
1208 #define PORT_STATUS_PAPER_PROBLEM ( 0x00000005 )
1209 #define PORT_STATUS_NO_TONER ( 0x00000006 )
1210 #define PORT_STATUS_DOOR_OPEN ( 0x00000007 )
1211 #define PORT_STATUS_USER_INTERVENTION ( 0x00000008 )
1212 #define PORT_STATUS_OUT_OF_MEMORY ( 0x00000009 )
1213 #define PORT_STATUS_TONER_LOW ( 0x0000000A )
1214 #define PORT_STATUS_WARMING_UP ( 0x0000000B )
1215 #define PORT_STATUS_POWER_SAVE ( 0x0000000C )
1219 enum spoolss_PortSeverity
1220 #ifndef USE_UINT_ENUMS
1222 PORT_STATUS_TYPE_ERROR
=0x00000001,
1223 PORT_STATUS_TYPE_WARNING
=0x00000002,
1224 PORT_STATUS_TYPE_INFO
=0x00000003
1227 { __donnot_use_enum_spoolss_PortSeverity
=0x7FFFFFFF}
1228 #define PORT_STATUS_TYPE_ERROR ( 0x00000001 )
1229 #define PORT_STATUS_TYPE_WARNING ( 0x00000002 )
1230 #define PORT_STATUS_TYPE_INFO ( 0x00000003 )
1234 struct spoolss_PortInfo3
{
1235 enum spoolss_PortStatus status
;
1236 const char * status_string
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1237 enum spoolss_PortSeverity severity
;
1238 }/* [gensize,public] */;
1240 struct spoolss_PortInfoFF
{
1241 const char * port_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1242 DATA_BLOB monitor_data
;
1243 }/* [gensize,public] */;
1245 union spoolss_PortInfo
{
1246 struct spoolss_PortInfo1 info1
;/* [case] */
1247 struct spoolss_PortInfo2 info2
;/* [case(2)] */
1248 struct spoolss_PortInfo3 info3
;/* [case(3)] */
1249 struct spoolss_PortInfoFF infoFF
;/* [case(0xff)] */
1250 }/* [relative_base,nodiscriminant,public] */;
1252 struct spoolss_MonitorInfo1
{
1253 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1254 }/* [gensize,public] */;
1256 struct spoolss_MonitorInfo2
{
1257 const char * monitor_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1258 const char * environment
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1259 const char * dll_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1260 }/* [gensize,public] */;
1262 union spoolss_MonitorInfo
{
1263 struct spoolss_MonitorInfo1 info1
;/* [case] */
1264 struct spoolss_MonitorInfo2 info2
;/* [case(2)] */
1265 }/* [relative_base,nodiscriminant,public] */;
1267 struct spoolss_PrintProcDataTypesInfo1
{
1268 const char * name_array
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1269 }/* [gensize,public] */;
1271 union spoolss_PrintProcDataTypesInfo
{
1272 struct spoolss_PrintProcDataTypesInfo1 info1
;/* [case] */
1273 }/* [relative_base,nodiscriminant,public] */;
1275 /* bitmap spoolss_PrinterChangeFlags */
1276 #define PRINTER_CHANGE_ADD_PRINTER ( 0x00000001 )
1277 #define PRINTER_CHANGE_SET_PRINTER ( 0x00000002 )
1278 #define PRINTER_CHANGE_DELETE_PRINTER ( 0x00000004 )
1279 #define PRINTER_CHANGE_FAILED_CONNECTION_PRINTER ( 0x00000008 )
1280 #define PRINTER_CHANGE_ADD_JOB ( 0x00000100 )
1281 #define PRINTER_CHANGE_SET_JOB ( 0x00000200 )
1282 #define PRINTER_CHANGE_DELETE_JOB ( 0x00000400 )
1283 #define PRINTER_CHANGE_WRITE_JOB ( 0x00000800 )
1284 #define PRINTER_CHANGE_ADD_FORM ( 0x00010000 )
1285 #define PRINTER_CHANGE_SET_FORM ( 0x00020000 )
1286 #define PRINTER_CHANGE_DELETE_FORM ( 0x00040000 )
1287 #define PRINTER_CHANGE_ADD_PORT ( 0x00100000 )
1288 #define PRINTER_CHANGE_CONFIGURE_PORT ( 0x00200000 )
1289 #define PRINTER_CHANGE_DELETE_PORT ( 0x00400000 )
1290 #define PRINTER_CHANGE_ADD_PRINT_PROCESSOR ( 0x01000000 )
1291 #define PRINTER_CHANGE_DELETE_PRINT_PROCESSOR ( 0x04000000 )
1292 #define PRINTER_CHANGE_SERVER ( 0x08000000 )
1293 #define PRINTER_CHANGE_ADD_PRINTER_DRIVER ( 0x10000000 )
1294 #define PRINTER_CHANGE_SET_PRINTER_DRIVER ( 0x20000000 )
1295 #define PRINTER_CHANGE_DELETE_PRINTER_DRIVER ( 0x40000000 )
1296 #define PRINTER_CHANGE_TIMEOUT ( 0x80000000 )
1298 enum spoolss_JobNotifyField
1299 #ifndef USE_UINT_ENUMS
1301 JOB_NOTIFY_FIELD_PRINTER_NAME
=0x00,
1302 JOB_NOTIFY_FIELD_MACHINE_NAME
=0x01,
1303 JOB_NOTIFY_FIELD_PORT_NAME
=0x02,
1304 JOB_NOTIFY_FIELD_USER_NAME
=0x03,
1305 JOB_NOTIFY_FIELD_NOTIFY_NAME
=0x04,
1306 JOB_NOTIFY_FIELD_DATATYPE
=0x05,
1307 JOB_NOTIFY_FIELD_PRINT_PROCESSOR
=0x06,
1308 JOB_NOTIFY_FIELD_PARAMETERS
=0x07,
1309 JOB_NOTIFY_FIELD_DRIVER_NAME
=0x08,
1310 JOB_NOTIFY_FIELD_DEVMODE
=0x09,
1311 JOB_NOTIFY_FIELD_STATUS
=0x0a,
1312 JOB_NOTIFY_FIELD_STATUS_STRING
=0x0b,
1313 JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR
=0x0c,
1314 JOB_NOTIFY_FIELD_DOCUMENT
=0x0d,
1315 JOB_NOTIFY_FIELD_PRIORITY
=0x0e,
1316 JOB_NOTIFY_FIELD_POSITION
=0x0f,
1317 JOB_NOTIFY_FIELD_SUBMITTED
=0x10,
1318 JOB_NOTIFY_FIELD_START_TIME
=0x11,
1319 JOB_NOTIFY_FIELD_UNTIL_TIME
=0x12,
1320 JOB_NOTIFY_FIELD_TIME
=0x13,
1321 JOB_NOTIFY_FIELD_TOTAL_PAGES
=0x14,
1322 JOB_NOTIFY_FIELD_PAGES_PRINTED
=0x15,
1323 JOB_NOTIFY_FIELD_TOTAL_BYTES
=0x16,
1324 JOB_NOTIFY_FIELD_BYTES_PRINTED
=0x17
1327 { __donnot_use_enum_spoolss_JobNotifyField
=0x7FFFFFFF}
1328 #define JOB_NOTIFY_FIELD_PRINTER_NAME ( 0x00 )
1329 #define JOB_NOTIFY_FIELD_MACHINE_NAME ( 0x01 )
1330 #define JOB_NOTIFY_FIELD_PORT_NAME ( 0x02 )
1331 #define JOB_NOTIFY_FIELD_USER_NAME ( 0x03 )
1332 #define JOB_NOTIFY_FIELD_NOTIFY_NAME ( 0x04 )
1333 #define JOB_NOTIFY_FIELD_DATATYPE ( 0x05 )
1334 #define JOB_NOTIFY_FIELD_PRINT_PROCESSOR ( 0x06 )
1335 #define JOB_NOTIFY_FIELD_PARAMETERS ( 0x07 )
1336 #define JOB_NOTIFY_FIELD_DRIVER_NAME ( 0x08 )
1337 #define JOB_NOTIFY_FIELD_DEVMODE ( 0x09 )
1338 #define JOB_NOTIFY_FIELD_STATUS ( 0x0a )
1339 #define JOB_NOTIFY_FIELD_STATUS_STRING ( 0x0b )
1340 #define JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR ( 0x0c )
1341 #define JOB_NOTIFY_FIELD_DOCUMENT ( 0x0d )
1342 #define JOB_NOTIFY_FIELD_PRIORITY ( 0x0e )
1343 #define JOB_NOTIFY_FIELD_POSITION ( 0x0f )
1344 #define JOB_NOTIFY_FIELD_SUBMITTED ( 0x10 )
1345 #define JOB_NOTIFY_FIELD_START_TIME ( 0x11 )
1346 #define JOB_NOTIFY_FIELD_UNTIL_TIME ( 0x12 )
1347 #define JOB_NOTIFY_FIELD_TIME ( 0x13 )
1348 #define JOB_NOTIFY_FIELD_TOTAL_PAGES ( 0x14 )
1349 #define JOB_NOTIFY_FIELD_PAGES_PRINTED ( 0x15 )
1350 #define JOB_NOTIFY_FIELD_TOTAL_BYTES ( 0x16 )
1351 #define JOB_NOTIFY_FIELD_BYTES_PRINTED ( 0x17 )
1355 enum spoolss_PrintNotifyField
1356 #ifndef USE_UINT_ENUMS
1358 PRINTER_NOTIFY_FIELD_SERVER_NAME
=0x00,
1359 PRINTER_NOTIFY_FIELD_PRINTER_NAME
=0x01,
1360 PRINTER_NOTIFY_FIELD_SHARE_NAME
=0x02,
1361 PRINTER_NOTIFY_FIELD_PORT_NAME
=0x03,
1362 PRINTER_NOTIFY_FIELD_DRIVER_NAME
=0x04,
1363 PRINTER_NOTIFY_FIELD_COMMENT
=0x05,
1364 PRINTER_NOTIFY_FIELD_LOCATION
=0x06,
1365 PRINTER_NOTIFY_FIELD_DEVMODE
=0x07,
1366 PRINTER_NOTIFY_FIELD_SEPFILE
=0x08,
1367 PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR
=0x09,
1368 PRINTER_NOTIFY_FIELD_PARAMETERS
=0x0a,
1369 PRINTER_NOTIFY_FIELD_DATATYPE
=0x0b,
1370 PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR
=0x0c,
1371 PRINTER_NOTIFY_FIELD_ATTRIBUTES
=0x0d,
1372 PRINTER_NOTIFY_FIELD_PRIORITY
=0x0e,
1373 PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY
=0x0f,
1374 PRINTER_NOTIFY_FIELD_START_TIME
=0x10,
1375 PRINTER_NOTIFY_FIELD_UNTIL_TIME
=0x11,
1376 PRINTER_NOTIFY_FIELD_STATUS
=0x12,
1377 PRINTER_NOTIFY_FIELD_STATUS_STRING
=0x13,
1378 PRINTER_NOTIFY_FIELD_CJOBS
=0x14,
1379 PRINTER_NOTIFY_FIELD_AVERAGE_PPM
=0x15,
1380 PRINTER_NOTIFY_FIELD_TOTAL_PAGES
=0x16,
1381 PRINTER_NOTIFY_FIELD_PAGES_PRINTED
=0x17,
1382 PRINTER_NOTIFY_FIELD_TOTAL_BYTES
=0x18,
1383 PRINTER_NOTIFY_FIELD_BYTES_PRINTED
=0x19,
1384 PRINTER_NOTIFY_FIELD_OBJECT_GUID
=0x1a,
1385 PRINTER_NOTIFY_FIELD_FRIENDLY_NAME
=0x1b
1388 { __donnot_use_enum_spoolss_PrintNotifyField
=0x7FFFFFFF}
1389 #define PRINTER_NOTIFY_FIELD_SERVER_NAME ( 0x00 )
1390 #define PRINTER_NOTIFY_FIELD_PRINTER_NAME ( 0x01 )
1391 #define PRINTER_NOTIFY_FIELD_SHARE_NAME ( 0x02 )
1392 #define PRINTER_NOTIFY_FIELD_PORT_NAME ( 0x03 )
1393 #define PRINTER_NOTIFY_FIELD_DRIVER_NAME ( 0x04 )
1394 #define PRINTER_NOTIFY_FIELD_COMMENT ( 0x05 )
1395 #define PRINTER_NOTIFY_FIELD_LOCATION ( 0x06 )
1396 #define PRINTER_NOTIFY_FIELD_DEVMODE ( 0x07 )
1397 #define PRINTER_NOTIFY_FIELD_SEPFILE ( 0x08 )
1398 #define PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR ( 0x09 )
1399 #define PRINTER_NOTIFY_FIELD_PARAMETERS ( 0x0a )
1400 #define PRINTER_NOTIFY_FIELD_DATATYPE ( 0x0b )
1401 #define PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR ( 0x0c )
1402 #define PRINTER_NOTIFY_FIELD_ATTRIBUTES ( 0x0d )
1403 #define PRINTER_NOTIFY_FIELD_PRIORITY ( 0x0e )
1404 #define PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY ( 0x0f )
1405 #define PRINTER_NOTIFY_FIELD_START_TIME ( 0x10 )
1406 #define PRINTER_NOTIFY_FIELD_UNTIL_TIME ( 0x11 )
1407 #define PRINTER_NOTIFY_FIELD_STATUS ( 0x12 )
1408 #define PRINTER_NOTIFY_FIELD_STATUS_STRING ( 0x13 )
1409 #define PRINTER_NOTIFY_FIELD_CJOBS ( 0x14 )
1410 #define PRINTER_NOTIFY_FIELD_AVERAGE_PPM ( 0x15 )
1411 #define PRINTER_NOTIFY_FIELD_TOTAL_PAGES ( 0x16 )
1412 #define PRINTER_NOTIFY_FIELD_PAGES_PRINTED ( 0x17 )
1413 #define PRINTER_NOTIFY_FIELD_TOTAL_BYTES ( 0x18 )
1414 #define PRINTER_NOTIFY_FIELD_BYTES_PRINTED ( 0x19 )
1415 #define PRINTER_NOTIFY_FIELD_OBJECT_GUID ( 0x1a )
1416 #define PRINTER_NOTIFY_FIELD_FRIENDLY_NAME ( 0x1b )
1420 enum spoolss_NotifyType
1421 #ifndef USE_UINT_ENUMS
1423 PRINTER_NOTIFY_TYPE
=0x00,
1424 JOB_NOTIFY_TYPE
=0x01
1427 { __donnot_use_enum_spoolss_NotifyType
=0x7FFFFFFF}
1428 #define PRINTER_NOTIFY_TYPE ( 0x00 )
1429 #define JOB_NOTIFY_TYPE ( 0x01 )
1433 union spoolss_Field
{
1434 uint16_t field
;/* [case(PRINTER_NOTIFY_TYPE)] */
1435 }/* [noprint,nodiscriminant] */;
1437 struct spoolss_NotifyOptionType
{
1438 enum spoolss_NotifyType type
;
1443 union spoolss_Field
*fields
;/* [unique,switch_is(type),size_is(count)] */
1446 /* bitmap spoolssNotifyOptionFlags */
1447 #define PRINTER_NOTIFY_OPTIONS_REFRESH ( 0x00000001 )
1449 struct spoolss_NotifyOption
{
1450 uint32_t version
;/* [value(2)] */
1453 struct spoolss_NotifyOptionType
*types
;/* [unique,size_is(count)] */
1456 struct spoolss_NotifyString
{
1458 const char *string
;/* [unique,charset(UTF16),size_is(size/2)] */
1461 enum spoolss_NotifyTable
1462 #ifndef USE_UINT_ENUMS
1464 NOTIFY_TABLE_DWORD
=0x0001,
1465 NOTIFY_TABLE_STRING
=0x0002,
1466 NOTIFY_TABLE_DEVMODE
=0x0003,
1467 NOTIFY_TABLE_TIME
=0x0004,
1468 NOTIFY_TABLE_SECURITYDESCRIPTOR
=0x0005
1471 { __donnot_use_enum_spoolss_NotifyTable
=0x7FFFFFFF}
1472 #define NOTIFY_TABLE_DWORD ( 0x0001 )
1473 #define NOTIFY_TABLE_STRING ( 0x0002 )
1474 #define NOTIFY_TABLE_DEVMODE ( 0x0003 )
1475 #define NOTIFY_TABLE_TIME ( 0x0004 )
1476 #define NOTIFY_TABLE_SECURITYDESCRIPTOR ( 0x0005 )
1480 union spoolss_NotifyData
{
1481 uint32_t integer
[2];/* [case] */
1482 struct spoolss_NotifyString string
;/* [case(2)] */
1483 struct spoolss_DevmodeContainer devmode
;/* [case(3)] */
1484 struct spoolss_TimeCtr time
;/* [case(4)] */
1485 struct sec_desc_buf sd
;/* [case(5)] */
1486 }/* [switch_type(uint32)] */;
1488 struct spoolss_Notify
{
1489 enum spoolss_NotifyType type
;
1490 union spoolss_Field field
;/* [switch_is(type)] */
1491 enum spoolss_NotifyTable variable_type
;
1493 union spoolss_NotifyData data
;/* [switch_is(variable_type)] */
1496 struct spoolss_NotifyInfo
{
1497 uint32_t version
;/* [value(2)] */
1500 struct spoolss_Notify
*notifies
;/* [size_is(count)] */
1503 union spoolss_ReplyPrinterInfo
{
1504 struct spoolss_NotifyInfo
*info0
;/* [unique,case(0)] */
1505 }/* [switch_type(uint32)] */;
1507 /* bitmap spoolss_PrinterNotifyFlags */
1508 #define PRINTER_NOTIFY_INFO_DISCARDED ( 0x00000001 )
1509 #define PRINTER_NOTIFY_INFO_DISCARDNOTED ( 0x00010000 )
1510 #define PRINTER_NOTIFY_INFO_COLOR_MISMATCH ( 0x00080000 )
1512 struct spoolss_UserLevel1
{
1514 const char *client
;/* [unique,charset(UTF16)] */
1515 const char *user
;/* [unique,charset(UTF16)] */
1517 enum spoolss_MajorVersion major
;
1518 enum spoolss_MinorVersion minor
;
1519 enum spoolss_ProcessorArchitecture processor
;
1522 struct spoolss_UserLevel2
{
1526 struct spoolss_UserLevel3
{
1530 const char *client
;/* [unique,charset(UTF16)] */
1531 const char *user
;/* [unique,charset(UTF16)] */
1533 enum spoolss_MajorVersion major
;
1534 enum spoolss_MinorVersion minor
;
1535 enum spoolss_ProcessorArchitecture processor
;
1539 union spoolss_UserLevel
{
1540 struct spoolss_UserLevel1
*level1
;/* [unique,case] */
1541 struct spoolss_UserLevel2
*level2
;/* [unique,case(2)] */
1542 struct spoolss_UserLevel3
*level3
;/* [unique,case(3)] */
1543 }/* [switch_type(uint32)] */;
1545 struct spoolss_UserLevelCtr
{
1547 union spoolss_UserLevel user_info
;/* [switch_is(level)] */
1550 /* bitmap spoolss_AccessRights */
1551 #define SERVER_ACCESS_ADMINISTER ( 0x00000001 )
1552 #define SERVER_ACCESS_ENUMERATE ( 0x00000002 )
1553 #define PRINTER_ACCESS_ADMINISTER ( 0x00000004 )
1554 #define PRINTER_ACCESS_USE ( 0x00000008 )
1555 #define JOB_ACCESS_ADMINISTER ( 0x00000010 )
1556 #define JOB_ACCESS_READ ( 0x00000020 )
1558 struct spoolss_PrinterEnumValues
{
1559 const char * value_name
;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1560 uint32_t value_name_len
;/* [value(2*strlen_m_term(value_name))] */
1561 enum winreg_Type type
;
1562 union spoolss_PrinterData
*data
;/* [relative,subcontext_size(r->data_length),subcontext(0),switch_is(type)] */
1563 uint32_t data_length
;/* [value(ndr_size_spoolss_PrinterData(data,type,ndr->iconv_convenience,ndr->flags))] */
1564 }/* [relative_base,gensize,public] */;
1566 union spoolss_KeyNames
{
1567 const char ** string_array
;/* [default,flag(LIBNDR_FLAG_STR_NULLTERM)] */
1568 }/* [nodiscriminant] */;
1570 /* bitmap spoolss_DeleteDriverFlags */
1571 #define DPD_DELETE_UNUSED_FILES ( 0x00000001 )
1572 #define DPD_DELETE_SPECIFIC_VERSION ( 0x00000002 )
1573 #define DPD_DELETE_ALL_FILES ( 0x00000004 )
1575 enum spoolss_PortProtocol
1576 #ifndef USE_UINT_ENUMS
1578 PROTOCOL_RAWTCP_TYPE
=1,
1582 { __donnot_use_enum_spoolss_PortProtocol
=0x7FFFFFFF}
1583 #define PROTOCOL_RAWTCP_TYPE ( 1 )
1584 #define PROTOCOL_LPR_TYPE ( 2 )
1588 struct spoolss_PortData1
{
1589 const char *portname
;/* [charset(UTF16)] */
1590 uint32_t version
;/* [value(0x00000001)] */
1591 enum spoolss_PortProtocol protocol
;
1592 uint32_t size
;/* [value(sizeof(r))] */
1594 const char *hostaddress
;/* [charset(UTF16)] */
1595 const char *snmpcommunity
;/* [charset(UTF16)] */
1597 const char *queue
;/* [charset(UTF16)] */
1598 const char *ip_address
;/* [charset(UTF16)] */
1599 const char *hardware_address
;/* [charset(UTF16)] */
1600 const char *device_type
;/* [charset(UTF16)] */
1601 uint32_t port_number
;
1602 uint32_t snmp_enabled
;
1603 uint32_t snmp_dev_index
;
1606 struct spoolss_PortData2
{
1607 const char *portname
;/* [charset(UTF16)] */
1608 uint32_t version
;/* [value(0x00000002)] */
1609 enum spoolss_PortProtocol protocol
;
1610 uint32_t size
;/* [value(sizeof(r))] */
1612 const char *hostaddress
;/* [charset(UTF16)] */
1613 const char *snmpcommunity
;/* [charset(UTF16)] */
1615 const char *queue
;/* [charset(UTF16)] */
1616 const char *device_type
;/* [charset(UTF16)] */
1617 uint32_t port_number
;
1618 uint32_t snmp_enabled
;
1619 uint32_t snmp_dev_index
;
1620 uint32_t port_monitor_mib_index
;
1623 struct spoolss_MonitorUi
{
1624 const char * dll_name
;/* [flag(LIBNDR_FLAG_STR_NULLTERM)] */
1627 /* bitmap spoolss_AddPrinterDriverExFlags */
1628 #define APD_STRICT_UPGRADE ( 0x00000001 )
1629 #define APD_STRICT_DOWNGRADE ( 0x00000002 )
1630 #define APD_COPY_ALL_FILES ( 0x00000004 )
1631 #define APD_COPY_NEW_FILES ( 0x00000008 )
1632 #define APD_COPY_FROM_DIRECTORY ( 0x00000010 )
1633 #define APD_DONT_COPY_FILES_TO_CLUSTER ( 0x00001000 )
1634 #define APD_COPY_TO_ALL_SPOOLERS ( 0x00002000 )
1635 #define APD_RETURN_BLOCKING_STATUS_CODE ( 0x00010000 )
1638 struct _spoolss_EnumPrinters
{
1641 const char *server
;/* [unique,charset(UTF16)] */
1643 DATA_BLOB
*buffer
;/* [unique] */
1648 DATA_BLOB
*info
;/* [unique] */
1649 uint32_t *needed
;/* [ref] */
1650 uint32_t *count
;/* [ref] */
1657 struct __spoolss_EnumPrinters
{
1664 union spoolss_PrinterInfo
*info
;/* [switch_is(level)] */
1670 struct spoolss_EnumPrinters
{
1673 const char *server
;/* [unique,charset(UTF16)] */
1675 DATA_BLOB
*buffer
;/* [unique] */
1680 uint32_t *count
;/* [ref] */
1681 union spoolss_PrinterInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
1682 uint32_t *needed
;/* [ref] */
1689 struct spoolss_OpenPrinter
{
1691 const char *printername
;/* [unique,charset(UTF16)] */
1692 const char *datatype
;/* [unique,charset(UTF16)] */
1693 struct spoolss_DevmodeContainer devmode_ctr
;
1694 uint32_t access_mask
;
1698 struct policy_handle
*handle
;/* [ref] */
1705 struct spoolss_SetJob
{
1707 struct policy_handle
*handle
;/* [ref] */
1709 struct spoolss_JobInfoContainer
*ctr
;/* [unique] */
1710 enum spoolss_JobControl command
;
1720 struct spoolss_GetJob
{
1722 struct policy_handle
*handle
;/* [ref] */
1725 DATA_BLOB
*buffer
;/* [unique] */
1730 union spoolss_JobInfo
*info
;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1731 uint32_t *needed
;/* [ref] */
1738 struct _spoolss_EnumJobs
{
1740 struct policy_handle
*handle
;/* [ref] */
1744 DATA_BLOB
*buffer
;/* [unique] */
1749 DATA_BLOB
*info
;/* [unique] */
1750 uint32_t *needed
;/* [ref] */
1751 uint32_t *count
;/* [ref] */
1758 struct __spoolss_EnumJobs
{
1765 union spoolss_JobInfo
*info
;/* [switch_is(level)] */
1771 struct spoolss_EnumJobs
{
1773 struct policy_handle
*handle
;/* [ref] */
1777 DATA_BLOB
*buffer
;/* [unique] */
1782 uint32_t *count
;/* [ref] */
1783 union spoolss_JobInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
1784 uint32_t *needed
;/* [ref] */
1791 struct spoolss_AddPrinter
{
1799 struct spoolss_DeletePrinter
{
1801 struct policy_handle
*handle
;/* [ref] */
1811 struct spoolss_SetPrinter
{
1813 struct policy_handle
*handle
;/* [ref] */
1814 struct spoolss_SetPrinterInfoCtr
*info_ctr
;/* [ref] */
1815 struct spoolss_DevmodeContainer
*devmode_ctr
;/* [ref] */
1816 struct sec_desc_buf
*secdesc_ctr
;/* [ref] */
1817 enum spoolss_PrinterControl command
;
1827 struct spoolss_GetPrinter
{
1829 struct policy_handle
*handle
;/* [ref] */
1831 DATA_BLOB
*buffer
;/* [unique] */
1836 union spoolss_PrinterInfo
*info
;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1837 uint32_t *needed
;/* [ref] */
1844 struct spoolss_AddPrinterDriver
{
1846 const char *servername
;/* [unique,charset(UTF16)] */
1847 struct spoolss_AddDriverInfoCtr
*info_ctr
;/* [ref] */
1857 struct _spoolss_EnumPrinterDrivers
{
1859 const char *server
;/* [unique,charset(UTF16)] */
1860 const char *environment
;/* [unique,charset(UTF16)] */
1862 DATA_BLOB
*buffer
;/* [unique] */
1867 DATA_BLOB
*info
;/* [unique] */
1868 uint32_t *needed
;/* [ref] */
1869 uint32_t *count
;/* [ref] */
1876 struct __spoolss_EnumPrinterDrivers
{
1883 union spoolss_DriverInfo
*info
;/* [switch_is(level)] */
1889 struct spoolss_EnumPrinterDrivers
{
1891 const char *server
;/* [unique,charset(UTF16)] */
1892 const char *environment
;/* [unique,charset(UTF16)] */
1894 DATA_BLOB
*buffer
;/* [unique] */
1899 uint32_t *count
;/* [ref] */
1900 union spoolss_DriverInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
1901 uint32_t *needed
;/* [ref] */
1908 struct spoolss_GetPrinterDriver
{
1916 struct spoolss_GetPrinterDriverDirectory
{
1918 const char *server
;/* [unique,charset(UTF16)] */
1919 const char *environment
;/* [unique,charset(UTF16)] */
1921 DATA_BLOB
*buffer
;/* [unique] */
1926 union spoolss_DriverDirectoryInfo
*info
;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
1927 uint32_t *needed
;/* [ref] */
1934 struct spoolss_DeletePrinterDriver
{
1936 const char *server
;/* [unique,charset(UTF16)] */
1937 const char *architecture
;/* [charset(UTF16)] */
1938 const char *driver
;/* [charset(UTF16)] */
1948 struct spoolss_AddPrintProcessor
{
1950 const char *server
;/* [unique,charset(UTF16)] */
1951 const char *architecture
;/* [charset(UTF16)] */
1952 const char *path_name
;/* [charset(UTF16)] */
1953 const char *print_processor_name
;/* [charset(UTF16)] */
1963 struct _spoolss_EnumPrintProcessors
{
1965 const char *servername
;/* [unique,charset(UTF16)] */
1966 const char *environment
;/* [unique,charset(UTF16)] */
1968 DATA_BLOB
*buffer
;/* [unique] */
1973 DATA_BLOB
*info
;/* [unique] */
1974 uint32_t *needed
;/* [ref] */
1975 uint32_t *count
;/* [ref] */
1982 struct __spoolss_EnumPrintProcessors
{
1989 union spoolss_PrintProcessorInfo
*info
;/* [switch_is(level)] */
1995 struct spoolss_EnumPrintProcessors
{
1997 const char *servername
;/* [unique,charset(UTF16)] */
1998 const char *environment
;/* [unique,charset(UTF16)] */
2000 DATA_BLOB
*buffer
;/* [unique] */
2005 uint32_t *count
;/* [ref] */
2006 union spoolss_PrintProcessorInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
2007 uint32_t *needed
;/* [ref] */
2014 struct spoolss_GetPrintProcessorDirectory
{
2016 const char *server
;/* [unique,charset(UTF16)] */
2017 const char *environment
;/* [unique,charset(UTF16)] */
2019 DATA_BLOB
*buffer
;/* [unique] */
2024 union spoolss_PrintProcessorDirectoryInfo
*info
;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2025 uint32_t *needed
;/* [ref] */
2032 struct spoolss_StartDocPrinter
{
2034 struct policy_handle
*handle
;/* [ref] */
2036 union spoolss_DocumentInfo info
;/* [switch_is(level)] */
2040 uint32_t *job_id
;/* [ref] */
2047 struct spoolss_StartPagePrinter
{
2049 struct policy_handle
*handle
;/* [ref] */
2059 struct spoolss_WritePrinter
{
2061 struct policy_handle
*handle
;/* [ref] */
2063 uint32_t _data_size
;/* [value(r->in.data.length)] */
2067 uint32_t *num_written
;/* [ref] */
2074 struct spoolss_EndPagePrinter
{
2076 struct policy_handle
*handle
;/* [ref] */
2086 struct spoolss_AbortPrinter
{
2088 struct policy_handle
*handle
;/* [ref] */
2098 struct spoolss_ReadPrinter
{
2100 struct policy_handle
*handle
;/* [ref] */
2105 uint8_t *data
;/* [ref,size_is(data_size)] */
2106 uint32_t *_data_size
;/* [ref] */
2113 struct spoolss_EndDocPrinter
{
2115 struct policy_handle
*handle
;/* [ref] */
2125 struct spoolss_AddJob
{
2127 struct policy_handle
*handle
;/* [ref] */
2130 uint8_t *buffer
;/* [unique,size_is(offered)] */
2134 uint32_t *needed
;/* [ref] */
2135 uint8_t *buffer
;/* [unique,size_is(offered)] */
2142 struct spoolss_ScheduleJob
{
2144 struct policy_handle
*handle
;/* [ref] */
2155 struct _spoolss_GetPrinterData
{
2157 struct policy_handle
*handle
;/* [ref] */
2158 const char *value_name
;/* [charset(UTF16)] */
2163 enum winreg_Type
*type
;/* [ref] */
2164 DATA_BLOB
*data
;/* [ref] */
2165 uint32_t *needed
;/* [ref] */
2172 struct __spoolss_GetPrinterData
{
2174 enum winreg_Type type
;
2178 union spoolss_PrinterData
*data
;/* [ref,switch_is(type)] */
2184 struct spoolss_GetPrinterData
{
2186 struct policy_handle
*handle
;/* [ref] */
2187 const char *value_name
;/* [charset(UTF16)] */
2192 enum winreg_Type
*type
;/* [ref] */
2193 union spoolss_PrinterData
*data
;/* [subcontext_size(offered),ref,subcontext(4),switch_is(*type)] */
2194 uint32_t *needed
;/* [ref] */
2201 struct _spoolss_SetPrinterData
{
2203 struct policy_handle
*handle
;/* [ref] */
2204 const char *value_name
;/* [charset(UTF16)] */
2205 enum winreg_Type type
;
2217 struct __spoolss_SetPrinterData
{
2219 enum winreg_Type type
;
2223 union spoolss_PrinterData
*data
;/* [ref,switch_is(type)] */
2229 struct spoolss_SetPrinterData
{
2231 struct policy_handle
*handle
;/* [ref] */
2232 const char *value_name
;/* [charset(UTF16)] */
2233 enum winreg_Type type
;
2234 union spoolss_PrinterData data
;/* [subcontext(4),switch_is(type)] */
2235 uint32_t _offered
;/* [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */
2245 struct spoolss_WaitForPrinterChange
{
2253 struct spoolss_ClosePrinter
{
2255 struct policy_handle
*handle
;/* [ref] */
2259 struct policy_handle
*handle
;/* [ref] */
2266 struct spoolss_AddForm
{
2268 struct policy_handle
*handle
;/* [ref] */
2270 union spoolss_AddFormInfo info
;/* [switch_is(level)] */
2280 struct spoolss_DeleteForm
{
2282 struct policy_handle
*handle
;/* [ref] */
2283 const char *form_name
;/* [charset(UTF16)] */
2293 struct spoolss_GetForm
{
2295 struct policy_handle
*handle
;/* [ref] */
2296 const char *form_name
;/* [charset(UTF16)] */
2298 DATA_BLOB
*buffer
;/* [unique] */
2303 union spoolss_FormInfo
*info
;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2304 uint32_t *needed
;/* [ref] */
2311 struct spoolss_SetForm
{
2313 struct policy_handle
*handle
;/* [ref] */
2314 const char *form_name
;/* [charset(UTF16)] */
2316 union spoolss_AddFormInfo info
;/* [switch_is(level)] */
2326 struct _spoolss_EnumForms
{
2328 struct policy_handle
*handle
;/* [ref] */
2330 DATA_BLOB
*buffer
;/* [unique] */
2335 DATA_BLOB
*info
;/* [unique] */
2336 uint32_t *needed
;/* [ref] */
2337 uint32_t *count
;/* [ref] */
2344 struct __spoolss_EnumForms
{
2351 union spoolss_FormInfo
*info
;/* [switch_is(level)] */
2357 struct spoolss_EnumForms
{
2359 struct policy_handle
*handle
;/* [ref] */
2361 DATA_BLOB
*buffer
;/* [unique] */
2366 uint32_t *count
;/* [ref] */
2367 union spoolss_FormInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
2368 uint32_t *needed
;/* [ref] */
2375 struct _spoolss_EnumPorts
{
2377 const char *servername
;/* [unique,charset(UTF16)] */
2379 DATA_BLOB
*buffer
;/* [unique] */
2384 DATA_BLOB
*info
;/* [unique] */
2385 uint32_t *needed
;/* [ref] */
2386 uint32_t *count
;/* [ref] */
2393 struct __spoolss_EnumPorts
{
2400 union spoolss_PortInfo
*info
;/* [switch_is(level)] */
2406 struct spoolss_EnumPorts
{
2408 const char *servername
;/* [unique,charset(UTF16)] */
2410 DATA_BLOB
*buffer
;/* [unique] */
2415 uint32_t *count
;/* [ref] */
2416 union spoolss_PortInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
2417 uint32_t *needed
;/* [ref] */
2424 struct _spoolss_EnumMonitors
{
2426 const char *servername
;/* [unique,charset(UTF16)] */
2428 DATA_BLOB
*buffer
;/* [unique] */
2433 DATA_BLOB
*info
;/* [unique] */
2434 uint32_t *needed
;/* [ref] */
2435 uint32_t *count
;/* [ref] */
2442 struct __spoolss_EnumMonitors
{
2449 union spoolss_MonitorInfo
*info
;/* [switch_is(level)] */
2455 struct spoolss_EnumMonitors
{
2457 const char *servername
;/* [unique,charset(UTF16)] */
2459 DATA_BLOB
*buffer
;/* [unique] */
2464 uint32_t *count
;/* [ref] */
2465 union spoolss_MonitorInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
2466 uint32_t *needed
;/* [ref] */
2473 struct spoolss_AddPort
{
2475 const char *server_name
;/* [unique,charset(UTF16)] */
2477 const char *monitor_name
;/* [charset(UTF16)] */
2487 struct spoolss_ConfigurePort
{
2495 struct spoolss_DeletePort
{
2503 struct spoolss_CreatePrinterIC
{
2511 struct spoolss_PlayGDIScriptOnPrinterIC
{
2519 struct spoolss_DeletePrinterIC
{
2527 struct spoolss_AddPrinterConnection
{
2535 struct spoolss_DeletePrinterConnection
{
2543 struct spoolss_PrinterMessageBox
{
2551 struct spoolss_AddMonitor
{
2559 struct spoolss_DeleteMonitor
{
2567 struct spoolss_DeletePrintProcessor
{
2575 struct spoolss_AddPrintProvidor
{
2583 struct spoolss_DeletePrintProvidor
{
2591 struct _spoolss_EnumPrintProcDataTypes
{
2593 const char *servername
;/* [unique,charset(UTF16)] */
2594 const char *print_processor_name
;/* [unique,charset(UTF16)] */
2596 DATA_BLOB
*buffer
;/* [unique] */
2601 DATA_BLOB
*info
;/* [unique] */
2602 uint32_t *needed
;/* [ref] */
2603 uint32_t *count
;/* [ref] */
2610 struct __spoolss_EnumPrintProcDataTypes
{
2617 union spoolss_PrintProcDataTypesInfo
*info
;/* [switch_is(level)] */
2623 struct spoolss_EnumPrintProcDataTypes
{
2625 const char *servername
;/* [unique,charset(UTF16)] */
2626 const char *print_processor_name
;/* [unique,charset(UTF16)] */
2628 DATA_BLOB
*buffer
;/* [unique] */
2633 uint32_t *count
;/* [ref] */
2634 union spoolss_PrintProcDataTypesInfo
**info
;/* [ref,switch_is(level),size_is(,*count)] */
2635 uint32_t *needed
;/* [ref] */
2642 struct spoolss_ResetPrinter
{
2644 struct policy_handle
*handle
;/* [ref] */
2645 const char *data_type
;/* [unique,charset(UTF16)] */
2646 struct spoolss_DevmodeContainer
*devmode_ctr
;/* [ref] */
2656 struct spoolss_GetPrinterDriver2
{
2658 struct policy_handle
*handle
;/* [ref] */
2659 const char *architecture
;/* [unique,charset(UTF16)] */
2661 DATA_BLOB
*buffer
;/* [unique] */
2663 uint32_t client_major_version
;
2664 uint32_t client_minor_version
;
2668 union spoolss_DriverInfo
*info
;/* [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */
2669 uint32_t *needed
;/* [ref] */
2670 uint32_t *server_major_version
;/* [ref] */
2671 uint32_t *server_minor_version
;/* [ref] */
2678 struct spoolss_FindFirstPrinterChangeNotification
{
2686 struct spoolss_FindNextPrinterChangeNotification
{
2694 struct spoolss_FindClosePrinterNotify
{
2696 struct policy_handle
*handle
;/* [ref] */
2706 struct spoolss_RouterFindFirstPrinterChangeNotificationOld
{
2714 struct spoolss_ReplyOpenPrinter
{
2716 const char *server_name
;/* [charset(UTF16)] */
2717 uint32_t printer_local
;
2718 enum winreg_Type type
;
2719 uint32_t bufsize
;/* [range(0,512)] */
2720 uint8_t *buffer
;/* [unique,size_is(bufsize)] */
2724 struct policy_handle
*handle
;/* [ref] */
2731 struct spoolss_RouterReplyPrinter
{
2733 struct policy_handle
*handle
;/* [ref] */
2735 uint32_t bufsize
;/* [range(0,512)] */
2736 uint8_t *buffer
;/* [unique,size_is(bufsize)] */
2746 struct spoolss_ReplyClosePrinter
{
2748 struct policy_handle
*handle
;/* [ref] */
2752 struct policy_handle
*handle
;/* [ref] */
2759 struct spoolss_AddPortEx
{
2767 struct spoolss_RouterFindFirstPrinterChangeNotification
{
2775 struct spoolss_SpoolerInit
{
2783 struct spoolss_ResetPrinterEx
{
2791 struct spoolss_RemoteFindFirstPrinterChangeNotifyEx
{
2793 struct policy_handle
*handle
;/* [ref] */
2796 const char *local_machine
;/* [unique,charset(UTF16)] */
2797 uint32_t printer_local
;
2798 struct spoolss_NotifyOption
*notify_options
;/* [unique] */
2808 struct spoolss_RouterReplyPrinterEx
{
2810 struct policy_handle
*handle
;/* [ref] */
2813 uint32_t reply_type
;
2814 union spoolss_ReplyPrinterInfo info
;/* [switch_is(reply_type)] */
2818 uint32_t *reply_result
;/* [ref] */
2825 struct spoolss_RouterRefreshPrinterChangeNotify
{
2827 struct policy_handle
*handle
;/* [ref] */
2828 uint32_t change_low
;
2829 struct spoolss_NotifyOption
*options
;/* [unique] */
2833 struct spoolss_NotifyInfo
**info
;/* [ref] */
2848 struct spoolss_OpenPrinterEx
{
2850 const char *printername
;/* [unique,charset(UTF16)] */
2851 const char *datatype
;/* [unique,charset(UTF16)] */
2852 struct spoolss_DevmodeContainer devmode_ctr
;
2853 uint32_t access_mask
;
2855 union spoolss_UserLevel userlevel
;/* [switch_is(level)] */
2859 struct policy_handle
*handle
;/* [ref] */
2866 struct spoolss_AddPrinterEx
{
2868 const char *server
;/* [unique,charset(UTF16)] */
2869 struct spoolss_SetPrinterInfoCtr
*info_ctr
;/* [ref] */
2870 struct spoolss_DevmodeContainer
*devmode_ctr
;/* [ref] */
2871 struct sec_desc_buf
*secdesc_ctr
;/* [ref] */
2872 struct spoolss_UserLevelCtr
*userlevel_ctr
;/* [ref] */
2876 struct policy_handle
*handle
;/* [ref] */
2891 struct spoolss_EnumPrinterData
{
2893 struct policy_handle
*handle
;/* [ref] */
2894 uint32_t enum_index
;
2895 uint32_t value_offered
;
2896 uint32_t data_offered
;
2900 const char *value_name
;/* [charset(UTF16),size_is(value_offered/2)] */
2901 uint32_t *value_needed
;/* [ref] */
2902 enum winreg_Type
*type
;/* [ref] */
2903 uint8_t *data
;/* [ref,flag(LIBNDR_PRINT_ARRAY_HEX),size_is(data_offered)] */
2904 uint32_t *data_needed
;/* [ref] */
2911 struct spoolss_DeletePrinterData
{
2913 struct policy_handle
*handle
;/* [ref] */
2914 const char *value_name
;/* [charset(UTF16)] */
2948 struct spoolss_SetPrinterDataEx
{
2950 struct policy_handle
*handle
;/* [ref] */
2951 const char *key_name
;/* [charset(UTF16)] */
2952 const char *value_name
;/* [charset(UTF16)] */
2953 enum winreg_Type type
;
2954 uint8_t *buffer
;/* [ref,size_is(offered)] */
2965 struct spoolss_GetPrinterDataEx
{
2967 struct policy_handle
*handle
;/* [ref] */
2968 const char *key_name
;/* [charset(UTF16)] */
2969 const char *value_name
;/* [charset(UTF16)] */
2974 enum winreg_Type
*type
;/* [ref] */
2975 uint8_t *buffer
;/* [ref,size_is(offered)] */
2976 uint32_t *needed
;/* [ref] */
2983 struct _spoolss_EnumPrinterDataEx
{
2985 struct policy_handle
*handle
;/* [ref] */
2986 const char *key_name
;/* [charset(UTF16)] */
2992 uint32_t *needed
;/* [ref] */
2993 uint32_t *count
;/* [ref] */
3000 struct __spoolss_EnumPrinterDataEx
{
3006 struct spoolss_PrinterEnumValues
*info
;
3012 struct spoolss_EnumPrinterDataEx
{
3014 struct policy_handle
*handle
;/* [ref] */
3015 const char *key_name
;/* [charset(UTF16)] */
3020 uint32_t *count
;/* [ref] */
3021 struct spoolss_PrinterEnumValues
**info
;/* [ref,size_is(,*count)] */
3022 uint32_t *needed
;/* [ref] */
3029 struct spoolss_EnumPrinterKey
{
3031 struct policy_handle
*handle
;/* [ref] */
3032 const char *key_name
;/* [charset(UTF16)] */
3037 uint32_t *_ndr_size
;/* [ref] */
3038 union spoolss_KeyNames
*key_buffer
;/* [subcontext_size(*_ndr_size*2),ref,subcontext(0),switch_is(*_ndr_size)] */
3039 uint32_t *needed
;/* [ref] */
3046 struct spoolss_DeletePrinterDataEx
{
3048 struct policy_handle
*handle
;/* [ref] */
3049 const char *key_name
;/* [charset(UTF16)] */
3050 const char *value_name
;/* [charset(UTF16)] */
3060 struct spoolss_DeletePrinterKey
{
3062 struct policy_handle
*handle
;/* [ref] */
3063 const char *key_name
;/* [charset(UTF16)] */
3081 struct spoolss_DeletePrinterDriverEx
{
3083 const char *server
;/* [unique,charset(UTF16)] */
3084 const char *architecture
;/* [charset(UTF16)] */
3085 const char *driver
;/* [charset(UTF16)] */
3086 uint32_t delete_flags
;
3121 struct spoolss_XcvData
{
3123 struct policy_handle
*handle
;/* [ref] */
3124 const char *function_name
;/* [charset(UTF16)] */
3126 uint32_t _in_data_length
;/* [value(r->in.in_data.length)] */
3127 uint32_t out_data_size
;
3128 uint32_t *status_code
;/* [ref] */
3132 uint8_t *out_data
;/* [ref,size_is(out_data_size)] */
3133 uint32_t *needed
;/* [ref] */
3134 uint32_t *status_code
;/* [ref] */
3141 struct spoolss_AddPrinterDriverEx
{
3143 const char *servername
;/* [unique,charset(UTF16)] */
3144 struct spoolss_AddDriverInfoCtr
*info_ctr
;/* [ref] */
3202 #endif /* _HEADER_spoolss */