Merge branch 'master' of ssh://git.samba.org/data/git/samba
[kai/samba-autobuild/.git] / librpc / gen_ndr / cli_spoolss.h
1 #include "../librpc/gen_ndr/ndr_spoolss.h"
2 #ifndef __CLI_SPOOLSS__
3 #define __CLI_SPOOLSS__
4 NTSTATUS rpccli_spoolss_EnumPrinters(struct rpc_pipe_client *cli,
5                                      TALLOC_CTX *mem_ctx,
6                                      uint32_t flags /* [in]  */,
7                                      const char *server /* [in] [unique,charset(UTF16)] */,
8                                      uint32_t level /* [in]  */,
9                                      DATA_BLOB *buffer /* [in] [unique] */,
10                                      uint32_t offered /* [in]  */,
11                                      union spoolss_PrinterInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
12                                      uint32_t *needed /* [out] [ref] */,
13                                      uint32_t count /* [out]  */,
14                                      WERROR *werror);
15 NTSTATUS rpccli_spoolss_OpenPrinter(struct rpc_pipe_client *cli,
16                                     TALLOC_CTX *mem_ctx,
17                                     const char *printername /* [in] [unique,charset(UTF16)] */,
18                                     const char *datatype /* [in] [unique,charset(UTF16)] */,
19                                     struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
20                                     uint32_t access_mask /* [in]  */,
21                                     struct policy_handle *handle /* [out] [ref] */,
22                                     WERROR *werror);
23 NTSTATUS rpccli_spoolss_SetJob(struct rpc_pipe_client *cli,
24                                TALLOC_CTX *mem_ctx,
25                                struct policy_handle *handle /* [in] [ref] */,
26                                uint32_t job_id /* [in]  */,
27                                struct spoolss_JobInfoContainer *ctr /* [in] [unique] */,
28                                enum spoolss_JobControl command /* [in]  */,
29                                WERROR *werror);
30 NTSTATUS rpccli_spoolss_GetJob(struct rpc_pipe_client *cli,
31                                TALLOC_CTX *mem_ctx,
32                                struct policy_handle *handle /* [in] [ref] */,
33                                uint32_t job_id /* [in]  */,
34                                uint32_t level /* [in]  */,
35                                DATA_BLOB *buffer /* [in] [unique] */,
36                                uint32_t offered /* [in]  */,
37                                union spoolss_JobInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
38                                uint32_t *needed /* [out] [ref] */,
39                                WERROR *werror);
40 NTSTATUS rpccli_spoolss_EnumJobs(struct rpc_pipe_client *cli,
41                                  TALLOC_CTX *mem_ctx,
42                                  struct policy_handle *handle /* [in] [ref] */,
43                                  uint32_t firstjob /* [in]  */,
44                                  uint32_t numjobs /* [in]  */,
45                                  uint32_t level /* [in]  */,
46                                  DATA_BLOB *buffer /* [in] [unique] */,
47                                  uint32_t offered /* [in]  */,
48                                  union spoolss_JobInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
49                                  uint32_t *needed /* [out] [ref] */,
50                                  uint32_t count /* [out]  */,
51                                  WERROR *werror);
52 NTSTATUS rpccli_spoolss_AddPrinter(struct rpc_pipe_client *cli,
53                                    TALLOC_CTX *mem_ctx,
54                                    WERROR *werror);
55 NTSTATUS rpccli_spoolss_DeletePrinter(struct rpc_pipe_client *cli,
56                                       TALLOC_CTX *mem_ctx,
57                                       struct policy_handle *handle /* [in] [ref] */,
58                                       WERROR *werror);
59 NTSTATUS rpccli_spoolss_SetPrinter(struct rpc_pipe_client *cli,
60                                    TALLOC_CTX *mem_ctx,
61                                    struct policy_handle *handle /* [in] [ref] */,
62                                    uint32_t level /* [in]  */,
63                                    union spoolss_SetPrinterInfo info /* [in] [switch_is(level)] */,
64                                    struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
65                                    struct sec_desc_buf secdesc_ctr /* [in]  */,
66                                    enum spoolss_PrinterControl command /* [in]  */,
67                                    WERROR *werror);
68 NTSTATUS rpccli_spoolss_GetPrinter(struct rpc_pipe_client *cli,
69                                    TALLOC_CTX *mem_ctx,
70                                    struct policy_handle *handle /* [in] [ref] */,
71                                    uint32_t level /* [in]  */,
72                                    DATA_BLOB *buffer /* [in] [unique] */,
73                                    uint32_t offered /* [in]  */,
74                                    union spoolss_PrinterInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
75                                    uint32_t *needed /* [out] [ref] */,
76                                    WERROR *werror);
77 NTSTATUS rpccli_spoolss_AddPrinterDriver(struct rpc_pipe_client *cli,
78                                          TALLOC_CTX *mem_ctx,
79                                          const char *servername /* [in] [ref,charset(UTF16)] */,
80                                          uint32_t level /* [in]  */,
81                                          union spoolss_AddDriverInfo info /* [in] [switch_is(level)] */,
82                                          WERROR *werror);
83 NTSTATUS rpccli_spoolss_EnumPrinterDrivers(struct rpc_pipe_client *cli,
84                                            TALLOC_CTX *mem_ctx,
85                                            const char *server /* [in] [unique,charset(UTF16)] */,
86                                            const char *environment /* [in] [unique,charset(UTF16)] */,
87                                            uint32_t level /* [in]  */,
88                                            DATA_BLOB *buffer /* [in] [unique] */,
89                                            uint32_t offered /* [in]  */,
90                                            union spoolss_DriverInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
91                                            uint32_t *needed /* [out] [ref] */,
92                                            uint32_t count /* [out]  */,
93                                            WERROR *werror);
94 NTSTATUS rpccli_spoolss_GetPrinterDriver(struct rpc_pipe_client *cli,
95                                          TALLOC_CTX *mem_ctx,
96                                          WERROR *werror);
97 NTSTATUS rpccli_spoolss_GetPrinterDriverDirectory(struct rpc_pipe_client *cli,
98                                                   TALLOC_CTX *mem_ctx,
99                                                   const char *server /* [in] [unique,charset(UTF16)] */,
100                                                   const char *environment /* [in] [unique,charset(UTF16)] */,
101                                                   uint32_t level /* [in]  */,
102                                                   DATA_BLOB *buffer /* [in] [unique] */,
103                                                   uint32_t offered /* [in]  */,
104                                                   union spoolss_DriverDirectoryInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
105                                                   uint32_t *needed /* [out] [ref] */,
106                                                   WERROR *werror);
107 NTSTATUS rpccli_spoolss_DeletePrinterDriver(struct rpc_pipe_client *cli,
108                                             TALLOC_CTX *mem_ctx,
109                                             const char *server /* [in] [unique,charset(UTF16)] */,
110                                             const char *architecture /* [in] [charset(UTF16)] */,
111                                             const char *driver /* [in] [charset(UTF16)] */,
112                                             WERROR *werror);
113 NTSTATUS rpccli_spoolss_AddPrintProcessor(struct rpc_pipe_client *cli,
114                                           TALLOC_CTX *mem_ctx,
115                                           const char *server /* [in] [unique,charset(UTF16)] */,
116                                           const char *architecture /* [in] [charset(UTF16)] */,
117                                           const char *path_name /* [in] [charset(UTF16)] */,
118                                           const char *print_processor_name /* [in] [charset(UTF16)] */,
119                                           WERROR *werror);
120 NTSTATUS rpccli_spoolss_EnumPrintProcessors(struct rpc_pipe_client *cli,
121                                             TALLOC_CTX *mem_ctx,
122                                             const char *servername /* [in] [unique,charset(UTF16)] */,
123                                             const char *environment /* [in] [unique,charset(UTF16)] */,
124                                             uint32_t level /* [in]  */,
125                                             DATA_BLOB *buffer /* [in] [unique] */,
126                                             uint32_t offered /* [in]  */,
127                                             union spoolss_PrintProcessorInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
128                                             uint32_t *needed /* [out] [ref] */,
129                                             uint32_t count /* [out]  */,
130                                             WERROR *werror);
131 NTSTATUS rpccli_spoolss_GetPrintProcessorDirectory(struct rpc_pipe_client *cli,
132                                                    TALLOC_CTX *mem_ctx,
133                                                    WERROR *werror);
134 NTSTATUS rpccli_spoolss_StartDocPrinter(struct rpc_pipe_client *cli,
135                                         TALLOC_CTX *mem_ctx,
136                                         struct policy_handle *handle /* [in] [ref] */,
137                                         uint32_t level /* [in]  */,
138                                         union spoolss_DocumentInfo info /* [in] [switch_is(level)] */,
139                                         uint32_t *job_id /* [out] [ref] */,
140                                         WERROR *werror);
141 NTSTATUS rpccli_spoolss_StartPagePrinter(struct rpc_pipe_client *cli,
142                                          TALLOC_CTX *mem_ctx,
143                                          struct policy_handle *handle /* [in] [ref] */,
144                                          WERROR *werror);
145 NTSTATUS rpccli_spoolss_WritePrinter(struct rpc_pipe_client *cli,
146                                      TALLOC_CTX *mem_ctx,
147                                      struct policy_handle *handle /* [in] [ref] */,
148                                      DATA_BLOB data /* [in]  */,
149                                      uint32_t _data_size /* [in] [value(r->in.data.length)] */,
150                                      uint32_t *num_written /* [out] [ref] */,
151                                      WERROR *werror);
152 NTSTATUS rpccli_spoolss_EndPagePrinter(struct rpc_pipe_client *cli,
153                                        TALLOC_CTX *mem_ctx,
154                                        struct policy_handle *handle /* [in] [ref] */,
155                                        WERROR *werror);
156 NTSTATUS rpccli_spoolss_AbortPrinter(struct rpc_pipe_client *cli,
157                                      TALLOC_CTX *mem_ctx,
158                                      struct policy_handle *handle /* [in] [ref] */,
159                                      WERROR *werror);
160 NTSTATUS rpccli_spoolss_ReadPrinter(struct rpc_pipe_client *cli,
161                                     TALLOC_CTX *mem_ctx,
162                                     struct policy_handle *handle /* [in] [ref] */,
163                                     uint8_t *data /* [out] [ref,size_is(data_size)] */,
164                                     uint32_t data_size /* [in]  */,
165                                     uint32_t *_data_size /* [out] [ref] */,
166                                     WERROR *werror);
167 NTSTATUS rpccli_spoolss_EndDocPrinter(struct rpc_pipe_client *cli,
168                                       TALLOC_CTX *mem_ctx,
169                                       struct policy_handle *handle /* [in] [ref] */,
170                                       WERROR *werror);
171 NTSTATUS rpccli_spoolss_AddJob(struct rpc_pipe_client *cli,
172                                TALLOC_CTX *mem_ctx,
173                                struct policy_handle *handle /* [in] [ref] */,
174                                uint32_t level /* [in]  */,
175                                uint8_t *buffer /* [in,out] [unique,size_is(offered)] */,
176                                uint32_t offered /* [in]  */,
177                                uint32_t *needed /* [out] [ref] */,
178                                WERROR *werror);
179 NTSTATUS rpccli_spoolss_ScheduleJob(struct rpc_pipe_client *cli,
180                                     TALLOC_CTX *mem_ctx,
181                                     struct policy_handle *handle /* [in] [ref] */,
182                                     uint32_t jobid /* [in]  */,
183                                     WERROR *werror);
184 NTSTATUS rpccli_spoolss_GetPrinterData(struct rpc_pipe_client *cli,
185                                        TALLOC_CTX *mem_ctx,
186                                        struct policy_handle *handle /* [in] [ref] */,
187                                        const char *value_name /* [in] [charset(UTF16)] */,
188                                        uint32_t offered /* [in]  */,
189                                        enum spoolss_PrinterDataType *type /* [out] [ref] */,
190                                        union spoolss_PrinterData data /* [out] [subcontext_size(offered),subcontext(4),switch_is(*type)] */,
191                                        uint32_t *needed /* [out] [ref] */,
192                                        WERROR *werror);
193 NTSTATUS rpccli_spoolss_SetPrinterData(struct rpc_pipe_client *cli,
194                                        TALLOC_CTX *mem_ctx,
195                                        struct policy_handle *handle /* [in] [ref] */,
196                                        const char *value_name /* [in] [charset(UTF16)] */,
197                                        enum spoolss_PrinterDataType type /* [in]  */,
198                                        union spoolss_PrinterData data /* [in] [subcontext(4),switch_is(type)] */,
199                                        uint32_t _offered /* [in] [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */,
200                                        WERROR *werror);
201 NTSTATUS rpccli_spoolss_WaitForPrinterChange(struct rpc_pipe_client *cli,
202                                              TALLOC_CTX *mem_ctx,
203                                              WERROR *werror);
204 NTSTATUS rpccli_spoolss_ClosePrinter(struct rpc_pipe_client *cli,
205                                      TALLOC_CTX *mem_ctx,
206                                      struct policy_handle *handle /* [in,out] [ref] */,
207                                      WERROR *werror);
208 NTSTATUS rpccli_spoolss_AddForm(struct rpc_pipe_client *cli,
209                                 TALLOC_CTX *mem_ctx,
210                                 struct policy_handle *handle /* [in] [ref] */,
211                                 uint32_t level /* [in]  */,
212                                 union spoolss_AddFormInfo info /* [in] [switch_is(level)] */,
213                                 WERROR *werror);
214 NTSTATUS rpccli_spoolss_DeleteForm(struct rpc_pipe_client *cli,
215                                    TALLOC_CTX *mem_ctx,
216                                    struct policy_handle *handle /* [in] [ref] */,
217                                    const char *form_name /* [in] [charset(UTF16)] */,
218                                    WERROR *werror);
219 NTSTATUS rpccli_spoolss_GetForm(struct rpc_pipe_client *cli,
220                                 TALLOC_CTX *mem_ctx,
221                                 struct policy_handle *handle /* [in] [ref] */,
222                                 const char *form_name /* [in] [charset(UTF16)] */,
223                                 uint32_t level /* [in]  */,
224                                 DATA_BLOB *buffer /* [in] [unique] */,
225                                 uint32_t offered /* [in]  */,
226                                 union spoolss_FormInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
227                                 uint32_t *needed /* [out] [ref] */,
228                                 WERROR *werror);
229 NTSTATUS rpccli_spoolss_SetForm(struct rpc_pipe_client *cli,
230                                 TALLOC_CTX *mem_ctx,
231                                 struct policy_handle *handle /* [in] [ref] */,
232                                 const char *form_name /* [in] [charset(UTF16)] */,
233                                 uint32_t level /* [in]  */,
234                                 union spoolss_AddFormInfo info /* [in] [switch_is(level)] */,
235                                 WERROR *werror);
236 NTSTATUS rpccli_spoolss_EnumForms(struct rpc_pipe_client *cli,
237                                   TALLOC_CTX *mem_ctx,
238                                   struct policy_handle *handle /* [in] [ref] */,
239                                   uint32_t level /* [in]  */,
240                                   DATA_BLOB *buffer /* [in] [unique] */,
241                                   uint32_t offered /* [in]  */,
242                                   union spoolss_FormInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
243                                   uint32_t *needed /* [out] [ref] */,
244                                   uint32_t count /* [out]  */,
245                                   WERROR *werror);
246 NTSTATUS rpccli_spoolss_EnumPorts(struct rpc_pipe_client *cli,
247                                   TALLOC_CTX *mem_ctx,
248                                   const char *servername /* [in] [unique,charset(UTF16)] */,
249                                   uint32_t level /* [in]  */,
250                                   DATA_BLOB *buffer /* [in] [unique] */,
251                                   uint32_t offered /* [in]  */,
252                                   union spoolss_PortInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
253                                   uint32_t *needed /* [out] [ref] */,
254                                   uint32_t count /* [out]  */,
255                                   WERROR *werror);
256 NTSTATUS rpccli_spoolss_EnumMonitors(struct rpc_pipe_client *cli,
257                                      TALLOC_CTX *mem_ctx,
258                                      const char *servername /* [in] [unique,charset(UTF16)] */,
259                                      uint32_t level /* [in]  */,
260                                      DATA_BLOB *buffer /* [in] [unique] */,
261                                      uint32_t offered /* [in]  */,
262                                      union spoolss_MonitorInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
263                                      uint32_t *needed /* [out] [ref] */,
264                                      uint32_t count /* [out]  */,
265                                      WERROR *werror);
266 NTSTATUS rpccli_spoolss_AddPort(struct rpc_pipe_client *cli,
267                                 TALLOC_CTX *mem_ctx,
268                                 const char *server_name /* [in] [unique,charset(UTF16)] */,
269                                 uint32_t unknown /* [in]  */,
270                                 const char *monitor_name /* [in] [charset(UTF16)] */,
271                                 WERROR *werror);
272 NTSTATUS rpccli_spoolss_ConfigurePort(struct rpc_pipe_client *cli,
273                                       TALLOC_CTX *mem_ctx,
274                                       WERROR *werror);
275 NTSTATUS rpccli_spoolss_DeletePort(struct rpc_pipe_client *cli,
276                                    TALLOC_CTX *mem_ctx,
277                                    WERROR *werror);
278 NTSTATUS rpccli_spoolss_CreatePrinterIC(struct rpc_pipe_client *cli,
279                                         TALLOC_CTX *mem_ctx,
280                                         WERROR *werror);
281 NTSTATUS rpccli_spoolss_PlayGDIScriptOnPrinterIC(struct rpc_pipe_client *cli,
282                                                  TALLOC_CTX *mem_ctx,
283                                                  WERROR *werror);
284 NTSTATUS rpccli_spoolss_DeletePrinterIC(struct rpc_pipe_client *cli,
285                                         TALLOC_CTX *mem_ctx,
286                                         WERROR *werror);
287 NTSTATUS rpccli_spoolss_AddPrinterConnection(struct rpc_pipe_client *cli,
288                                              TALLOC_CTX *mem_ctx,
289                                              WERROR *werror);
290 NTSTATUS rpccli_spoolss_DeletePrinterConnection(struct rpc_pipe_client *cli,
291                                                 TALLOC_CTX *mem_ctx,
292                                                 WERROR *werror);
293 NTSTATUS rpccli_spoolss_PrinterMessageBox(struct rpc_pipe_client *cli,
294                                           TALLOC_CTX *mem_ctx,
295                                           WERROR *werror);
296 NTSTATUS rpccli_spoolss_AddMonitor(struct rpc_pipe_client *cli,
297                                    TALLOC_CTX *mem_ctx,
298                                    WERROR *werror);
299 NTSTATUS rpccli_spoolss_DeleteMonitor(struct rpc_pipe_client *cli,
300                                       TALLOC_CTX *mem_ctx,
301                                       WERROR *werror);
302 NTSTATUS rpccli_spoolss_DeletePrintProcessor(struct rpc_pipe_client *cli,
303                                              TALLOC_CTX *mem_ctx,
304                                              WERROR *werror);
305 NTSTATUS rpccli_spoolss_AddPrintProvidor(struct rpc_pipe_client *cli,
306                                          TALLOC_CTX *mem_ctx,
307                                          WERROR *werror);
308 NTSTATUS rpccli_spoolss_DeletePrintProvidor(struct rpc_pipe_client *cli,
309                                             TALLOC_CTX *mem_ctx,
310                                             WERROR *werror);
311 NTSTATUS rpccli_spoolss_EnumPrintProcDataTypes(struct rpc_pipe_client *cli,
312                                                TALLOC_CTX *mem_ctx,
313                                                WERROR *werror);
314 NTSTATUS rpccli_spoolss_ResetPrinter(struct rpc_pipe_client *cli,
315                                      TALLOC_CTX *mem_ctx,
316                                      WERROR *werror);
317 NTSTATUS rpccli_spoolss_GetPrinterDriver2(struct rpc_pipe_client *cli,
318                                           TALLOC_CTX *mem_ctx,
319                                           struct policy_handle *handle /* [in] [ref] */,
320                                           const char *architecture /* [in] [unique,charset(UTF16)] */,
321                                           uint32_t level /* [in]  */,
322                                           DATA_BLOB *buffer /* [in] [unique] */,
323                                           uint32_t offered /* [in]  */,
324                                           uint32_t client_major_version /* [in]  */,
325                                           uint32_t client_minor_version /* [in]  */,
326                                           DATA_BLOB *info /* [out] [unique] */,
327                                           uint32_t *needed /* [out] [ref] */,
328                                           uint32_t *server_major_version /* [out] [ref] */,
329                                           uint32_t *server_minor_version /* [out] [ref] */,
330                                           WERROR *werror);
331 NTSTATUS rpccli_spoolss_FindFirstPrinterChangeNotification(struct rpc_pipe_client *cli,
332                                                            TALLOC_CTX *mem_ctx,
333                                                            WERROR *werror);
334 NTSTATUS rpccli_spoolss_FindNextPrinterChangeNotification(struct rpc_pipe_client *cli,
335                                                           TALLOC_CTX *mem_ctx,
336                                                           WERROR *werror);
337 NTSTATUS rpccli_spoolss_FindClosePrinterNotify(struct rpc_pipe_client *cli,
338                                                TALLOC_CTX *mem_ctx,
339                                                struct policy_handle *handle /* [in] [ref] */,
340                                                WERROR *werror);
341 NTSTATUS rpccli_spoolss_RouterFindFirstPrinterChangeNotificationOld(struct rpc_pipe_client *cli,
342                                                                     TALLOC_CTX *mem_ctx,
343                                                                     WERROR *werror);
344 NTSTATUS rpccli_spoolss_ReplyOpenPrinter(struct rpc_pipe_client *cli,
345                                          TALLOC_CTX *mem_ctx,
346                                          const char *server_name /* [in] [charset(UTF16)] */,
347                                          uint32_t printer_local /* [in]  */,
348                                          enum winreg_Type type /* [in]  */,
349                                          uint32_t bufsize /* [in] [range(0,512)] */,
350                                          uint8_t *buffer /* [in] [unique,size_is(bufsize)] */,
351                                          struct policy_handle *handle /* [out] [ref] */,
352                                          WERROR *werror);
353 NTSTATUS rpccli_spoolss_RouterReplyPrinter(struct rpc_pipe_client *cli,
354                                            TALLOC_CTX *mem_ctx,
355                                            struct policy_handle *handle /* [in] [ref] */,
356                                            uint32_t flags /* [in]  */,
357                                            uint32_t bufsize /* [in] [range(0,512)] */,
358                                            uint8_t *buffer /* [in] [unique,size_is(bufsize)] */,
359                                            WERROR *werror);
360 NTSTATUS rpccli_spoolss_ReplyClosePrinter(struct rpc_pipe_client *cli,
361                                           TALLOC_CTX *mem_ctx,
362                                           struct policy_handle *handle /* [in,out] [ref] */,
363                                           WERROR *werror);
364 NTSTATUS rpccli_spoolss_AddPortEx(struct rpc_pipe_client *cli,
365                                   TALLOC_CTX *mem_ctx,
366                                   WERROR *werror);
367 NTSTATUS rpccli_spoolss_RouterFindFirstPrinterChangeNotification(struct rpc_pipe_client *cli,
368                                                                  TALLOC_CTX *mem_ctx,
369                                                                  WERROR *werror);
370 NTSTATUS rpccli_spoolss_SpoolerInit(struct rpc_pipe_client *cli,
371                                     TALLOC_CTX *mem_ctx,
372                                     WERROR *werror);
373 NTSTATUS rpccli_spoolss_ResetPrinterEx(struct rpc_pipe_client *cli,
374                                        TALLOC_CTX *mem_ctx,
375                                        WERROR *werror);
376 NTSTATUS rpccli_spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct rpc_pipe_client *cli,
377                                                              TALLOC_CTX *mem_ctx,
378                                                              struct policy_handle *handle /* [in] [ref] */,
379                                                              uint32_t flags /* [in]  */,
380                                                              uint32_t options /* [in]  */,
381                                                              const char *str /* [in] [unique,charset(UTF16)] */,
382                                                              uint32_t printer_local /* [in]  */,
383                                                              struct spoolss_NotifyOptionsContainer *t1 /* [in] [unique] */,
384                                                              WERROR *werror);
385 NTSTATUS rpccli_spoolss_RouterReplyPrinterEx(struct rpc_pipe_client *cli,
386                                              TALLOC_CTX *mem_ctx,
387                                              struct policy_handle *handle /* [in] [ref] */,
388                                              uint32_t color /* [in]  */,
389                                              uint32_t flags /* [in]  */,
390                                              uint32_t *reply_result /* [out] [ref] */,
391                                              uint32_t reply_type /* [in]  */,
392                                              union spoolss_ReplyPrinterInfo info /* [in] [switch_is(reply_type)] */,
393                                              WERROR *werror);
394 NTSTATUS rpccli_spoolss_RouterRefreshPrinterChangeNotify(struct rpc_pipe_client *cli,
395                                                          TALLOC_CTX *mem_ctx,
396                                                          struct policy_handle *handle /* [in] [ref] */,
397                                                          uint32_t change_low /* [in]  */,
398                                                          struct spoolss_NotifyOptionsContainer *container /* [in] [unique] */,
399                                                          struct spoolss_NotifyInfo **info /* [out] [ref] */,
400                                                          WERROR *werror);
401 NTSTATUS rpccli_spoolss_44(struct rpc_pipe_client *cli,
402                            TALLOC_CTX *mem_ctx,
403                            WERROR *werror);
404 NTSTATUS rpccli_spoolss_OpenPrinterEx(struct rpc_pipe_client *cli,
405                                       TALLOC_CTX *mem_ctx,
406                                       const char *printername /* [in] [unique,charset(UTF16)] */,
407                                       const char *datatype /* [in] [unique,charset(UTF16)] */,
408                                       struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
409                                       uint32_t access_mask /* [in]  */,
410                                       uint32_t level /* [in]  */,
411                                       union spoolss_UserLevel userlevel /* [in] [switch_is(level)] */,
412                                       struct policy_handle *handle /* [out] [ref] */,
413                                       WERROR *werror);
414 NTSTATUS rpccli_spoolss_AddPrinterEx(struct rpc_pipe_client *cli,
415                                      TALLOC_CTX *mem_ctx,
416                                      const char *server /* [in] [unique,charset(UTF16)] */,
417                                      uint32_t level /* [in]  */,
418                                      union spoolss_PrinterInfo *info /* [in] [unique,switch_is(level)] */,
419                                      struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
420                                      struct security_descriptor *secdesc /* [in] [unique] */,
421                                      uint32_t ulevel /* [in]  */,
422                                      union spoolss_UserLevel userlevel /* [in] [switch_is(ulevel)] */,
423                                      WERROR *werror);
424 NTSTATUS rpccli_spoolss_47(struct rpc_pipe_client *cli,
425                            TALLOC_CTX *mem_ctx,
426                            WERROR *werror);
427 NTSTATUS rpccli_spoolss_EnumPrinterData(struct rpc_pipe_client *cli,
428                                         TALLOC_CTX *mem_ctx,
429                                         struct policy_handle *handle /* [in] [ref] */,
430                                         uint32_t enum_index /* [in]  */,
431                                         const char *value_name /* [out] [charset(UTF16),size_is(value_offered/2)] */,
432                                         uint32_t value_offered /* [in]  */,
433                                         uint32_t *value_needed /* [out] [ref] */,
434                                         uint32_t *printerdata_type /* [out] [ref] */,
435                                         DATA_BLOB *buffer /* [out] [ref] */,
436                                         uint32_t data_offered /* [in]  */,
437                                         uint32_t *data_needed /* [out] [ref] */,
438                                         WERROR *werror);
439 NTSTATUS rpccli_spoolss_DeletePrinterData(struct rpc_pipe_client *cli,
440                                           TALLOC_CTX *mem_ctx,
441                                           struct policy_handle *handle /* [in] [ref] */,
442                                           const char *value_name /* [in] [charset(UTF16)] */,
443                                           WERROR *werror);
444 NTSTATUS rpccli_spoolss_4a(struct rpc_pipe_client *cli,
445                            TALLOC_CTX *mem_ctx,
446                            WERROR *werror);
447 NTSTATUS rpccli_spoolss_4b(struct rpc_pipe_client *cli,
448                            TALLOC_CTX *mem_ctx,
449                            WERROR *werror);
450 NTSTATUS rpccli_spoolss_4c(struct rpc_pipe_client *cli,
451                            TALLOC_CTX *mem_ctx,
452                            WERROR *werror);
453 NTSTATUS rpccli_spoolss_SetPrinterDataEx(struct rpc_pipe_client *cli,
454                                          TALLOC_CTX *mem_ctx,
455                                          struct policy_handle *handle /* [in] [ref] */,
456                                          const char *key_name /* [in] [charset(UTF16)] */,
457                                          const char *value_name /* [in] [charset(UTF16)] */,
458                                          uint32_t type /* [in]  */,
459                                          DATA_BLOB buffer /* [in]  */,
460                                          uint32_t offered /* [in]  */,
461                                          WERROR *werror);
462 NTSTATUS rpccli_spoolss_GetPrinterDataEx(struct rpc_pipe_client *cli,
463                                          TALLOC_CTX *mem_ctx,
464                                          struct policy_handle *handle /* [in] [ref] */,
465                                          const char *key_name /* [in] [charset(UTF16)] */,
466                                          const char *value_name /* [in] [charset(UTF16)] */,
467                                          uint32_t *type /* [out] [ref] */,
468                                          uint8_t *buffer /* [out] [ref,size_is(offered)] */,
469                                          uint32_t offered /* [in]  */,
470                                          uint32_t *needed /* [out] [ref] */,
471                                          WERROR *werror);
472 NTSTATUS rpccli_spoolss_EnumPrinterDataEx(struct rpc_pipe_client *cli,
473                                           TALLOC_CTX *mem_ctx,
474                                           struct policy_handle *handle /* [in] [ref] */,
475                                           const char *key_name /* [in] [charset(UTF16)] */,
476                                           uint8_t *buffer /* [out] [ref,size_is(offered)] */,
477                                           uint32_t offered /* [in]  */,
478                                           uint32_t *needed /* [out] [ref] */,
479                                           uint32_t *count /* [out] [ref] */,
480                                           WERROR *werror);
481 NTSTATUS rpccli_spoolss_EnumPrinterKey(struct rpc_pipe_client *cli,
482                                        TALLOC_CTX *mem_ctx,
483                                        struct policy_handle *handle /* [in] [ref] */,
484                                        const char *key_name /* [in] [charset(UTF16)] */,
485                                        uint16_t *key_buffer /* [out] [ref,size_is(key_buffer_size/2)] */,
486                                        uint32_t key_buffer_size /* [in]  */,
487                                        uint32_t *needed /* [out] [ref] */,
488                                        WERROR *werror);
489 NTSTATUS rpccli_spoolss_DeletePrinterDataEx(struct rpc_pipe_client *cli,
490                                             TALLOC_CTX *mem_ctx,
491                                             struct policy_handle *handle /* [in] [ref] */,
492                                             const char *key_name /* [in] [charset(UTF16)] */,
493                                             const char *value_name /* [in] [charset(UTF16)] */,
494                                             WERROR *werror);
495 NTSTATUS rpccli_spoolss_DeletePrinterKey(struct rpc_pipe_client *cli,
496                                          TALLOC_CTX *mem_ctx,
497                                          struct policy_handle *handle /* [in] [ref] */,
498                                          const char *key_name /* [in] [charset(UTF16)] */,
499                                          WERROR *werror);
500 NTSTATUS rpccli_spoolss_53(struct rpc_pipe_client *cli,
501                            TALLOC_CTX *mem_ctx,
502                            WERROR *werror);
503 NTSTATUS rpccli_spoolss_DeletePrinterDriverEx(struct rpc_pipe_client *cli,
504                                               TALLOC_CTX *mem_ctx,
505                                               const char *server /* [in] [unique,charset(UTF16)] */,
506                                               const char *architecture /* [in] [charset(UTF16)] */,
507                                               const char *driver /* [in] [charset(UTF16)] */,
508                                               uint32_t delete_flags /* [in]  */,
509                                               uint32_t version /* [in]  */,
510                                               WERROR *werror);
511 NTSTATUS rpccli_spoolss_55(struct rpc_pipe_client *cli,
512                            TALLOC_CTX *mem_ctx,
513                            WERROR *werror);
514 NTSTATUS rpccli_spoolss_56(struct rpc_pipe_client *cli,
515                            TALLOC_CTX *mem_ctx,
516                            WERROR *werror);
517 NTSTATUS rpccli_spoolss_57(struct rpc_pipe_client *cli,
518                            TALLOC_CTX *mem_ctx,
519                            WERROR *werror);
520 NTSTATUS rpccli_spoolss_XcvData(struct rpc_pipe_client *cli,
521                                 TALLOC_CTX *mem_ctx,
522                                 struct policy_handle *handle /* [in] [ref] */,
523                                 const char *function_name /* [in] [charset(UTF16)] */,
524                                 DATA_BLOB in_data /* [in]  */,
525                                 uint32_t _in_data_length /* [in] [value(r->in.in_data.length)] */,
526                                 uint8_t *out_data /* [out] [ref,size_is(out_data_size)] */,
527                                 uint32_t out_data_size /* [in]  */,
528                                 uint32_t *needed /* [out] [ref] */,
529                                 uint32_t *status_code /* [in,out] [ref] */,
530                                 WERROR *werror);
531 NTSTATUS rpccli_spoolss_AddPrinterDriverEx(struct rpc_pipe_client *cli,
532                                            TALLOC_CTX *mem_ctx,
533                                            const char *servername /* [in] [ref,charset(UTF16)] */,
534                                            uint32_t level /* [in]  */,
535                                            union spoolss_AddDriverInfo info /* [in] [switch_is(level)] */,
536                                            uint32_t flags /* [in]  */,
537                                            WERROR *werror);
538 NTSTATUS rpccli_spoolss_5a(struct rpc_pipe_client *cli,
539                            TALLOC_CTX *mem_ctx,
540                            WERROR *werror);
541 NTSTATUS rpccli_spoolss_5b(struct rpc_pipe_client *cli,
542                            TALLOC_CTX *mem_ctx,
543                            WERROR *werror);
544 NTSTATUS rpccli_spoolss_5c(struct rpc_pipe_client *cli,
545                            TALLOC_CTX *mem_ctx,
546                            WERROR *werror);
547 NTSTATUS rpccli_spoolss_5d(struct rpc_pipe_client *cli,
548                            TALLOC_CTX *mem_ctx,
549                            WERROR *werror);
550 NTSTATUS rpccli_spoolss_5e(struct rpc_pipe_client *cli,
551                            TALLOC_CTX *mem_ctx,
552                            WERROR *werror);
553 NTSTATUS rpccli_spoolss_5f(struct rpc_pipe_client *cli,
554                            TALLOC_CTX *mem_ctx,
555                            WERROR *werror);
556 #endif /* __CLI_SPOOLSS__ */