2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Andrew Tridgell 1992-2000,
5 * Copyright (C) Luke Kenneth Casson Leighton 1996-2000,
6 * Copyright (C) Jean François Micouleau 1998-2000.
7 * Copyright (C) Jeremy Allison 2001.
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 2 of the License, or
12 * (at your option) any later version.
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.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 /********************************************************************
27 * api_spoolss_open_printer_ex (rarely seen - older call)
28 ********************************************************************/
30 static BOOL
api_spoolss_open_printer(pipes_struct
*p
)
32 SPOOL_Q_OPEN_PRINTER q_u
;
33 SPOOL_R_OPEN_PRINTER r_u
;
34 prs_struct
*data
= &p
->in_data
.data
;
35 prs_struct
*rdata
= &p
->out_data
.rdata
;
40 if (!spoolss_io_q_open_printer("", &q_u
, data
, 0)) {
41 DEBUG(0,("spoolss_io_q_open_printer: unable to unmarshall SPOOL_Q_OPEN_PRINTER.\n"));
45 r_u
.status
= _spoolss_open_printer( p
, &q_u
, &r_u
);
47 if (!spoolss_io_r_open_printer("",&r_u
,rdata
,0)){
48 DEBUG(0,("spoolss_io_r_open_printer: unable to marshall SPOOL_R_OPEN_PRINTER.\n"));
56 /********************************************************************
57 * api_spoolss_open_printer_ex
58 ********************************************************************/
60 static BOOL
api_spoolss_open_printer_ex(pipes_struct
*p
)
62 SPOOL_Q_OPEN_PRINTER_EX q_u
;
63 SPOOL_R_OPEN_PRINTER_EX r_u
;
64 prs_struct
*data
= &p
->in_data
.data
;
65 prs_struct
*rdata
= &p
->out_data
.rdata
;
70 if (!spoolss_io_q_open_printer_ex("", &q_u
, data
, 0)) {
71 DEBUG(0,("spoolss_io_q_open_printer_ex: unable to unmarshall SPOOL_Q_OPEN_PRINTER_EX.\n"));
75 r_u
.status
= _spoolss_open_printer_ex( p
, &q_u
, &r_u
);
77 if (!spoolss_io_r_open_printer_ex("",&r_u
,rdata
,0)){
78 DEBUG(0,("spoolss_io_r_open_printer_ex: unable to marshall SPOOL_R_OPEN_PRINTER_EX.\n"));
85 /********************************************************************
86 * api_spoolss_getprinterdata
88 * called from the spoolss dispatcher
89 ********************************************************************/
91 static BOOL
api_spoolss_getprinterdata(pipes_struct
*p
)
93 SPOOL_Q_GETPRINTERDATA q_u
;
94 SPOOL_R_GETPRINTERDATA r_u
;
95 prs_struct
*data
= &p
->in_data
.data
;
96 prs_struct
*rdata
= &p
->out_data
.rdata
;
101 /* read the stream and fill the struct */
102 if (!spoolss_io_q_getprinterdata("", &q_u
, data
, 0)) {
103 DEBUG(0,("spoolss_io_q_getprinterdata: unable to unmarshall SPOOL_Q_GETPRINTERDATA.\n"));
107 r_u
.status
= _spoolss_getprinterdata( p
, &q_u
, &r_u
);
109 if (!spoolss_io_r_getprinterdata("", &r_u
, rdata
, 0)) {
110 DEBUG(0,("spoolss_io_r_getprinterdata: unable to marshall SPOOL_R_GETPRINTERDATA.\n"));
117 /********************************************************************
118 * api_spoolss_deleteprinterdata
120 * called from the spoolss dispatcher
121 ********************************************************************/
123 static BOOL
api_spoolss_deleteprinterdata(pipes_struct
*p
)
125 SPOOL_Q_DELETEPRINTERDATA q_u
;
126 SPOOL_R_DELETEPRINTERDATA r_u
;
127 prs_struct
*data
= &p
->in_data
.data
;
128 prs_struct
*rdata
= &p
->out_data
.rdata
;
133 /* read the stream and fill the struct */
134 if (!spoolss_io_q_deleteprinterdata("", &q_u
, data
, 0)) {
135 DEBUG(0,("spoolss_io_q_deleteprinterdata: unable to unmarshall SPOOL_Q_DELETEPRINTERDATA.\n"));
139 r_u
.status
= _spoolss_deleteprinterdata( p
, &q_u
, &r_u
);
141 if (!spoolss_io_r_deleteprinterdata("", &r_u
, rdata
, 0)) {
142 DEBUG(0,("spoolss_io_r_deleteprinterdata: unable to marshall SPOOL_R_DELETEPRINTERDATA.\n"));
149 /********************************************************************
150 * api_spoolss_closeprinter
152 * called from the spoolss dispatcher
153 ********************************************************************/
155 static BOOL
api_spoolss_closeprinter(pipes_struct
*p
)
157 SPOOL_Q_CLOSEPRINTER q_u
;
158 SPOOL_R_CLOSEPRINTER r_u
;
159 prs_struct
*data
= &p
->in_data
.data
;
160 prs_struct
*rdata
= &p
->out_data
.rdata
;
165 if (!spoolss_io_q_closeprinter("", &q_u
, data
, 0)) {
166 DEBUG(0,("spoolss_io_q_closeprinter: unable to unmarshall SPOOL_Q_CLOSEPRINTER.\n"));
170 r_u
.status
= _spoolss_closeprinter(p
, &q_u
, &r_u
);
172 if (!spoolss_io_r_closeprinter("",&r_u
,rdata
,0)) {
173 DEBUG(0,("spoolss_io_r_closeprinter: unable to marshall SPOOL_R_CLOSEPRINTER.\n"));
180 /********************************************************************
181 * api_spoolss_abortprinter
183 * called from the spoolss dispatcher
184 ********************************************************************/
186 static BOOL
api_spoolss_abortprinter(pipes_struct
*p
)
188 SPOOL_Q_ABORTPRINTER q_u
;
189 SPOOL_R_ABORTPRINTER r_u
;
190 prs_struct
*data
= &p
->in_data
.data
;
191 prs_struct
*rdata
= &p
->out_data
.rdata
;
196 if (!spoolss_io_q_abortprinter("", &q_u
, data
, 0)) {
197 DEBUG(0,("spoolss_io_q_abortprinter: unable to unmarshall SPOOL_Q_ABORTPRINTER.\n"));
201 r_u
.status
= _spoolss_abortprinter(p
, &q_u
, &r_u
);
203 if (!spoolss_io_r_abortprinter("",&r_u
,rdata
,0)) {
204 DEBUG(0,("spoolss_io_r_abortprinter: unable to marshall SPOOL_R_ABORTPRINTER.\n"));
211 /********************************************************************
212 * api_spoolss_deleteprinter
214 * called from the spoolss dispatcher
215 ********************************************************************/
217 static BOOL
api_spoolss_deleteprinter(pipes_struct
*p
)
219 SPOOL_Q_DELETEPRINTER q_u
;
220 SPOOL_R_DELETEPRINTER r_u
;
221 prs_struct
*data
= &p
->in_data
.data
;
222 prs_struct
*rdata
= &p
->out_data
.rdata
;
227 if (!spoolss_io_q_deleteprinter("", &q_u
, data
, 0)) {
228 DEBUG(0,("spoolss_io_q_deleteprinter: unable to unmarshall SPOOL_Q_DELETEPRINTER.\n"));
232 r_u
.status
= _spoolss_deleteprinter(p
, &q_u
, &r_u
);
234 if (!spoolss_io_r_deleteprinter("",&r_u
,rdata
,0)) {
235 DEBUG(0,("spoolss_io_r_deleteprinter: unable to marshall SPOOL_R_DELETEPRINTER.\n"));
243 /********************************************************************
244 * api_spoolss_deleteprinterdriver
246 * called from the spoolss dispatcher
247 ********************************************************************/
249 static BOOL
api_spoolss_deleteprinterdriver(pipes_struct
*p
)
251 SPOOL_Q_DELETEPRINTERDRIVER q_u
;
252 SPOOL_R_DELETEPRINTERDRIVER r_u
;
253 prs_struct
*data
= &p
->in_data
.data
;
254 prs_struct
*rdata
= &p
->out_data
.rdata
;
259 if (!spoolss_io_q_deleteprinterdriver("", &q_u
, data
, 0)) {
260 DEBUG(0,("spoolss_io_q_deleteprinterdriver: unable to unmarshall SPOOL_Q_DELETEPRINTERDRIVER.\n"));
264 r_u
.status
= _spoolss_deleteprinterdriver(p
, &q_u
, &r_u
);
266 if (!spoolss_io_r_deleteprinterdriver("",&r_u
,rdata
,0)) {
267 DEBUG(0,("spoolss_io_r_deleteprinter: unable to marshall SPOOL_R_DELETEPRINTER.\n"));
275 /********************************************************************
276 * api_spoolss_rffpcnex
277 * ReplyFindFirstPrinterChangeNotifyEx
278 ********************************************************************/
280 static BOOL
api_spoolss_rffpcnex(pipes_struct
*p
)
282 SPOOL_Q_RFFPCNEX q_u
;
283 SPOOL_R_RFFPCNEX r_u
;
284 prs_struct
*data
= &p
->in_data
.data
;
285 prs_struct
*rdata
= &p
->out_data
.rdata
;
290 if (!spoolss_io_q_rffpcnex("", &q_u
, data
, 0)) {
291 DEBUG(0,("spoolss_io_q_rffpcnex: unable to unmarshall SPOOL_Q_RFFPCNEX.\n"));
295 r_u
.status
= _spoolss_rffpcnex(p
, &q_u
, &r_u
);
297 if (!spoolss_io_r_rffpcnex("", &r_u
, rdata
, 0)) {
298 DEBUG(0,("spoolss_io_r_rffpcnex: unable to marshall SPOOL_R_RFFPCNEX.\n"));
306 /********************************************************************
307 * api_spoolss_rfnpcnex
308 * ReplyFindNextPrinterChangeNotifyEx
309 * called from the spoolss dispatcher
311 * Note - this is the *ONLY* function that breaks the RPC call
312 * symmetry in all the other calls. We need to do this to fix
313 * the massive memory allocation problem with thousands of jobs...
315 ********************************************************************/
317 static BOOL
api_spoolss_rfnpcnex(pipes_struct
*p
)
319 SPOOL_Q_RFNPCNEX q_u
;
320 SPOOL_R_RFNPCNEX r_u
;
321 prs_struct
*data
= &p
->in_data
.data
;
322 prs_struct
*rdata
= &p
->out_data
.rdata
;
327 if (!spoolss_io_q_rfnpcnex("", &q_u
, data
, 0)) {
328 DEBUG(0,("spoolss_io_q_rfnpcnex: unable to unmarshall SPOOL_Q_RFNPCNEX.\n"));
332 r_u
.status
= _spoolss_rfnpcnex(p
, &q_u
, &r_u
);
334 if (!spoolss_io_r_rfnpcnex("", &r_u
, rdata
, 0)) {
335 SAFE_FREE(r_u
.info
.data
);
336 DEBUG(0,("spoolss_io_r_rfnpcnex: unable to marshall SPOOL_R_RFNPCNEX.\n"));
340 SAFE_FREE(r_u
.info
.data
);
346 /********************************************************************
347 * api_spoolss_enumprinters
348 * called from the spoolss dispatcher
350 ********************************************************************/
352 static BOOL
api_spoolss_enumprinters(pipes_struct
*p
)
354 SPOOL_Q_ENUMPRINTERS q_u
;
355 SPOOL_R_ENUMPRINTERS r_u
;
356 prs_struct
*data
= &p
->in_data
.data
;
357 prs_struct
*rdata
= &p
->out_data
.rdata
;
362 if (!spoolss_io_q_enumprinters("", &q_u
, data
, 0)) {
363 DEBUG(0,("spoolss_io_q_enumprinters: unable to unmarshall SPOOL_Q_ENUMPRINTERS.\n"));
367 r_u
.status
= _spoolss_enumprinters( p
, &q_u
, &r_u
);
369 if (!spoolss_io_r_enumprinters("", &r_u
, rdata
, 0)) {
370 DEBUG(0,("spoolss_io_r_enumprinters: unable to marshall SPOOL_R_ENUMPRINTERS.\n"));
377 /********************************************************************
378 * api_spoolss_getprinter
379 * called from the spoolss dispatcher
381 ********************************************************************/
383 static BOOL
api_spoolss_getprinter(pipes_struct
*p
)
385 SPOOL_Q_GETPRINTER q_u
;
386 SPOOL_R_GETPRINTER r_u
;
387 prs_struct
*data
= &p
->in_data
.data
;
388 prs_struct
*rdata
= &p
->out_data
.rdata
;
393 if(!spoolss_io_q_getprinter("", &q_u
, data
, 0)) {
394 DEBUG(0,("spoolss_io_q_getprinter: unable to unmarshall SPOOL_Q_GETPRINTER.\n"));
398 r_u
.status
= _spoolss_getprinter(p
, &q_u
, &r_u
);
400 if(!spoolss_io_r_getprinter("",&r_u
,rdata
,0)) {
401 DEBUG(0,("spoolss_io_r_getprinter: unable to marshall SPOOL_R_GETPRINTER.\n"));
408 /********************************************************************
409 * api_spoolss_getprinter
410 * called from the spoolss dispatcher
412 ********************************************************************/
414 static BOOL
api_spoolss_getprinterdriver2(pipes_struct
*p
)
416 SPOOL_Q_GETPRINTERDRIVER2 q_u
;
417 SPOOL_R_GETPRINTERDRIVER2 r_u
;
418 prs_struct
*data
= &p
->in_data
.data
;
419 prs_struct
*rdata
= &p
->out_data
.rdata
;
424 if(!spoolss_io_q_getprinterdriver2("", &q_u
, data
, 0)) {
425 DEBUG(0,("spoolss_io_q_getprinterdriver2: unable to unmarshall SPOOL_Q_GETPRINTERDRIVER2.\n"));
429 r_u
.status
= _spoolss_getprinterdriver2(p
, &q_u
, &r_u
);
431 if(!spoolss_io_r_getprinterdriver2("",&r_u
,rdata
,0)) {
432 DEBUG(0,("spoolss_io_r_getprinterdriver2: unable to marshall SPOOL_R_GETPRINTERDRIVER2.\n"));
439 /********************************************************************
440 * api_spoolss_getprinter
441 * called from the spoolss dispatcher
443 ********************************************************************/
445 static BOOL
api_spoolss_startpageprinter(pipes_struct
*p
)
447 SPOOL_Q_STARTPAGEPRINTER q_u
;
448 SPOOL_R_STARTPAGEPRINTER r_u
;
449 prs_struct
*data
= &p
->in_data
.data
;
450 prs_struct
*rdata
= &p
->out_data
.rdata
;
455 if(!spoolss_io_q_startpageprinter("", &q_u
, data
, 0)) {
456 DEBUG(0,("spoolss_io_q_startpageprinter: unable to unmarshall SPOOL_Q_STARTPAGEPRINTER.\n"));
460 r_u
.status
= _spoolss_startpageprinter(p
, &q_u
, &r_u
);
462 if(!spoolss_io_r_startpageprinter("",&r_u
,rdata
,0)) {
463 DEBUG(0,("spoolss_io_r_startpageprinter: unable to marshall SPOOL_R_STARTPAGEPRINTER.\n"));
470 /********************************************************************
471 * api_spoolss_getprinter
472 * called from the spoolss dispatcher
474 ********************************************************************/
476 static BOOL
api_spoolss_endpageprinter(pipes_struct
*p
)
478 SPOOL_Q_ENDPAGEPRINTER q_u
;
479 SPOOL_R_ENDPAGEPRINTER r_u
;
480 prs_struct
*data
= &p
->in_data
.data
;
481 prs_struct
*rdata
= &p
->out_data
.rdata
;
486 if(!spoolss_io_q_endpageprinter("", &q_u
, data
, 0)) {
487 DEBUG(0,("spoolss_io_q_endpageprinter: unable to unmarshall SPOOL_Q_ENDPAGEPRINTER.\n"));
491 r_u
.status
= _spoolss_endpageprinter(p
, &q_u
, &r_u
);
493 if(!spoolss_io_r_endpageprinter("",&r_u
,rdata
,0)) {
494 DEBUG(0,("spoolss_io_r_endpageprinter: unable to marshall SPOOL_R_ENDPAGEPRINTER.\n"));
501 /********************************************************************
502 ********************************************************************/
504 static BOOL
api_spoolss_startdocprinter(pipes_struct
*p
)
506 SPOOL_Q_STARTDOCPRINTER q_u
;
507 SPOOL_R_STARTDOCPRINTER r_u
;
508 prs_struct
*data
= &p
->in_data
.data
;
509 prs_struct
*rdata
= &p
->out_data
.rdata
;
514 if(!spoolss_io_q_startdocprinter("", &q_u
, data
, 0)) {
515 DEBUG(0,("spoolss_io_q_startdocprinter: unable to unmarshall SPOOL_Q_STARTDOCPRINTER.\n"));
519 r_u
.status
= _spoolss_startdocprinter(p
, &q_u
, &r_u
);
521 if(!spoolss_io_r_startdocprinter("",&r_u
,rdata
,0)) {
522 DEBUG(0,("spoolss_io_r_startdocprinter: unable to marshall SPOOL_R_STARTDOCPRINTER.\n"));
529 /********************************************************************
530 ********************************************************************/
532 static BOOL
api_spoolss_enddocprinter(pipes_struct
*p
)
534 SPOOL_Q_ENDDOCPRINTER q_u
;
535 SPOOL_R_ENDDOCPRINTER r_u
;
536 prs_struct
*data
= &p
->in_data
.data
;
537 prs_struct
*rdata
= &p
->out_data
.rdata
;
542 if(!spoolss_io_q_enddocprinter("", &q_u
, data
, 0)) {
543 DEBUG(0,("spoolss_io_q_enddocprinter: unable to unmarshall SPOOL_Q_ENDDOCPRINTER.\n"));
547 r_u
.status
= _spoolss_enddocprinter(p
, &q_u
, &r_u
);
549 if(!spoolss_io_r_enddocprinter("",&r_u
,rdata
,0)) {
550 DEBUG(0,("spoolss_io_r_enddocprinter: unable to marshall SPOOL_R_ENDDOCPRINTER.\n"));
557 /********************************************************************
558 ********************************************************************/
560 static BOOL
api_spoolss_writeprinter(pipes_struct
*p
)
562 SPOOL_Q_WRITEPRINTER q_u
;
563 SPOOL_R_WRITEPRINTER r_u
;
564 prs_struct
*data
= &p
->in_data
.data
;
565 prs_struct
*rdata
= &p
->out_data
.rdata
;
570 if(!spoolss_io_q_writeprinter("", &q_u
, data
, 0)) {
571 DEBUG(0,("spoolss_io_q_writeprinter: unable to unmarshall SPOOL_Q_WRITEPRINTER.\n"));
575 r_u
.status
= _spoolss_writeprinter(p
, &q_u
, &r_u
);
577 if(!spoolss_io_r_writeprinter("",&r_u
,rdata
,0)) {
578 DEBUG(0,("spoolss_io_r_writeprinter: unable to marshall SPOOL_R_WRITEPRINTER.\n"));
585 /****************************************************************************
587 ****************************************************************************/
589 static BOOL
api_spoolss_setprinter(pipes_struct
*p
)
591 SPOOL_Q_SETPRINTER q_u
;
592 SPOOL_R_SETPRINTER r_u
;
593 prs_struct
*data
= &p
->in_data
.data
;
594 prs_struct
*rdata
= &p
->out_data
.rdata
;
599 if(!spoolss_io_q_setprinter("", &q_u
, data
, 0)) {
600 DEBUG(0,("spoolss_io_q_setprinter: unable to unmarshall SPOOL_Q_SETPRINTER.\n"));
604 r_u
.status
= _spoolss_setprinter(p
, &q_u
, &r_u
);
606 if(!spoolss_io_r_setprinter("",&r_u
,rdata
,0)) {
607 DEBUG(0,("spoolss_io_r_setprinter: unable to marshall SPOOL_R_SETPRINTER.\n"));
614 /****************************************************************************
615 ****************************************************************************/
617 static BOOL
api_spoolss_fcpn(pipes_struct
*p
)
621 prs_struct
*data
= &p
->in_data
.data
;
622 prs_struct
*rdata
= &p
->out_data
.rdata
;
627 if(!spoolss_io_q_fcpn("", &q_u
, data
, 0)) {
628 DEBUG(0,("spoolss_io_q_fcpn: unable to unmarshall SPOOL_Q_FCPN.\n"));
632 r_u
.status
= _spoolss_fcpn(p
, &q_u
, &r_u
);
634 if(!spoolss_io_r_fcpn("",&r_u
,rdata
,0)) {
635 DEBUG(0,("spoolss_io_r_fcpn: unable to marshall SPOOL_R_FCPN.\n"));
642 /****************************************************************************
643 ****************************************************************************/
645 static BOOL
api_spoolss_addjob(pipes_struct
*p
)
649 prs_struct
*data
= &p
->in_data
.data
;
650 prs_struct
*rdata
= &p
->out_data
.rdata
;
655 if(!spoolss_io_q_addjob("", &q_u
, data
, 0)) {
656 DEBUG(0,("spoolss_io_q_addjob: unable to unmarshall SPOOL_Q_ADDJOB.\n"));
660 r_u
.status
= _spoolss_addjob(p
, &q_u
, &r_u
);
662 if(!spoolss_io_r_addjob("",&r_u
,rdata
,0)) {
663 DEBUG(0,("spoolss_io_r_addjob: unable to marshall SPOOL_R_ADDJOB.\n"));
670 /****************************************************************************
671 ****************************************************************************/
673 static BOOL
api_spoolss_enumjobs(pipes_struct
*p
)
675 SPOOL_Q_ENUMJOBS q_u
;
676 SPOOL_R_ENUMJOBS r_u
;
677 prs_struct
*data
= &p
->in_data
.data
;
678 prs_struct
*rdata
= &p
->out_data
.rdata
;
683 if (!spoolss_io_q_enumjobs("", &q_u
, data
, 0)) {
684 DEBUG(0,("spoolss_io_q_enumjobs: unable to unmarshall SPOOL_Q_ENUMJOBS.\n"));
688 r_u
.status
= _spoolss_enumjobs(p
, &q_u
, &r_u
);
690 if (!spoolss_io_r_enumjobs("",&r_u
,rdata
,0)) {
691 DEBUG(0,("spoolss_io_r_enumjobs: unable to marshall SPOOL_R_ENUMJOBS.\n"));
698 /****************************************************************************
699 ****************************************************************************/
701 static BOOL
api_spoolss_schedulejob(pipes_struct
*p
)
703 SPOOL_Q_SCHEDULEJOB q_u
;
704 SPOOL_R_SCHEDULEJOB r_u
;
705 prs_struct
*data
= &p
->in_data
.data
;
706 prs_struct
*rdata
= &p
->out_data
.rdata
;
711 if(!spoolss_io_q_schedulejob("", &q_u
, data
, 0)) {
712 DEBUG(0,("spoolss_io_q_schedulejob: unable to unmarshall SPOOL_Q_SCHEDULEJOB.\n"));
716 r_u
.status
= _spoolss_schedulejob(p
, &q_u
, &r_u
);
718 if(!spoolss_io_r_schedulejob("",&r_u
,rdata
,0)) {
719 DEBUG(0,("spoolss_io_r_schedulejob: unable to marshall SPOOL_R_SCHEDULEJOB.\n"));
726 /****************************************************************************
727 ****************************************************************************/
729 static BOOL
api_spoolss_setjob(pipes_struct
*p
)
733 prs_struct
*data
= &p
->in_data
.data
;
734 prs_struct
*rdata
= &p
->out_data
.rdata
;
739 if(!spoolss_io_q_setjob("", &q_u
, data
, 0)) {
740 DEBUG(0,("spoolss_io_q_setjob: unable to unmarshall SPOOL_Q_SETJOB.\n"));
744 r_u
.status
= _spoolss_setjob(p
, &q_u
, &r_u
);
746 if(!spoolss_io_r_setjob("",&r_u
,rdata
,0)) {
747 DEBUG(0,("spoolss_io_r_setjob: unable to marshall SPOOL_R_SETJOB.\n"));
754 /****************************************************************************
755 ****************************************************************************/
757 static BOOL
api_spoolss_enumprinterdrivers(pipes_struct
*p
)
759 SPOOL_Q_ENUMPRINTERDRIVERS q_u
;
760 SPOOL_R_ENUMPRINTERDRIVERS r_u
;
761 prs_struct
*data
= &p
->in_data
.data
;
762 prs_struct
*rdata
= &p
->out_data
.rdata
;
767 if (!spoolss_io_q_enumprinterdrivers("", &q_u
, data
, 0)) {
768 DEBUG(0,("spoolss_io_q_enumprinterdrivers: unable to unmarshall SPOOL_Q_ENUMPRINTERDRIVERS.\n"));
772 r_u
.status
= _spoolss_enumprinterdrivers(p
, &q_u
, &r_u
);
774 if (!spoolss_io_r_enumprinterdrivers("",&r_u
,rdata
,0)) {
775 DEBUG(0,("spoolss_io_r_enumprinterdrivers: unable to marshall SPOOL_R_ENUMPRINTERDRIVERS.\n"));
782 /****************************************************************************
783 ****************************************************************************/
785 static BOOL
api_spoolss_getform(pipes_struct
*p
)
789 prs_struct
*data
= &p
->in_data
.data
;
790 prs_struct
*rdata
= &p
->out_data
.rdata
;
795 if (!spoolss_io_q_getform("", &q_u
, data
, 0)) {
796 DEBUG(0,("spoolss_io_q_getform: unable to unmarshall SPOOL_Q_GETFORM.\n"));
800 r_u
.status
= _spoolss_getform(p
, &q_u
, &r_u
);
802 if (!spoolss_io_r_getform("",&r_u
,rdata
,0)) {
803 DEBUG(0,("spoolss_io_r_getform: unable to marshall SPOOL_R_GETFORM.\n"));
810 /****************************************************************************
811 ****************************************************************************/
813 static BOOL
api_spoolss_enumforms(pipes_struct
*p
)
815 SPOOL_Q_ENUMFORMS q_u
;
816 SPOOL_R_ENUMFORMS r_u
;
817 prs_struct
*data
= &p
->in_data
.data
;
818 prs_struct
*rdata
= &p
->out_data
.rdata
;
823 if (!spoolss_io_q_enumforms("", &q_u
, data
, 0)) {
824 DEBUG(0,("spoolss_io_q_enumforms: unable to unmarshall SPOOL_Q_ENUMFORMS.\n"));
828 r_u
.status
= _spoolss_enumforms(p
, &q_u
, &r_u
);
830 if (!spoolss_io_r_enumforms("",&r_u
,rdata
,0)) {
831 DEBUG(0,("spoolss_io_r_enumforms: unable to marshall SPOOL_R_ENUMFORMS.\n"));
838 /****************************************************************************
839 ****************************************************************************/
841 static BOOL
api_spoolss_enumports(pipes_struct
*p
)
843 SPOOL_Q_ENUMPORTS q_u
;
844 SPOOL_R_ENUMPORTS r_u
;
845 prs_struct
*data
= &p
->in_data
.data
;
846 prs_struct
*rdata
= &p
->out_data
.rdata
;
851 if(!spoolss_io_q_enumports("", &q_u
, data
, 0)) {
852 DEBUG(0,("spoolss_io_q_enumports: unable to unmarshall SPOOL_Q_ENUMPORTS.\n"));
856 r_u
.status
= _spoolss_enumports(p
, &q_u
, &r_u
);
858 if (!spoolss_io_r_enumports("",&r_u
,rdata
,0)) {
859 DEBUG(0,("spoolss_io_r_enumports: unable to marshall SPOOL_R_ENUMPORTS.\n"));
866 /****************************************************************************
867 ****************************************************************************/
869 static BOOL
api_spoolss_addprinterex(pipes_struct
*p
)
871 SPOOL_Q_ADDPRINTEREX q_u
;
872 SPOOL_R_ADDPRINTEREX r_u
;
873 prs_struct
*data
= &p
->in_data
.data
;
874 prs_struct
*rdata
= &p
->out_data
.rdata
;
879 if(!spoolss_io_q_addprinterex("", &q_u
, data
, 0)) {
880 DEBUG(0,("spoolss_io_q_addprinterex: unable to unmarshall SPOOL_Q_ADDPRINTEREX.\n"));
884 r_u
.status
= _spoolss_addprinterex(p
, &q_u
, &r_u
);
886 if(!spoolss_io_r_addprinterex("", &r_u
, rdata
, 0)) {
887 DEBUG(0,("spoolss_io_r_addprinterex: unable to marshall SPOOL_R_ADDPRINTEREX.\n"));
894 /****************************************************************************
895 ****************************************************************************/
897 static BOOL
api_spoolss_addprinterdriver(pipes_struct
*p
)
899 SPOOL_Q_ADDPRINTERDRIVER q_u
;
900 SPOOL_R_ADDPRINTERDRIVER r_u
;
901 prs_struct
*data
= &p
->in_data
.data
;
902 prs_struct
*rdata
= &p
->out_data
.rdata
;
907 if(!spoolss_io_q_addprinterdriver("", &q_u
, data
, 0)) {
908 DEBUG(0,("spoolss_io_q_addprinterdriver: unable to unmarshall SPOOL_Q_ADDPRINTERDRIVER.\n"));
912 r_u
.status
= _spoolss_addprinterdriver(p
, &q_u
, &r_u
);
914 if(!spoolss_io_r_addprinterdriver("", &r_u
, rdata
, 0)) {
915 DEBUG(0,("spoolss_io_r_addprinterdriver: unable to marshall SPOOL_R_ADDPRINTERDRIVER.\n"));
922 /****************************************************************************
923 ****************************************************************************/
925 static BOOL
api_spoolss_getprinterdriverdirectory(pipes_struct
*p
)
927 SPOOL_Q_GETPRINTERDRIVERDIR q_u
;
928 SPOOL_R_GETPRINTERDRIVERDIR r_u
;
929 prs_struct
*data
= &p
->in_data
.data
;
930 prs_struct
*rdata
= &p
->out_data
.rdata
;
935 if(!spoolss_io_q_getprinterdriverdir("", &q_u
, data
, 0)) {
936 DEBUG(0,("spoolss_io_q_getprinterdriverdir: unable to unmarshall SPOOL_Q_GETPRINTERDRIVERDIR.\n"));
940 r_u
.status
= _spoolss_getprinterdriverdirectory(p
, &q_u
, &r_u
);
942 if(!spoolss_io_r_getprinterdriverdir("", &r_u
, rdata
, 0)) {
943 DEBUG(0,("spoolss_io_r_getprinterdriverdir: unable to marshall SPOOL_R_GETPRINTERDRIVERDIR.\n"));
950 /****************************************************************************
951 ****************************************************************************/
953 static BOOL
api_spoolss_enumprinterdata(pipes_struct
*p
)
955 SPOOL_Q_ENUMPRINTERDATA q_u
;
956 SPOOL_R_ENUMPRINTERDATA r_u
;
957 prs_struct
*data
= &p
->in_data
.data
;
958 prs_struct
*rdata
= &p
->out_data
.rdata
;
963 if(!spoolss_io_q_enumprinterdata("", &q_u
, data
, 0)) {
964 DEBUG(0,("spoolss_io_q_enumprinterdata: unable to unmarshall SPOOL_Q_ENUMPRINTERDATA.\n"));
968 r_u
.status
= _spoolss_enumprinterdata(p
, &q_u
, &r_u
);
970 if(!spoolss_io_r_enumprinterdata("", &r_u
, rdata
, 0)) {
971 DEBUG(0,("spoolss_io_r_enumprinterdata: unable to marshall SPOOL_R_ENUMPRINTERDATA.\n"));
978 /****************************************************************************
979 ****************************************************************************/
981 static BOOL
api_spoolss_setprinterdata(pipes_struct
*p
)
983 SPOOL_Q_SETPRINTERDATA q_u
;
984 SPOOL_R_SETPRINTERDATA r_u
;
985 prs_struct
*data
= &p
->in_data
.data
;
986 prs_struct
*rdata
= &p
->out_data
.rdata
;
991 if(!spoolss_io_q_setprinterdata("", &q_u
, data
, 0)) {
992 DEBUG(0,("spoolss_io_q_setprinterdata: unable to unmarshall SPOOL_Q_SETPRINTERDATA.\n"));
996 r_u
.status
= _spoolss_setprinterdata(p
, &q_u
, &r_u
);
998 if(!spoolss_io_r_setprinterdata("", &r_u
, rdata
, 0)) {
999 DEBUG(0,("spoolss_io_r_setprinterdata: unable to marshall SPOOL_R_SETPRINTERDATA.\n"));
1006 /****************************************************************************
1007 ****************************************************************************/
1008 static BOOL
api_spoolss_reset_printer(pipes_struct
*p
)
1010 SPOOL_Q_RESETPRINTER q_u
;
1011 SPOOL_R_RESETPRINTER r_u
;
1012 prs_struct
*data
= &p
->in_data
.data
;
1013 prs_struct
*rdata
= &p
->out_data
.rdata
;
1018 if(!spoolss_io_q_resetprinter("", &q_u
, data
, 0)) {
1019 DEBUG(0,("spoolss_io_q_setprinterdata: unable to unmarshall SPOOL_Q_SETPRINTERDATA.\n"));
1023 r_u
.status
= _spoolss_resetprinter(p
, &q_u
, &r_u
);
1025 if(!spoolss_io_r_resetprinter("", &r_u
, rdata
, 0)) {
1026 DEBUG(0,("spoolss_io_r_setprinterdata: unable to marshall SPOOL_R_RESETPRINTER.\n"));
1033 /****************************************************************************
1034 ****************************************************************************/
1035 static BOOL
api_spoolss_addform(pipes_struct
*p
)
1037 SPOOL_Q_ADDFORM q_u
;
1038 SPOOL_R_ADDFORM r_u
;
1039 prs_struct
*data
= &p
->in_data
.data
;
1040 prs_struct
*rdata
= &p
->out_data
.rdata
;
1045 if(!spoolss_io_q_addform("", &q_u
, data
, 0)) {
1046 DEBUG(0,("spoolss_io_q_addform: unable to unmarshall SPOOL_Q_ADDFORM.\n"));
1050 r_u
.status
= _spoolss_addform(p
, &q_u
, &r_u
);
1052 if(!spoolss_io_r_addform("", &r_u
, rdata
, 0)) {
1053 DEBUG(0,("spoolss_io_r_addform: unable to marshall SPOOL_R_ADDFORM.\n"));
1060 /****************************************************************************
1061 ****************************************************************************/
1063 static BOOL
api_spoolss_deleteform(pipes_struct
*p
)
1065 SPOOL_Q_DELETEFORM q_u
;
1066 SPOOL_R_DELETEFORM r_u
;
1067 prs_struct
*data
= &p
->in_data
.data
;
1068 prs_struct
*rdata
= &p
->out_data
.rdata
;
1073 if(!spoolss_io_q_deleteform("", &q_u
, data
, 0)) {
1074 DEBUG(0,("spoolss_io_q_deleteform: unable to unmarshall SPOOL_Q_DELETEFORM.\n"));
1078 r_u
.status
= _spoolss_deleteform(p
, &q_u
, &r_u
);
1080 if(!spoolss_io_r_deleteform("", &r_u
, rdata
, 0)) {
1081 DEBUG(0,("spoolss_io_r_deleteform: unable to marshall SPOOL_R_DELETEFORM.\n"));
1088 /****************************************************************************
1089 ****************************************************************************/
1091 static BOOL
api_spoolss_setform(pipes_struct
*p
)
1093 SPOOL_Q_SETFORM q_u
;
1094 SPOOL_R_SETFORM r_u
;
1095 prs_struct
*data
= &p
->in_data
.data
;
1096 prs_struct
*rdata
= &p
->out_data
.rdata
;
1101 if(!spoolss_io_q_setform("", &q_u
, data
, 0)) {
1102 DEBUG(0,("spoolss_io_q_setform: unable to unmarshall SPOOL_Q_SETFORM.\n"));
1106 r_u
.status
= _spoolss_setform(p
, &q_u
, &r_u
);
1108 if(!spoolss_io_r_setform("", &r_u
, rdata
, 0)) {
1109 DEBUG(0,("spoolss_io_r_setform: unable to marshall SPOOL_R_SETFORM.\n"));
1116 /****************************************************************************
1117 ****************************************************************************/
1119 static BOOL
api_spoolss_enumprintprocessors(pipes_struct
*p
)
1121 SPOOL_Q_ENUMPRINTPROCESSORS q_u
;
1122 SPOOL_R_ENUMPRINTPROCESSORS r_u
;
1123 prs_struct
*data
= &p
->in_data
.data
;
1124 prs_struct
*rdata
= &p
->out_data
.rdata
;
1129 if(!spoolss_io_q_enumprintprocessors("", &q_u
, data
, 0)) {
1130 DEBUG(0,("spoolss_io_q_enumprintprocessors: unable to unmarshall SPOOL_Q_ENUMPRINTPROCESSORS.\n"));
1134 r_u
.status
= _spoolss_enumprintprocessors(p
, &q_u
, &r_u
);
1136 if(!spoolss_io_r_enumprintprocessors("", &r_u
, rdata
, 0)) {
1137 DEBUG(0,("spoolss_io_r_enumprintprocessors: unable to marshall SPOOL_R_ENUMPRINTPROCESSORS.\n"));
1144 /****************************************************************************
1145 ****************************************************************************/
1147 static BOOL
api_spoolss_addprintprocessor(pipes_struct
*p
)
1149 SPOOL_Q_ADDPRINTPROCESSOR q_u
;
1150 SPOOL_R_ADDPRINTPROCESSOR r_u
;
1151 prs_struct
*data
= &p
->in_data
.data
;
1152 prs_struct
*rdata
= &p
->out_data
.rdata
;
1157 if(!spoolss_io_q_addprintprocessor("", &q_u
, data
, 0)) {
1158 DEBUG(0,("spoolss_io_q_addprintprocessor: unable to unmarshall SPOOL_Q_ADDPRINTPROCESSOR.\n"));
1162 /* for now, just indicate success and ignore the add. We'll
1163 automatically set the winprint processor for printer
1164 entries later. Used to debug the LexMark Optra S 1855 PCL
1166 r_u
.status
= WERR_OK
;
1168 if(!spoolss_io_r_addprintprocessor("", &r_u
, rdata
, 0)) {
1169 DEBUG(0,("spoolss_io_r_addprintprocessor: unable to marshall SPOOL_R_ADDPRINTPROCESSOR.\n"));
1176 /****************************************************************************
1177 ****************************************************************************/
1179 static BOOL
api_spoolss_enumprintprocdatatypes(pipes_struct
*p
)
1181 SPOOL_Q_ENUMPRINTPROCDATATYPES q_u
;
1182 SPOOL_R_ENUMPRINTPROCDATATYPES r_u
;
1183 prs_struct
*data
= &p
->in_data
.data
;
1184 prs_struct
*rdata
= &p
->out_data
.rdata
;
1189 if(!spoolss_io_q_enumprintprocdatatypes("", &q_u
, data
, 0)) {
1190 DEBUG(0,("spoolss_io_q_enumprintprocdatatypes: unable to unmarshall SPOOL_Q_ENUMPRINTPROCDATATYPES.\n"));
1194 r_u
.status
= _spoolss_enumprintprocdatatypes(p
, &q_u
, &r_u
);
1196 if(!spoolss_io_r_enumprintprocdatatypes("", &r_u
, rdata
, 0)) {
1197 DEBUG(0,("spoolss_io_r_enumprintprocdatatypes: unable to marshall SPOOL_R_ENUMPRINTPROCDATATYPES.\n"));
1204 /****************************************************************************
1205 ****************************************************************************/
1207 static BOOL
api_spoolss_enumprintmonitors(pipes_struct
*p
)
1209 SPOOL_Q_ENUMPRINTMONITORS q_u
;
1210 SPOOL_R_ENUMPRINTMONITORS r_u
;
1211 prs_struct
*data
= &p
->in_data
.data
;
1212 prs_struct
*rdata
= &p
->out_data
.rdata
;
1217 if (!spoolss_io_q_enumprintmonitors("", &q_u
, data
, 0)) {
1218 DEBUG(0,("spoolss_io_q_enumprintmonitors: unable to unmarshall SPOOL_Q_ENUMPRINTMONITORS.\n"));
1222 r_u
.status
= _spoolss_enumprintmonitors(p
, &q_u
, &r_u
);
1224 if (!spoolss_io_r_enumprintmonitors("", &r_u
, rdata
, 0)) {
1225 DEBUG(0,("spoolss_io_r_enumprintmonitors: unable to marshall SPOOL_R_ENUMPRINTMONITORS.\n"));
1232 /****************************************************************************
1233 ****************************************************************************/
1235 static BOOL
api_spoolss_getjob(pipes_struct
*p
)
1239 prs_struct
*data
= &p
->in_data
.data
;
1240 prs_struct
*rdata
= &p
->out_data
.rdata
;
1242 if(!spoolss_io_q_getjob("", &q_u
, data
, 0)) {
1243 DEBUG(0,("spoolss_io_q_getjob: unable to unmarshall SPOOL_Q_GETJOB.\n"));
1247 r_u
.status
= _spoolss_getjob(p
, &q_u
, &r_u
);
1249 if(!spoolss_io_r_getjob("",&r_u
,rdata
,0)) {
1250 DEBUG(0,("spoolss_io_r_getjob: unable to marshall SPOOL_R_GETJOB.\n"));
1257 /********************************************************************
1258 * api_spoolss_getprinterdataex
1260 * called from the spoolss dispatcher
1261 ********************************************************************/
1263 static BOOL
api_spoolss_getprinterdataex(pipes_struct
*p
)
1265 SPOOL_Q_GETPRINTERDATAEX q_u
;
1266 SPOOL_R_GETPRINTERDATAEX r_u
;
1267 prs_struct
*data
= &p
->in_data
.data
;
1268 prs_struct
*rdata
= &p
->out_data
.rdata
;
1273 /* read the stream and fill the struct */
1274 if (!spoolss_io_q_getprinterdataex("", &q_u
, data
, 0)) {
1275 DEBUG(0,("spoolss_io_q_getprinterdataex: unable to unmarshall SPOOL_Q_GETPRINTERDATAEX.\n"));
1279 r_u
.status
= _spoolss_getprinterdataex( p
, &q_u
, &r_u
);
1281 if (!spoolss_io_r_getprinterdataex("", &r_u
, rdata
, 0)) {
1282 DEBUG(0,("spoolss_io_r_getprinterdataex: unable to marshall SPOOL_R_GETPRINTERDATAEX.\n"));
1289 /****************************************************************************
1290 ****************************************************************************/
1292 static BOOL
api_spoolss_setprinterdataex(pipes_struct
*p
)
1294 SPOOL_Q_SETPRINTERDATAEX q_u
;
1295 SPOOL_R_SETPRINTERDATAEX r_u
;
1296 prs_struct
*data
= &p
->in_data
.data
;
1297 prs_struct
*rdata
= &p
->out_data
.rdata
;
1302 if(!spoolss_io_q_setprinterdataex("", &q_u
, data
, 0)) {
1303 DEBUG(0,("spoolss_io_q_setprinterdataex: unable to unmarshall SPOOL_Q_SETPRINTERDATAEX.\n"));
1307 r_u
.status
= _spoolss_setprinterdataex(p
, &q_u
, &r_u
);
1309 if(!spoolss_io_r_setprinterdataex("", &r_u
, rdata
, 0)) {
1310 DEBUG(0,("spoolss_io_r_setprinterdataex: unable to marshall SPOOL_R_SETPRINTERDATAEX.\n"));
1318 /****************************************************************************
1319 ****************************************************************************/
1321 static BOOL
api_spoolss_enumprinterkey(pipes_struct
*p
)
1323 SPOOL_Q_ENUMPRINTERKEY q_u
;
1324 SPOOL_R_ENUMPRINTERKEY r_u
;
1325 prs_struct
*data
= &p
->in_data
.data
;
1326 prs_struct
*rdata
= &p
->out_data
.rdata
;
1331 if(!spoolss_io_q_enumprinterkey("", &q_u
, data
, 0)) {
1332 DEBUG(0,("spoolss_io_q_setprinterkey: unable to unmarshall SPOOL_Q_ENUMPRINTERKEY.\n"));
1336 r_u
.status
= _spoolss_enumprinterkey(p
, &q_u
, &r_u
);
1338 if(!spoolss_io_r_enumprinterkey("", &r_u
, rdata
, 0)) {
1339 DEBUG(0,("spoolss_io_r_enumprinterkey: unable to marshall SPOOL_R_ENUMPRINTERKEY.\n"));
1346 /****************************************************************************
1347 ****************************************************************************/
1349 static BOOL
api_spoolss_enumprinterdataex(pipes_struct
*p
)
1351 SPOOL_Q_ENUMPRINTERDATAEX q_u
;
1352 SPOOL_R_ENUMPRINTERDATAEX r_u
;
1353 prs_struct
*data
= &p
->in_data
.data
;
1354 prs_struct
*rdata
= &p
->out_data
.rdata
;
1359 if(!spoolss_io_q_enumprinterdataex("", &q_u
, data
, 0)) {
1360 DEBUG(0,("spoolss_io_q_enumprinterdataex: unable to unmarshall SPOOL_Q_ENUMPRINTERDATAEX.\n"));
1364 r_u
.status
= _spoolss_enumprinterdataex(p
, &q_u
, &r_u
);
1366 if(!spoolss_io_r_enumprinterdataex("", &r_u
, rdata
, 0)) {
1367 DEBUG(0,("spoolss_io_r_enumprinterdataex: unable to marshall SPOOL_R_ENUMPRINTERDATAEX.\n"));
1374 /****************************************************************************
1375 ****************************************************************************/
1377 static BOOL
api_spoolss_getprintprocessordirectory(pipes_struct
*p
)
1379 SPOOL_Q_GETPRINTPROCESSORDIRECTORY q_u
;
1380 SPOOL_R_GETPRINTPROCESSORDIRECTORY r_u
;
1381 prs_struct
*data
= &p
->in_data
.data
;
1382 prs_struct
*rdata
= &p
->out_data
.rdata
;
1387 if(!spoolss_io_q_getprintprocessordirectory("", &q_u
, data
, 0)) {
1388 DEBUG(0,("spoolss_io_q_getprintprocessordirectory: unable to unmarshall SPOOL_Q_GETPRINTPROCESSORDIRECTORY.\n"));
1392 r_u
.status
= _spoolss_getprintprocessordirectory(p
, &q_u
, &r_u
);
1394 if(!spoolss_io_r_getprintprocessordirectory("", &r_u
, rdata
, 0)) {
1395 DEBUG(0,("spoolss_io_r_getprintprocessordirectory: unable to marshall SPOOL_R_GETPRINTPROCESSORDIRECTORY.\n"));
1402 /*******************************************************************
1403 \pipe\spoolss commands
1404 ********************************************************************/
1406 struct api_struct api_spoolss_cmds
[] =
1408 {"SPOOLSS_OPENPRINTER", SPOOLSS_OPENPRINTER
, api_spoolss_open_printer
},
1409 {"SPOOLSS_OPENPRINTEREX", SPOOLSS_OPENPRINTEREX
, api_spoolss_open_printer_ex
},
1410 {"SPOOLSS_GETPRINTERDATA", SPOOLSS_GETPRINTERDATA
, api_spoolss_getprinterdata
},
1411 {"SPOOLSS_CLOSEPRINTER", SPOOLSS_CLOSEPRINTER
, api_spoolss_closeprinter
},
1412 {"SPOOLSS_DELETEPRINTER", SPOOLSS_DELETEPRINTER
, api_spoolss_deleteprinter
},
1413 {"SPOOLSS_ABORTPRINTER", SPOOLSS_ABORTPRINTER
, api_spoolss_abortprinter
},
1414 {"SPOOLSS_RFFPCNEX", SPOOLSS_RFFPCNEX
, api_spoolss_rffpcnex
},
1415 {"SPOOLSS_RFNPCNEX", SPOOLSS_RFNPCNEX
, api_spoolss_rfnpcnex
},
1416 {"SPOOLSS_ENUMPRINTERS", SPOOLSS_ENUMPRINTERS
, api_spoolss_enumprinters
},
1417 {"SPOOLSS_GETPRINTER", SPOOLSS_GETPRINTER
, api_spoolss_getprinter
},
1418 {"SPOOLSS_GETPRINTERDRIVER2", SPOOLSS_GETPRINTERDRIVER2
, api_spoolss_getprinterdriver2
},
1419 {"SPOOLSS_STARTPAGEPRINTER", SPOOLSS_STARTPAGEPRINTER
, api_spoolss_startpageprinter
},
1420 {"SPOOLSS_ENDPAGEPRINTER", SPOOLSS_ENDPAGEPRINTER
, api_spoolss_endpageprinter
},
1421 {"SPOOLSS_STARTDOCPRINTER", SPOOLSS_STARTDOCPRINTER
, api_spoolss_startdocprinter
},
1422 {"SPOOLSS_ENDDOCPRINTER", SPOOLSS_ENDDOCPRINTER
, api_spoolss_enddocprinter
},
1423 {"SPOOLSS_WRITEPRINTER", SPOOLSS_WRITEPRINTER
, api_spoolss_writeprinter
},
1424 {"SPOOLSS_SETPRINTER", SPOOLSS_SETPRINTER
, api_spoolss_setprinter
},
1425 {"SPOOLSS_FCPN", SPOOLSS_FCPN
, api_spoolss_fcpn
},
1426 {"SPOOLSS_ADDJOB", SPOOLSS_ADDJOB
, api_spoolss_addjob
},
1427 {"SPOOLSS_ENUMJOBS", SPOOLSS_ENUMJOBS
, api_spoolss_enumjobs
},
1428 {"SPOOLSS_SCHEDULEJOB", SPOOLSS_SCHEDULEJOB
, api_spoolss_schedulejob
},
1429 {"SPOOLSS_SETJOB", SPOOLSS_SETJOB
, api_spoolss_setjob
},
1430 {"SPOOLSS_ENUMFORMS", SPOOLSS_ENUMFORMS
, api_spoolss_enumforms
},
1431 {"SPOOLSS_ENUMPORTS", SPOOLSS_ENUMPORTS
, api_spoolss_enumports
},
1432 {"SPOOLSS_ENUMPRINTERDRIVERS", SPOOLSS_ENUMPRINTERDRIVERS
, api_spoolss_enumprinterdrivers
},
1433 {"SPOOLSS_ADDPRINTEREX", SPOOLSS_ADDPRINTEREX
, api_spoolss_addprinterex
},
1434 {"SPOOLSS_ADDPRINTERDRIVER", SPOOLSS_ADDPRINTERDRIVER
, api_spoolss_addprinterdriver
},
1435 {"SPOOLSS_DELETEPRINTERDRIVER", SPOOLSS_DELETEPRINTERDRIVER
, api_spoolss_deleteprinterdriver
},
1436 {"SPOOLSS_GETPRINTERDRIVERDIRECTORY", SPOOLSS_GETPRINTERDRIVERDIRECTORY
, api_spoolss_getprinterdriverdirectory
},
1437 {"SPOOLSS_ENUMPRINTERDATA", SPOOLSS_ENUMPRINTERDATA
, api_spoolss_enumprinterdata
},
1438 {"SPOOLSS_SETPRINTERDATA", SPOOLSS_SETPRINTERDATA
, api_spoolss_setprinterdata
},
1439 {"SPOOLSS_RESETPRINTER", SPOOLSS_RESETPRINTER
, api_spoolss_reset_printer
},
1440 {"SPOOLSS_DELETEPRINTERDATA", SPOOLSS_DELETEPRINTERDATA
, api_spoolss_deleteprinterdata
},
1441 {"SPOOLSS_ADDFORM", SPOOLSS_ADDFORM
, api_spoolss_addform
},
1442 {"SPOOLSS_DELETEFORM", SPOOLSS_DELETEFORM
, api_spoolss_deleteform
},
1443 {"SPOOLSS_GETFORM", SPOOLSS_GETFORM
, api_spoolss_getform
},
1444 {"SPOOLSS_SETFORM", SPOOLSS_SETFORM
, api_spoolss_setform
},
1445 {"SPOOLSS_ADDPRINTPROCESSOR", SPOOLSS_ADDPRINTPROCESSOR
, api_spoolss_addprintprocessor
},
1446 {"SPOOLSS_ENUMPRINTPROCESSORS", SPOOLSS_ENUMPRINTPROCESSORS
, api_spoolss_enumprintprocessors
},
1447 {"SPOOLSS_ENUMMONITORS", SPOOLSS_ENUMMONITORS
, api_spoolss_enumprintmonitors
},
1448 {"SPOOLSS_GETJOB", SPOOLSS_GETJOB
, api_spoolss_getjob
},
1449 {"SPOOLSS_ENUMPRINTPROCDATATYPES", SPOOLSS_ENUMPRINTPROCDATATYPES
, api_spoolss_enumprintprocdatatypes
},
1450 {"SPOOLSS_GETPRINTERDATAEX", SPOOLSS_GETPRINTERDATAEX
, api_spoolss_getprinterdataex
},
1451 {"SPOOLSS_SETPRINTERDATAEX", SPOOLSS_SETPRINTERDATAEX
, api_spoolss_setprinterdataex
},
1452 {"SPOOLSS_ENUMPRINTERKEY", SPOOLSS_ENUMPRINTERKEY
, api_spoolss_enumprinterkey
},
1453 {"SPOOLSS_ENUMPRINTERDATAEX", SPOOLSS_ENUMPRINTERDATAEX
, api_spoolss_enumprinterdataex
},
1454 {"SPOOLSS_GETPRINTPROCESSORDIRECTORY",SPOOLSS_GETPRINTPROCESSORDIRECTORY
,api_spoolss_getprintprocessordirectory
},
1458 /*******************************************************************
1459 receives a spoolss pipe and responds.
1460 ********************************************************************/
1461 BOOL
api_spoolss_rpc(pipes_struct
*p
)
1463 return api_rpcTNP(p
, "api_spoolss_rpc", api_spoolss_cmds
);