24a33779aa753b8dbf1c1ef36d89bf3a60936f34
[jra/samba/.git] / source3 / include / rpc_spoolss.h
1 /* 
2    Unix SMB/Netbios implementation.
3
4    Copyright (C) Andrew Tridgell              1992-2000,
5    Copyright (C) Luke Kenneth Casson Leighton 1996-2000,
6    Copyright (C) Jean Francois Micouleau      1998-2000.
7    Copyright (C) Gerald Carter                2001-2006.
8    
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 3 of the License, or
12    (at your option) any later version.
13    
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18    
19    You should have received a copy of the GNU General Public License
20    along with this program.  If not, see <http://www.gnu.org/licenses/>.
21 */
22
23 #include "librpc/gen_ndr/spoolss.h"
24
25 #ifndef _RPC_SPOOLSS_H          /* _RPC_SPOOLSS_H */
26 #define _RPC_SPOOLSS_H
27
28 /* spoolss pipe: this are the calls which are not implemented ...
29 #define SPOOLSS_GETPRINTERDRIVER                        0x0b
30 #define SPOOLSS_READPRINTER                             0x16
31 #define SPOOLSS_WAITFORPRINTERCHANGE                    0x1c
32 #define SPOOLSS_ADDPORT                                 0x25
33 #define SPOOLSS_CONFIGUREPORT                           0x26
34 #define SPOOLSS_DELETEPORT                              0x27
35 #define SPOOLSS_CREATEPRINTERIC                         0x28
36 #define SPOOLSS_PLAYGDISCRIPTONPRINTERIC                0x29
37 #define SPOOLSS_DELETEPRINTERIC                         0x2a
38 #define SPOOLSS_ADDPRINTERCONNECTION                    0x2b
39 #define SPOOLSS_DELETEPRINTERCONNECTION                 0x2c
40 #define SPOOLSS_PRINTERMESSAGEBOX                       0x2d
41 #define SPOOLSS_ADDMONITOR                              0x2e
42 #define SPOOLSS_DELETEMONITOR                           0x2f
43 #define SPOOLSS_DELETEPRINTPROCESSOR                    0x30
44 #define SPOOLSS_ADDPRINTPROVIDOR                        0x31
45 #define SPOOLSS_DELETEPRINTPROVIDOR                     0x32
46 #define SPOOLSS_FINDFIRSTPRINTERCHANGENOTIFICATION      0x36
47 #define SPOOLSS_FINDNEXTPRINTERCHANGENOTIFICATION       0x37
48 #define SPOOLSS_ROUTERFINDFIRSTPRINTERNOTIFICATIONOLD   0x39
49 #define SPOOLSS_ADDPORTEX                               0x3d
50 #define SPOOLSS_REMOTEFINDFIRSTPRINTERCHANGENOTIFICATION0x3e
51 #define SPOOLSS_SPOOLERINIT                             0x3f
52 #define SPOOLSS_RESETPRINTEREX                          0x40
53 */
54
55 /* those are implemented */
56 #define SPOOLSS_ENUMPRINTERS                            0x00
57 #define SPOOLSS_OPENPRINTER                             0x01
58 #define SPOOLSS_SETJOB                                  0x02
59 #define SPOOLSS_GETJOB                                  0x03
60 #define SPOOLSS_ENUMJOBS                                0x04
61 #define SPOOLSS_ADDPRINTER                              0x05
62 #define SPOOLSS_DELETEPRINTER                           0x06
63 #define SPOOLSS_SETPRINTER                              0x07
64 #define SPOOLSS_GETPRINTER                              0x08
65 #define SPOOLSS_ADDPRINTERDRIVER                        0x09
66 #define SPOOLSS_ENUMPRINTERDRIVERS                      0x0a
67 #define SPOOLSS_GETPRINTERDRIVERDIRECTORY               0x0c
68 #define SPOOLSS_DELETEPRINTERDRIVER                     0x0d
69 #define SPOOLSS_ADDPRINTPROCESSOR                       0x0e
70 #define SPOOLSS_ENUMPRINTPROCESSORS                     0x0f
71 #define SPOOLSS_GETPRINTPROCESSORDIRECTORY              0x10
72 #define SPOOLSS_STARTDOCPRINTER                         0x11
73 #define SPOOLSS_STARTPAGEPRINTER                        0x12
74 #define SPOOLSS_WRITEPRINTER                            0x13
75 #define SPOOLSS_ENDPAGEPRINTER                          0x14
76 #define SPOOLSS_ABORTPRINTER                            0x15
77 #define SPOOLSS_ENDDOCPRINTER                           0x17
78 #define SPOOLSS_ADDJOB                                  0x18
79 #define SPOOLSS_SCHEDULEJOB                             0x19
80 #define SPOOLSS_GETPRINTERDATA                          0x1a
81 #define SPOOLSS_SETPRINTERDATA                          0x1b
82 #define SPOOLSS_CLOSEPRINTER                            0x1d
83 #define SPOOLSS_ADDFORM                                 0x1e
84 #define SPOOLSS_DELETEFORM                              0x1f
85 #define SPOOLSS_GETFORM                                 0x20
86 #define SPOOLSS_SETFORM                                 0x21
87 #define SPOOLSS_ENUMFORMS                               0x22
88 #define SPOOLSS_ENUMPORTS                               0x23
89 #define SPOOLSS_ENUMMONITORS                            0x24
90 #define SPOOLSS_ENUMPRINTPROCDATATYPES                  0x33
91 #define SPOOLSS_RESETPRINTER                            0x34
92 #define SPOOLSS_GETPRINTERDRIVER2                       0x35
93 #define SPOOLSS_FCPN                                    0x38    /* FindClosePrinterNotify */
94 #define SPOOLSS_REPLYOPENPRINTER                        0x3a
95 #define SPOOLSS_ROUTERREPLYPRINTER                      0x3b
96 #define SPOOLSS_REPLYCLOSEPRINTER                       0x3c
97 #define SPOOLSS_RFFPCNEX                                0x41    /* RemoteFindFirstPrinterChangeNotifyEx */
98 #define SPOOLSS_RRPCN                                   0x42    /* RouteRefreshPrinterChangeNotification */
99 #define SPOOLSS_RFNPCNEX                                0x43    /* RemoteFindNextPrinterChangeNotifyEx */
100 #define SPOOLSS_OPENPRINTEREX                           0x45
101 #define SPOOLSS_ADDPRINTEREX                            0x46
102 #define SPOOLSS_ENUMPRINTERDATA                         0x48
103 #define SPOOLSS_DELETEPRINTERDATA                       0x49
104 #define SPOOLSS_SETPRINTERDATAEX                        0x4d
105 #define SPOOLSS_GETPRINTERDATAEX                        0x4e
106 #define SPOOLSS_ENUMPRINTERDATAEX                       0x4f
107 #define SPOOLSS_ENUMPRINTERKEY                          0x50
108 #define SPOOLSS_DELETEPRINTERDATAEX                     0x51
109 #define SPOOLSS_DELETEPRINTERKEY                        0x52
110 #define SPOOLSS_DELETEPRINTERDRIVEREX                   0x54
111 #define SPOOLSS_XCVDATAPORT                             0x58
112 #define SPOOLSS_ADDPRINTERDRIVEREX                      0x59
113
114 /* 
115  * Special strings for the OpenPrinter() call.  See the MSDN DDK
116  * docs on the XcvDataPort() for more details.
117  */
118
119 #define SPL_LOCAL_PORT            "Local Port"
120 #define SPL_TCPIP_PORT            "Standard TCP/IP Port"
121 #define SPL_XCV_MONITOR_LOCALMON  ",XcvMonitor Local Port"
122 #define SPL_XCV_MONITOR_TCPMON    ",XcvMonitor Standard TCP/IP Port"
123
124
125 #define PRINTER_STATUS_OK               0x00000000
126 #define JOB_ACCESS_READ                 0x00000020
127
128 /* JOB status codes. */
129
130 #define JOB_STATUS_QUEUED               0x0000
131 #define JOB_STATUS_PAUSED               0x0001
132 #define JOB_STATUS_ERROR                0x0002
133 #define JOB_STATUS_DELETING             0x0004
134 #define JOB_STATUS_SPOOLING             0x0008
135 #define JOB_STATUS_PRINTING             0x0010
136 #define JOB_STATUS_OFFLINE              0x0020
137 #define JOB_STATUS_PAPEROUT             0x0040
138 #define JOB_STATUS_PRINTED              0x0080
139 #define JOB_STATUS_DELETED              0x0100
140 #define JOB_STATUS_BLOCKED              0x0200
141 #define JOB_STATUS_USER_INTERVENTION    0x0400
142
143 /* Notify field types */
144
145 #define NOTIFY_ONE_VALUE 1              /* Notify data is stored in value1 */
146 #define NOTIFY_TWO_VALUE 2              /* Notify data is stored in value2 */
147 #define NOTIFY_POINTER   3              /* Data is a pointer to a buffer */
148 #define NOTIFY_STRING    4              /* Data is a pointer to a buffer w/length */
149 #define NOTIFY_SECDESC   5              /* Data is a security descriptor */
150
151 #define PRINTER_NOTIFY_TYPE 0x00
152 #define JOB_NOTIFY_TYPE     0x01
153 #define PRINT_TABLE_END     0xFF
154
155 #define MAX_PRINTER_NOTIFY 26
156 #define MAX_JOB_NOTIFY 24
157
158 #define MAX_NOTIFY_TYPE_FOR_NOW 26
159
160 #define PRINTER_NOTIFY_SERVER_NAME              0x00
161 #define PRINTER_NOTIFY_PRINTER_NAME             0x01
162 #define PRINTER_NOTIFY_SHARE_NAME               0x02
163 #define PRINTER_NOTIFY_PORT_NAME                0x03
164 #define PRINTER_NOTIFY_DRIVER_NAME              0x04
165 #define PRINTER_NOTIFY_COMMENT                  0x05
166 #define PRINTER_NOTIFY_LOCATION                 0x06
167 #define PRINTER_NOTIFY_DEVMODE                  0x07
168 #define PRINTER_NOTIFY_SEPFILE                  0x08
169 #define PRINTER_NOTIFY_PRINT_PROCESSOR          0x09
170 #define PRINTER_NOTIFY_PARAMETERS               0x0A
171 #define PRINTER_NOTIFY_DATATYPE                 0x0B
172 #define PRINTER_NOTIFY_SECURITY_DESCRIPTOR      0x0C
173 #define PRINTER_NOTIFY_ATTRIBUTES               0x0D
174 #define PRINTER_NOTIFY_PRIORITY                 0x0E
175 #define PRINTER_NOTIFY_DEFAULT_PRIORITY         0x0F
176 #define PRINTER_NOTIFY_START_TIME               0x10
177 #define PRINTER_NOTIFY_UNTIL_TIME               0x11
178 #define PRINTER_NOTIFY_STATUS                   0x12
179 #define PRINTER_NOTIFY_STATUS_STRING            0x13
180 #define PRINTER_NOTIFY_CJOBS                    0x14
181 #define PRINTER_NOTIFY_AVERAGE_PPM              0x15
182 #define PRINTER_NOTIFY_TOTAL_PAGES              0x16
183 #define PRINTER_NOTIFY_PAGES_PRINTED            0x17
184 #define PRINTER_NOTIFY_TOTAL_BYTES              0x18
185 #define PRINTER_NOTIFY_BYTES_PRINTED            0x19
186
187 #define JOB_NOTIFY_PRINTER_NAME                 0x00
188 #define JOB_NOTIFY_MACHINE_NAME                 0x01
189 #define JOB_NOTIFY_PORT_NAME                    0x02
190 #define JOB_NOTIFY_USER_NAME                    0x03
191 #define JOB_NOTIFY_NOTIFY_NAME                  0x04
192 #define JOB_NOTIFY_DATATYPE                     0x05
193 #define JOB_NOTIFY_PRINT_PROCESSOR              0x06
194 #define JOB_NOTIFY_PARAMETERS                   0x07
195 #define JOB_NOTIFY_DRIVER_NAME                  0x08
196 #define JOB_NOTIFY_DEVMODE                      0x09
197 #define JOB_NOTIFY_STATUS                       0x0A
198 #define JOB_NOTIFY_STATUS_STRING                0x0B
199 #define JOB_NOTIFY_SECURITY_DESCRIPTOR          0x0C
200 #define JOB_NOTIFY_DOCUMENT                     0x0D
201 #define JOB_NOTIFY_PRIORITY                     0x0E
202 #define JOB_NOTIFY_POSITION                     0x0F
203 #define JOB_NOTIFY_SUBMITTED                    0x10
204 #define JOB_NOTIFY_START_TIME                   0x11
205 #define JOB_NOTIFY_UNTIL_TIME                   0x12
206 #define JOB_NOTIFY_TIME                         0x13
207 #define JOB_NOTIFY_TOTAL_PAGES                  0x14
208 #define JOB_NOTIFY_PAGES_PRINTED                0x15
209 #define JOB_NOTIFY_TOTAL_BYTES                  0x16
210 #define JOB_NOTIFY_BYTES_PRINTED                0x17
211
212 #define PRINTER_NOTIFY_OPTIONS_REFRESH          0x01
213
214 /*
215  * Set of macros for flagging what changed in the PRINTER_INFO_2 struct
216  * when sending messages to other smbd's
217  */
218 #define PRINTER_MESSAGE_NULL            0x00000000
219 #define PRINTER_MESSAGE_DRIVER          0x00000001
220 #define PRINTER_MESSAGE_COMMENT         0x00000002
221 #define PRINTER_MESSAGE_PRINTERNAME     0x00000004
222 #define PRINTER_MESSAGE_LOCATION        0x00000008
223 #define PRINTER_MESSAGE_DEVMODE         0x00000010      /* not curently supported */
224 #define PRINTER_MESSAGE_SEPFILE         0x00000020
225 #define PRINTER_MESSAGE_PRINTPROC       0x00000040
226 #define PRINTER_MESSAGE_PARAMS          0x00000080
227 #define PRINTER_MESSAGE_DATATYPE        0x00000100
228 #define PRINTER_MESSAGE_SECDESC         0x00000200
229 #define PRINTER_MESSAGE_CJOBS           0x00000400
230 #define PRINTER_MESSAGE_PORT            0x00000800
231 #define PRINTER_MESSAGE_SHARENAME       0x00001000
232 #define PRINTER_MESSAGE_ATTRIBUTES      0x00002000
233
234 typedef struct printer_message_info {
235         uint32 low;             /* PRINTER_CHANGE_XXX */
236         uint32 high;            /* PRINTER_CHANGE_XXX */
237         fstring printer_name;
238         uint32 flags;           /* PRINTER_MESSAGE_XXX */
239 }
240 PRINTER_MESSAGE_INFO;
241
242 /*
243  * The printer attributes.
244  * I #defined all of them (grabbed form MSDN)
245  * I'm only using:
246  * ( SHARED | NETWORK | RAW_ONLY )
247  * RAW_ONLY _MUST_ be present otherwise NT will send an EMF file
248  */
249
250 #define PRINTER_ATTRIBUTE_SAMBA                 (PRINTER_ATTRIBUTE_RAW_ONLY|\
251                                                  PRINTER_ATTRIBUTE_SHARED|\
252                                                  PRINTER_ATTRIBUTE_LOCAL)
253 #define PRINTER_ATTRIBUTE_NOT_SAMBA             (PRINTER_ATTRIBUTE_NETWORK)
254
255 #define NO_PRIORITY      0
256 #define MAX_PRIORITY    99
257 #define MIN_PRIORITY     1
258 #define DEF_PRIORITY     1
259
260 /* the flags of each printers */
261
262 #define DRIVER_ANY_VERSION              0xffffffff
263 #define DRIVER_MAX_VERSION              4
264
265
266 /* this struct is undocumented */
267 /* thanks to the ddk ... */
268 typedef struct {
269         uint32 size;            /* length of user_name & client_name + 2? */
270         UNISTR2 *client_name;
271         UNISTR2 *user_name;
272         uint32 build;
273         uint32 major;
274         uint32 minor;
275         uint32 processor;
276 } SPOOL_USER_1;
277
278 typedef struct {
279         uint32 level;
280         union {
281                 SPOOL_USER_1 *user1;
282         } user;
283 } SPOOL_USER_CTR;
284
285 /* 
286  * Devicemode structure
287  */
288
289 typedef struct devicemode
290 {
291         UNISTR devicename;
292         uint16 specversion;
293         uint16 driverversion;
294         uint16 size;
295         uint16 driverextra;
296         uint32 fields;
297         uint16 orientation;
298         uint16 papersize;
299         uint16 paperlength;
300         uint16 paperwidth;
301         uint16 scale;
302         uint16 copies;
303         uint16 defaultsource;
304         uint16 printquality;
305         uint16 color;
306         uint16 duplex;
307         uint16 yresolution;
308         uint16 ttoption;
309         uint16 collate;
310         UNISTR formname;
311         uint16 logpixels;
312         uint32 bitsperpel;
313         uint32 pelswidth;
314         uint32 pelsheight;
315         uint32 displayflags;
316         uint32 displayfrequency;
317         uint32 icmmethod;
318         uint32 icmintent;
319         uint32 mediatype;
320         uint32 dithertype;
321         uint32 reserved1;
322         uint32 reserved2;
323         uint32 panningwidth;
324         uint32 panningheight;
325         uint8 *dev_private;
326 }
327 DEVICEMODE;
328
329 typedef struct _devmode_cont
330 {
331         uint32 size;
332         uint32 devmode_ptr;
333         DEVICEMODE *devmode;
334 }
335 DEVMODE_CTR;
336
337 typedef struct _printer_default
338 {
339         uint32 datatype_ptr;
340         UNISTR2 datatype;
341         DEVMODE_CTR devmode_cont;
342         uint32 access_required;
343 }
344 PRINTER_DEFAULT;
345
346 /********************************************/
347
348 typedef struct spool_notify_option_type
349 {
350         uint16 type;
351         uint16 reserved0;
352         uint32 reserved1;
353         uint32 reserved2;
354         uint32 count;
355         uint32 fields_ptr;
356         uint32 count2;
357         uint16 fields[MAX_NOTIFY_TYPE_FOR_NOW];
358 }
359 SPOOL_NOTIFY_OPTION_TYPE;
360
361 typedef struct spool_notify_option_type_ctr
362 {
363         uint32 count;
364         SPOOL_NOTIFY_OPTION_TYPE *type;
365 }
366 SPOOL_NOTIFY_OPTION_TYPE_CTR;
367
368
369
370 typedef struct s_header_type
371 {
372         uint32 type;
373         union
374         {
375                 uint32 value;
376                 UNISTR string;
377         }
378         data;
379 }
380 HEADER_TYPE;
381
382
383 typedef struct spool_q_getprinterdata
384 {
385         POLICY_HND handle;
386         UNISTR2 valuename;
387         uint32 size;
388 }
389 SPOOL_Q_GETPRINTERDATA;
390
391 typedef struct spool_r_getprinterdata
392 {
393         uint32 type;
394         uint32 size;
395         uint8 *data;
396         uint32 needed;
397         WERROR status;
398 }
399 SPOOL_R_GETPRINTERDATA;
400
401 typedef struct spool_notify_option
402 {
403         uint32 version;
404         uint32 flags;
405         uint32 count;
406         uint32 option_type_ptr;
407         SPOOL_NOTIFY_OPTION_TYPE_CTR ctr;
408 }
409 SPOOL_NOTIFY_OPTION;
410
411 typedef struct spool_notify_info_data
412 {
413         uint16 type;
414         uint16 field;
415         uint32 reserved;
416         uint32 id;
417         union {
418                 uint32 value[2];
419                 struct {
420                         uint32 length;
421                         uint16 *string;
422                 } data;
423                 struct {
424                         uint32  size;
425                         SEC_DESC *desc;
426                 } sd;
427         }
428         notify_data;
429         uint32 size;
430         uint32 enc_type;
431 } SPOOL_NOTIFY_INFO_DATA;
432
433 typedef struct spool_notify_info
434 {
435         uint32 version;
436         uint32 flags;
437         uint32 count;
438         SPOOL_NOTIFY_INFO_DATA *data;
439 }
440 SPOOL_NOTIFY_INFO;
441
442 /* If the struct name looks obscure, yes it is ! */
443 /* RemoteFindFirstPrinterChangeNotificationEx query struct */
444 typedef struct spoolss_q_rffpcnex
445 {
446         POLICY_HND handle;
447         uint32 flags;
448         uint32 options;
449         uint32 localmachine_ptr;
450         UNISTR2 localmachine;
451         uint32 printerlocal;
452         uint32 option_ptr;
453         SPOOL_NOTIFY_OPTION *option;
454 }
455 SPOOL_Q_RFFPCNEX;
456
457 typedef struct spool_r_rffpcnex
458 {
459         WERROR status;
460 }
461 SPOOL_R_RFFPCNEX;
462
463 /* Remote Find Next Printer Change Notify Ex */
464 typedef struct spool_q_rfnpcnex
465 {
466         POLICY_HND handle;
467         uint32 change;
468         uint32 option_ptr;
469         SPOOL_NOTIFY_OPTION *option;
470 }
471 SPOOL_Q_RFNPCNEX;
472
473 typedef struct spool_r_rfnpcnex
474 {
475         uint32 info_ptr;
476         SPOOL_NOTIFY_INFO info;
477         WERROR status;
478 }
479 SPOOL_R_RFNPCNEX;
480
481 typedef struct printer_info_0
482 {
483         UNISTR printername;
484         UNISTR servername;
485         uint32 cjobs;
486         uint32 total_jobs;
487         uint32 total_bytes;
488         
489         uint16 year;
490         uint16 month;
491         uint16 dayofweek;
492         uint16 day;
493         uint16 hour;
494         uint16 minute;
495         uint16 second;
496         uint16 milliseconds;
497
498         uint32 global_counter;
499         uint32 total_pages;
500
501         uint16 major_version;
502         uint16 build_version;
503
504         uint32 unknown7;
505         uint32 unknown8;
506         uint32 unknown9;
507         uint32 session_counter;
508         uint32 unknown11;
509         uint32 printer_errors;
510         uint32 unknown13;
511         uint32 unknown14;
512         uint32 unknown15;
513         uint32 unknown16;
514         uint32 change_id;
515         uint32 unknown18;
516         uint32 status;
517         uint32 unknown20;
518         uint32 c_setprinter;
519
520         uint16 unknown22;
521         uint16 unknown23;
522         uint16 unknown24;
523         uint16 unknown25;
524         uint16 unknown26;
525         uint16 unknown27;
526         uint16 unknown28;
527         uint16 unknown29;
528 } PRINTER_INFO_0;
529
530 typedef struct printer_info_1
531 {
532         uint32 flags;
533         UNISTR description;
534         UNISTR name;
535         UNISTR comment;
536 }
537 PRINTER_INFO_1;
538
539 typedef struct printer_info_2
540 {
541         UNISTR servername;
542         UNISTR printername;
543         UNISTR sharename;
544         UNISTR portname;
545         UNISTR drivername;
546         UNISTR comment;
547         UNISTR location;
548         DEVICEMODE *devmode;
549         UNISTR sepfile;
550         UNISTR printprocessor;
551         UNISTR datatype;
552         UNISTR parameters;
553         SEC_DESC *secdesc;
554         uint32 attributes;
555         uint32 priority;
556         uint32 defaultpriority;
557         uint32 starttime;
558         uint32 untiltime;
559         uint32 status;
560         uint32 cjobs;
561         uint32 averageppm;
562 }
563 PRINTER_INFO_2;
564
565 typedef struct printer_info_3
566 {
567         SEC_DESC *secdesc;
568 }
569 PRINTER_INFO_3;
570
571 typedef struct printer_info_4
572 {
573         UNISTR printername;
574         UNISTR servername;
575         uint32 attributes;
576 }
577 PRINTER_INFO_4;
578
579 typedef struct printer_info_5
580 {
581         UNISTR printername;
582         UNISTR portname;
583         uint32 attributes;
584         uint32 device_not_selected_timeout;
585         uint32 transmission_retry_timeout;
586 }
587 PRINTER_INFO_5;
588
589 typedef struct printer_info_6
590 {
591         uint32 status;
592 }
593 PRINTER_INFO_6;
594
595 #define SPOOL_DS_PUBLISH        1
596 #define SPOOL_DS_UPDATE         2
597 #define SPOOL_DS_UNPUBLISH      4
598 #define SPOOL_DS_PENDING        0x80000000
599
600 typedef struct printer_info_7
601 {
602         UNISTR guid; /* text form of printer guid */
603         uint32 action;
604 }
605 PRINTER_INFO_7;
606
607 typedef struct spool_q_enumprinters
608 {
609         uint32 flags;
610         uint32 servername_ptr;
611         UNISTR2 servername;
612         uint32 level;
613         RPC_BUFFER *buffer;
614         uint32 offered;
615 }
616 SPOOL_Q_ENUMPRINTERS;
617
618 typedef struct printer_info_ctr_info
619 {
620         PRINTER_INFO_0 *printers_0;
621         PRINTER_INFO_1 *printers_1;
622         PRINTER_INFO_2 *printers_2;
623         PRINTER_INFO_3 *printers_3;
624         PRINTER_INFO_4 *printers_4;
625         PRINTER_INFO_5 *printers_5;
626         PRINTER_INFO_7 *printers_7;
627 }
628 PRINTER_INFO_CTR;
629
630 typedef struct spool_r_enumprinters
631 {
632         RPC_BUFFER *buffer;
633         uint32 needed;          /* bytes needed */
634         uint32 returned;        /* number of printers */
635         WERROR status;
636 }
637 SPOOL_R_ENUMPRINTERS;
638
639
640 typedef struct spool_q_getprinter
641 {
642         POLICY_HND handle;
643         uint32 level;
644         RPC_BUFFER *buffer;
645         uint32 offered;
646 }
647 SPOOL_Q_GETPRINTER;
648
649 typedef struct printer_info_info
650 {
651         union
652         {
653                 PRINTER_INFO_0 *info0;
654                 PRINTER_INFO_1 *info1;
655                 PRINTER_INFO_2 *info2;
656                 void *info;
657         } printer;
658 } PRINTER_INFO;
659
660 typedef struct spool_r_getprinter
661 {
662         RPC_BUFFER *buffer;
663         uint32 needed;
664         WERROR status;
665 } SPOOL_R_GETPRINTER;
666
667 typedef struct driver_info_1
668 {
669         UNISTR name;
670 } DRIVER_INFO_1;
671
672 typedef struct driver_info_2
673 {
674         uint32 version;
675         UNISTR name;
676         UNISTR architecture;
677         UNISTR driverpath;
678         UNISTR datafile;
679         UNISTR configfile;
680 } DRIVER_INFO_2;
681
682 typedef struct driver_info_3
683 {
684         uint32 version;
685         UNISTR name;
686         UNISTR architecture;
687         UNISTR driverpath;
688         UNISTR datafile;
689         UNISTR configfile;
690         UNISTR helpfile;
691         uint16 *dependentfiles;
692         UNISTR monitorname;
693         UNISTR defaultdatatype;
694 }
695 DRIVER_INFO_3;
696
697 typedef struct driver_info_6
698 {
699         uint32 version;
700         UNISTR name;
701         UNISTR architecture;
702         UNISTR driverpath;
703         UNISTR datafile;
704         UNISTR configfile;
705         UNISTR helpfile;
706         uint16 *dependentfiles;
707         UNISTR monitorname;
708         UNISTR defaultdatatype;
709         uint16* previousdrivernames;
710         NTTIME driver_date;
711         uint32 padding;
712         uint32 driver_version_low;
713         uint32 driver_version_high;
714         UNISTR mfgname;
715         UNISTR oem_url;
716         UNISTR hardware_id;
717         UNISTR provider;
718 }
719 DRIVER_INFO_6;
720
721 typedef struct driver_info_info
722 {
723         DRIVER_INFO_1 *info1;
724         DRIVER_INFO_2 *info2;
725         DRIVER_INFO_3 *info3;
726         DRIVER_INFO_6 *info6;
727 }
728 PRINTER_DRIVER_CTR;
729
730 typedef struct spool_q_getprinterdriver2
731 {
732         POLICY_HND handle;
733         uint32 architecture_ptr;
734         UNISTR2 architecture;
735         uint32 level;
736         RPC_BUFFER *buffer;
737         uint32 offered;
738         uint32 clientmajorversion;
739         uint32 clientminorversion;
740 }
741 SPOOL_Q_GETPRINTERDRIVER2;
742
743 typedef struct spool_r_getprinterdriver2
744 {
745         RPC_BUFFER *buffer;
746         uint32 needed;
747         uint32 servermajorversion;
748         uint32 serverminorversion;
749         WERROR status;
750 }
751 SPOOL_R_GETPRINTERDRIVER2;
752
753
754 typedef struct add_jobinfo_1
755 {
756         UNISTR path;
757         uint32 job_number;
758 }
759 ADD_JOBINFO_1;
760
761
762 /*
763  * I'm really wondering how many different time formats
764  * I will have to cope with
765  *
766  * JFM, 09/13/98 In a mad mood ;-(
767 */
768 typedef struct systemtime
769 {
770         uint16 year;
771         uint16 month;
772         uint16 dayofweek;
773         uint16 day;
774         uint16 hour;
775         uint16 minute;
776         uint16 second;
777         uint16 milliseconds;
778 }
779 SYSTEMTIME;
780
781 typedef struct s_job_info_1
782 {
783         uint32 jobid;
784         UNISTR printername;
785         UNISTR machinename;
786         UNISTR username;
787         UNISTR document;
788         UNISTR datatype;
789         UNISTR text_status;
790         uint32 status;
791         uint32 priority;
792         uint32 position;
793         uint32 totalpages;
794         uint32 pagesprinted;
795         SYSTEMTIME submitted;
796 }
797 JOB_INFO_1;
798
799 typedef struct s_job_info_2
800 {
801         uint32 jobid;
802         UNISTR printername;
803         UNISTR machinename;
804         UNISTR username;
805         UNISTR document;
806         UNISTR notifyname;
807         UNISTR datatype;
808         UNISTR printprocessor;
809         UNISTR parameters;
810         UNISTR drivername;
811         DEVICEMODE *devmode;
812         UNISTR text_status;
813 /*      SEC_DESC sec_desc;*/
814         uint32 status;
815         uint32 priority;
816         uint32 position;
817         uint32 starttime;
818         uint32 untiltime;
819         uint32 totalpages;
820         uint32 size;
821         SYSTEMTIME submitted;
822         uint32 timeelapsed;
823         uint32 pagesprinted;
824 }
825 JOB_INFO_2;
826
827 typedef struct spool_q_enumjobs
828 {
829         POLICY_HND handle;
830         uint32 firstjob;
831         uint32 numofjobs;
832         uint32 level;
833         RPC_BUFFER *buffer;
834         uint32 offered;
835 }
836 SPOOL_Q_ENUMJOBS;
837
838 typedef struct job_info_ctr_info
839 {
840         union
841         {
842                 JOB_INFO_1 *job_info_1;
843                 JOB_INFO_2 *job_info_2;
844                 void *info;
845         } job;
846
847 } JOB_INFO_CTR;
848
849 typedef struct spool_r_enumjobs
850 {
851         RPC_BUFFER *buffer;
852         uint32 needed;
853         uint32 returned;
854         WERROR status;
855 }
856 SPOOL_R_ENUMJOBS;
857
858 typedef struct s_port_info_1
859 {
860         UNISTR port_name;
861 }
862 PORT_INFO_1;
863
864 typedef struct s_port_info_2
865 {
866         UNISTR port_name;
867         UNISTR monitor_name;
868         UNISTR description;
869         uint32 port_type;
870         uint32 reserved;
871 }
872 PORT_INFO_2;
873
874 /* Port Type bits */
875 #define PORT_TYPE_WRITE         0x0001
876 #define PORT_TYPE_READ          0x0002
877 #define PORT_TYPE_REDIRECTED    0x0004
878 #define PORT_TYPE_NET_ATTACHED  0x0008
879
880 typedef struct spool_q_enumports
881 {
882         uint32 name_ptr;
883         UNISTR2 name;
884         uint32 level;
885         RPC_BUFFER *buffer;
886         uint32 offered;
887 }
888 SPOOL_Q_ENUMPORTS;
889
890 typedef struct port_info_ctr_info
891 {
892         union
893         {
894                 PORT_INFO_1 *info_1;
895                 PORT_INFO_2 *info_2;
896         }
897         port;
898
899 }
900 PORT_INFO_CTR;
901
902 typedef struct spool_r_enumports
903 {
904         RPC_BUFFER *buffer;
905         uint32 needed;          /* bytes needed */
906         uint32 returned;        /* number of printers */
907         WERROR status;
908 }
909 SPOOL_R_ENUMPORTS;
910
911 typedef struct job_info_info
912 {
913         union
914         {
915                 JOB_INFO_1 job_info_1;
916                 JOB_INFO_2 job_info_2;
917         }
918         job;
919
920 }
921 JOB_INFO;
922
923 typedef struct spool_q_enumprinterdrivers
924 {
925         uint32 name_ptr;
926         UNISTR2 name;
927         uint32 environment_ptr;
928         UNISTR2 environment;
929         uint32 level;
930         RPC_BUFFER *buffer;
931         uint32 offered;
932 }
933 SPOOL_Q_ENUMPRINTERDRIVERS;
934
935 typedef struct spool_r_enumprinterdrivers
936 {
937         RPC_BUFFER *buffer;
938         uint32 needed;
939         uint32 returned;
940         WERROR status;
941 }
942 SPOOL_R_ENUMPRINTERDRIVERS;
943
944 #define FORM_USER    0
945 #define FORM_BUILTIN 1
946 #define FORM_PRINTER 2
947
948 typedef struct spool_form_1
949 {
950         uint32 flag;
951         UNISTR name;
952         uint32 width;
953         uint32 length;
954         uint32 left;
955         uint32 top;
956         uint32 right;
957         uint32 bottom;
958 }
959 FORM_1;
960
961 typedef struct spool_q_enumforms
962 {
963         POLICY_HND handle;
964         uint32 level;
965         RPC_BUFFER *buffer;
966         uint32 offered;
967 }
968 SPOOL_Q_ENUMFORMS;
969
970 typedef struct spool_r_enumforms
971 {
972         RPC_BUFFER *buffer;
973         uint32 needed;
974         uint32 numofforms;
975         WERROR status;
976 }
977 SPOOL_R_ENUMFORMS;
978
979 typedef struct spool_printer_info_level_1
980 {
981         uint32 flags;
982         uint32 description_ptr;
983         uint32 name_ptr;
984         uint32 comment_ptr;
985         UNISTR2 description;
986         UNISTR2 name;
987         UNISTR2 comment;        
988 } SPOOL_PRINTER_INFO_LEVEL_1;
989
990 typedef struct spool_printer_info_level_2
991 {
992         uint32 servername_ptr;
993         uint32 printername_ptr;
994         uint32 sharename_ptr;
995         uint32 portname_ptr;
996         uint32 drivername_ptr;
997         uint32 comment_ptr;
998         uint32 location_ptr;
999         uint32 devmode_ptr;
1000         uint32 sepfile_ptr;
1001         uint32 printprocessor_ptr;
1002         uint32 datatype_ptr;
1003         uint32 parameters_ptr;
1004         uint32 secdesc_ptr;
1005         uint32 attributes;
1006         uint32 priority;
1007         uint32 default_priority;
1008         uint32 starttime;
1009         uint32 untiltime;
1010         uint32 status;
1011         uint32 cjobs;
1012         uint32 averageppm;
1013         UNISTR2 servername;
1014         UNISTR2 printername;
1015         UNISTR2 sharename;
1016         UNISTR2 portname;
1017         UNISTR2 drivername;
1018         UNISTR2 comment;
1019         UNISTR2 location;
1020         UNISTR2 sepfile;
1021         UNISTR2 printprocessor;
1022         UNISTR2 datatype;
1023         UNISTR2 parameters;
1024 }
1025 SPOOL_PRINTER_INFO_LEVEL_2;
1026
1027 typedef struct spool_printer_info_level_3
1028 {
1029         uint32 secdesc_ptr;
1030 }
1031 SPOOL_PRINTER_INFO_LEVEL_3;
1032
1033 typedef struct spool_printer_info_level_7
1034 {
1035         uint32 guid_ptr;
1036         uint32 action;
1037         UNISTR2 guid;
1038 }
1039 SPOOL_PRINTER_INFO_LEVEL_7;
1040
1041 typedef struct spool_printer_info_level
1042 {
1043         uint32 level;
1044         uint32 info_ptr;
1045         SPOOL_PRINTER_INFO_LEVEL_1 *info_1;
1046         SPOOL_PRINTER_INFO_LEVEL_2 *info_2;
1047         SPOOL_PRINTER_INFO_LEVEL_3 *info_3;
1048         SPOOL_PRINTER_INFO_LEVEL_7 *info_7;
1049 }
1050 SPOOL_PRINTER_INFO_LEVEL;
1051
1052 typedef struct spool_printer_driver_info_level_3
1053 {
1054         uint32 cversion;
1055         uint32 name_ptr;
1056         uint32 environment_ptr;
1057         uint32 driverpath_ptr;
1058         uint32 datafile_ptr;
1059         uint32 configfile_ptr;
1060         uint32 helpfile_ptr;
1061         uint32 monitorname_ptr;
1062         uint32 defaultdatatype_ptr;
1063         uint32 dependentfilessize;
1064         uint32 dependentfiles_ptr;
1065
1066         UNISTR2 name;
1067         UNISTR2 environment;
1068         UNISTR2 driverpath;
1069         UNISTR2 datafile;
1070         UNISTR2 configfile;
1071         UNISTR2 helpfile;
1072         UNISTR2 monitorname;
1073         UNISTR2 defaultdatatype;
1074         BUFFER5 dependentfiles;
1075
1076 }
1077 SPOOL_PRINTER_DRIVER_INFO_LEVEL_3;
1078
1079 /* SPOOL_PRINTER_DRIVER_INFO_LEVEL_6 structure */
1080 typedef struct {
1081         uint32 version;
1082         uint32 name_ptr;
1083         uint32 environment_ptr;
1084         uint32 driverpath_ptr;
1085         uint32 datafile_ptr;
1086         uint32 configfile_ptr;
1087         uint32 helpfile_ptr;
1088         uint32 monitorname_ptr;
1089         uint32 defaultdatatype_ptr;
1090         uint32 dependentfiles_len;
1091         uint32 dependentfiles_ptr;
1092         uint32 previousnames_len;
1093         uint32 previousnames_ptr;
1094         NTTIME  driverdate;
1095         uint64  driverversion;
1096         uint32  dummy4;
1097         uint32 mfgname_ptr;
1098         uint32 oemurl_ptr;
1099         uint32 hardwareid_ptr;
1100         uint32 provider_ptr;
1101         UNISTR2 name;
1102         UNISTR2 environment;
1103         UNISTR2 driverpath;
1104         UNISTR2 datafile;
1105         UNISTR2 configfile;
1106         UNISTR2 helpfile;
1107         UNISTR2 monitorname;
1108         UNISTR2 defaultdatatype;
1109         BUFFER5 dependentfiles;
1110         BUFFER5 previousnames;
1111         UNISTR2 mfgname;
1112         UNISTR2 oemurl;
1113         UNISTR2 hardwareid;
1114         UNISTR2 provider;
1115 } SPOOL_PRINTER_DRIVER_INFO_LEVEL_6;
1116
1117
1118 typedef struct spool_printer_driver_info_level
1119 {
1120         uint32 level;
1121         uint32 ptr;
1122         SPOOL_PRINTER_DRIVER_INFO_LEVEL_3 *info_3;
1123         SPOOL_PRINTER_DRIVER_INFO_LEVEL_6 *info_6;
1124 }
1125 SPOOL_PRINTER_DRIVER_INFO_LEVEL;
1126
1127
1128 typedef struct spool_q_setprinter
1129 {
1130         POLICY_HND handle;
1131         uint32 level;
1132         SPOOL_PRINTER_INFO_LEVEL info;
1133         SEC_DESC_BUF *secdesc_ctr;
1134         DEVMODE_CTR devmode_ctr;
1135
1136         uint32 command;
1137
1138 }
1139 SPOOL_Q_SETPRINTER;
1140
1141 typedef struct spool_r_setprinter
1142 {
1143         WERROR status;
1144 }
1145 SPOOL_R_SETPRINTER;
1146
1147 /********************************************/
1148
1149 typedef struct {
1150         UNISTR2 *server_name;
1151         uint32 level;
1152         SPOOL_PRINTER_INFO_LEVEL info;
1153         DEVMODE_CTR devmode_ctr;
1154         SEC_DESC_BUF *secdesc_ctr;
1155         uint32 user_switch;
1156         SPOOL_USER_CTR user_ctr;
1157 } SPOOL_Q_ADDPRINTEREX;
1158
1159 typedef struct {
1160         POLICY_HND handle;
1161         WERROR status;
1162 } SPOOL_R_ADDPRINTEREX;
1163
1164 /********************************************/
1165
1166 typedef struct spool_q_addprinterdriver
1167 {
1168         uint32 server_name_ptr;
1169         UNISTR2 server_name;
1170         uint32 level;
1171         SPOOL_PRINTER_DRIVER_INFO_LEVEL info;
1172 }
1173 SPOOL_Q_ADDPRINTERDRIVER;
1174
1175 typedef struct spool_r_addprinterdriver
1176 {
1177         WERROR status;
1178 }
1179 SPOOL_R_ADDPRINTERDRIVER;
1180
1181 typedef struct spool_q_addprinterdriverex
1182 {
1183         uint32 server_name_ptr;
1184         UNISTR2 server_name;
1185         uint32 level;
1186         SPOOL_PRINTER_DRIVER_INFO_LEVEL info;
1187         uint32 copy_flags;
1188 }
1189 SPOOL_Q_ADDPRINTERDRIVEREX;
1190
1191 typedef struct spool_r_addprinterdriverex
1192 {
1193         WERROR status;
1194 }
1195 SPOOL_R_ADDPRINTERDRIVEREX;
1196
1197 typedef struct spool_q_enumprintprocessors
1198 {
1199         uint32 name_ptr;
1200         UNISTR2 name;
1201         uint32 environment_ptr;
1202         UNISTR2 environment;
1203         uint32 level;
1204         RPC_BUFFER *buffer;
1205         uint32 offered;
1206 }
1207 SPOOL_Q_ENUMPRINTPROCESSORS;
1208
1209 typedef struct printprocessor_1
1210 {
1211         UNISTR name;
1212 }
1213 PRINTPROCESSOR_1;
1214
1215 typedef struct spool_r_enumprintprocessors
1216 {
1217         RPC_BUFFER *buffer;
1218         uint32 needed;
1219         uint32 returned;
1220         WERROR status;
1221 }
1222 SPOOL_R_ENUMPRINTPROCESSORS;
1223
1224 typedef struct spool_q_enumprintprocdatatypes
1225 {
1226         uint32 name_ptr;
1227         UNISTR2 name;
1228         uint32 processor_ptr;
1229         UNISTR2 processor;
1230         uint32 level;
1231         RPC_BUFFER *buffer;
1232         uint32 offered;
1233 }
1234 SPOOL_Q_ENUMPRINTPROCDATATYPES;
1235
1236 typedef struct ppdatatype_1
1237 {
1238         UNISTR name;
1239 }
1240 PRINTPROCDATATYPE_1;
1241
1242 typedef struct spool_r_enumprintprocdatatypes
1243 {
1244         RPC_BUFFER *buffer;
1245         uint32 needed;
1246         uint32 returned;
1247         WERROR status;
1248 }
1249 SPOOL_R_ENUMPRINTPROCDATATYPES;
1250
1251 typedef struct printmonitor_1
1252 {
1253         UNISTR name;
1254 }
1255 PRINTMONITOR_1;
1256
1257 typedef struct printmonitor_2
1258 {
1259         UNISTR name;
1260         UNISTR environment;
1261         UNISTR dll_name;
1262 }
1263 PRINTMONITOR_2;
1264
1265 typedef struct spool_q_enumprintmonitors
1266 {
1267         uint32 name_ptr;
1268         UNISTR2 name;
1269         uint32 level;
1270         RPC_BUFFER *buffer;
1271         uint32 offered;
1272 }
1273 SPOOL_Q_ENUMPRINTMONITORS;
1274
1275 typedef struct spool_r_enumprintmonitors
1276 {
1277         RPC_BUFFER *buffer;
1278         uint32 needed;
1279         uint32 returned;
1280         WERROR status;
1281 }
1282 SPOOL_R_ENUMPRINTMONITORS;
1283
1284
1285 typedef struct spool_q_enumprinterdata
1286 {
1287         POLICY_HND handle;
1288         uint32 index;
1289         uint32 valuesize;
1290         uint32 datasize;
1291 }
1292 SPOOL_Q_ENUMPRINTERDATA;
1293
1294 typedef struct spool_r_enumprinterdata
1295 {
1296         uint32 valuesize;
1297         uint16 *value;
1298         uint32 realvaluesize;
1299         uint32 type;
1300         uint32 datasize;
1301         uint8 *data;
1302         uint32 realdatasize;
1303         WERROR status;
1304 }
1305 SPOOL_R_ENUMPRINTERDATA;
1306
1307 typedef struct spool_q_setprinterdata
1308 {
1309         POLICY_HND handle;
1310         UNISTR2 value;
1311         uint32 type;
1312         uint32 max_len;
1313         uint8 *data;
1314         uint32 real_len;
1315         uint32 numeric_data;
1316 }
1317 SPOOL_Q_SETPRINTERDATA;
1318
1319 typedef struct spool_r_setprinterdata
1320 {
1321         WERROR status;
1322 }
1323 SPOOL_R_SETPRINTERDATA;
1324
1325 typedef struct _form
1326 {
1327         uint32 flags;
1328         uint32 name_ptr;
1329         uint32 size_x;
1330         uint32 size_y;
1331         uint32 left;
1332         uint32 top;
1333         uint32 right;
1334         uint32 bottom;
1335         UNISTR2 name;
1336 }
1337 FORM;
1338
1339 typedef struct spool_q_getjob
1340 {
1341         POLICY_HND handle;
1342         uint32 jobid;
1343         uint32 level;
1344         RPC_BUFFER *buffer;
1345         uint32 offered;
1346 }
1347 SPOOL_Q_GETJOB;
1348
1349 typedef struct pjob_info_info
1350 {
1351         union
1352         {
1353                 JOB_INFO_1 *job_info_1;
1354                 JOB_INFO_2 *job_info_2;
1355                 void *info;
1356         }
1357         job;
1358
1359 }
1360 PJOB_INFO;
1361
1362 typedef struct spool_r_getjob
1363 {
1364         RPC_BUFFER *buffer;
1365         uint32 needed;
1366         WERROR status;
1367 }
1368 SPOOL_R_GETJOB;
1369
1370 typedef struct spool_q_rrpcn
1371 {
1372         POLICY_HND handle;
1373         uint32 change_low;
1374         uint32 change_high;
1375         uint32 unknown0;
1376         uint32 unknown1;
1377         uint32 info_ptr;
1378         SPOOL_NOTIFY_INFO info; 
1379 }
1380 SPOOL_Q_REPLY_RRPCN;
1381
1382 typedef struct spool_r_rrpcn
1383 {
1384         uint32 unknown0;
1385         WERROR status;
1386 }
1387 SPOOL_R_REPLY_RRPCN;
1388
1389 typedef struct spool_q_enumprinterkey
1390 {
1391         POLICY_HND handle;
1392         UNISTR2 key;
1393         uint32 size;
1394 }
1395 SPOOL_Q_ENUMPRINTERKEY;
1396
1397 typedef struct spool_r_enumprinterkey
1398 {
1399         BUFFER5 keys;
1400         uint32 needed;  /* in bytes */
1401         WERROR status;
1402 }
1403 SPOOL_R_ENUMPRINTERKEY;
1404
1405 typedef struct printer_enum_values
1406 {
1407         UNISTR valuename;
1408         uint32 value_len;
1409         uint32 type;
1410         uint8  *data;
1411         uint32 data_len; 
1412         
1413 }
1414 PRINTER_ENUM_VALUES;
1415
1416 typedef struct printer_enum_values_ctr
1417 {
1418         uint32 size;
1419         uint32 size_of_array;
1420         PRINTER_ENUM_VALUES *values;
1421 }
1422 PRINTER_ENUM_VALUES_CTR;
1423
1424 typedef struct spool_q_enumprinterdataex
1425 {
1426         POLICY_HND handle;
1427         UNISTR2 key;
1428         uint32 size;
1429 }
1430 SPOOL_Q_ENUMPRINTERDATAEX;
1431
1432 typedef struct spool_r_enumprinterdataex
1433 {
1434         PRINTER_ENUM_VALUES_CTR ctr;
1435         uint32 needed;
1436         uint32 returned;
1437         WERROR status;
1438 }
1439 SPOOL_R_ENUMPRINTERDATAEX;
1440
1441 typedef struct printprocessor_directory_1
1442 {
1443         UNISTR name;
1444 }
1445 PRINTPROCESSOR_DIRECTORY_1;
1446
1447 typedef struct spool_q_getprintprocessordirectory
1448 {
1449         UNISTR2 name;
1450         UNISTR2 environment;
1451         uint32 level;
1452         RPC_BUFFER *buffer;
1453         uint32 offered;
1454 }
1455 SPOOL_Q_GETPRINTPROCESSORDIRECTORY;
1456
1457 typedef struct spool_r_getprintprocessordirectory
1458 {
1459         RPC_BUFFER *buffer;
1460         uint32 needed;
1461         WERROR status;
1462 }
1463 SPOOL_R_GETPRINTPROCESSORDIRECTORY;
1464
1465 /**************************************/
1466
1467 #define PRINTER_DRIVER_VERSION 2
1468 #define PRINTER_DRIVER_ARCHITECTURE "Windows NT x86"
1469
1470 #endif /* _RPC_SPOOLSS_H */
1471