516c2c069d0e08c164bff87c7fe0d23b2e62ed3d
[amitay/samba.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                                          WERROR *werror);
80 NTSTATUS rpccli_spoolss_EnumPrinterDrivers(struct rpc_pipe_client *cli,
81                                            TALLOC_CTX *mem_ctx,
82                                            const char *server /* [in] [unique,charset(UTF16)] */,
83                                            const char *environment /* [in] [unique,charset(UTF16)] */,
84                                            uint32_t level /* [in]  */,
85                                            DATA_BLOB *buffer /* [in] [unique] */,
86                                            uint32_t offered /* [in]  */,
87                                            union spoolss_DriverInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
88                                            uint32_t *needed /* [out] [ref] */,
89                                            uint32_t count /* [out]  */,
90                                            WERROR *werror);
91 NTSTATUS rpccli_spoolss_GetPrinterDriver(struct rpc_pipe_client *cli,
92                                          TALLOC_CTX *mem_ctx,
93                                          WERROR *werror);
94 NTSTATUS rpccli_spoolss_GetPrinterDriverDirectory(struct rpc_pipe_client *cli,
95                                                   TALLOC_CTX *mem_ctx,
96                                                   const char *server /* [in] [unique,charset(UTF16)] */,
97                                                   const char *environment /* [in] [unique,charset(UTF16)] */,
98                                                   uint32_t level /* [in]  */,
99                                                   DATA_BLOB *buffer /* [in] [unique] */,
100                                                   uint32_t offered /* [in]  */,
101                                                   union spoolss_DriverDirectoryInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
102                                                   uint32_t *needed /* [out] [ref] */,
103                                                   WERROR *werror);
104 NTSTATUS rpccli_spoolss_DeletePrinterDriver(struct rpc_pipe_client *cli,
105                                             TALLOC_CTX *mem_ctx,
106                                             const char *server /* [in] [unique,charset(UTF16)] */,
107                                             const char *architecture /* [in] [charset(UTF16)] */,
108                                             const char *driver /* [in] [charset(UTF16)] */,
109                                             WERROR *werror);
110 NTSTATUS rpccli_spoolss_AddPrintProcessor(struct rpc_pipe_client *cli,
111                                           TALLOC_CTX *mem_ctx,
112                                           const char *server /* [in] [unique,charset(UTF16)] */,
113                                           const char *architecture /* [in] [charset(UTF16)] */,
114                                           const char *path_name /* [in] [charset(UTF16)] */,
115                                           const char *print_processor_name /* [in] [charset(UTF16)] */,
116                                           WERROR *werror);
117 NTSTATUS rpccli_spoolss_EnumPrintProcessors(struct rpc_pipe_client *cli,
118                                             TALLOC_CTX *mem_ctx,
119                                             const char *servername /* [in] [unique,charset(UTF16)] */,
120                                             const char *environment /* [in] [unique,charset(UTF16)] */,
121                                             uint32_t level /* [in]  */,
122                                             DATA_BLOB *buffer /* [in] [unique] */,
123                                             uint32_t offered /* [in]  */,
124                                             union spoolss_PrintProcessorInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
125                                             uint32_t *needed /* [out] [ref] */,
126                                             uint32_t count /* [out]  */,
127                                             WERROR *werror);
128 NTSTATUS rpccli_spoolss_GetPrintProcessorDirectory(struct rpc_pipe_client *cli,
129                                                    TALLOC_CTX *mem_ctx,
130                                                    WERROR *werror);
131 NTSTATUS rpccli_spoolss_StartDocPrinter(struct rpc_pipe_client *cli,
132                                         TALLOC_CTX *mem_ctx,
133                                         struct policy_handle *handle /* [in] [ref] */,
134                                         uint32_t level /* [in]  */,
135                                         union spoolss_DocumentInfo info /* [in] [switch_is(level)] */,
136                                         uint32_t *job_id /* [out] [ref] */,
137                                         WERROR *werror);
138 NTSTATUS rpccli_spoolss_StartPagePrinter(struct rpc_pipe_client *cli,
139                                          TALLOC_CTX *mem_ctx,
140                                          struct policy_handle *handle /* [in] [ref] */,
141                                          WERROR *werror);
142 NTSTATUS rpccli_spoolss_WritePrinter(struct rpc_pipe_client *cli,
143                                      TALLOC_CTX *mem_ctx,
144                                      struct policy_handle *handle /* [in] [ref] */,
145                                      DATA_BLOB data /* [in]  */,
146                                      uint32_t _data_size /* [in] [value(r->in.data.length)] */,
147                                      uint32_t *num_written /* [out] [ref] */,
148                                      WERROR *werror);
149 NTSTATUS rpccli_spoolss_EndPagePrinter(struct rpc_pipe_client *cli,
150                                        TALLOC_CTX *mem_ctx,
151                                        struct policy_handle *handle /* [in] [ref] */,
152                                        WERROR *werror);
153 NTSTATUS rpccli_spoolss_AbortPrinter(struct rpc_pipe_client *cli,
154                                      TALLOC_CTX *mem_ctx,
155                                      struct policy_handle *handle /* [in] [ref] */,
156                                      WERROR *werror);
157 NTSTATUS rpccli_spoolss_ReadPrinter(struct rpc_pipe_client *cli,
158                                     TALLOC_CTX *mem_ctx,
159                                     struct policy_handle *handle /* [in] [ref] */,
160                                     uint8_t *data /* [out] [ref,size_is(data_size)] */,
161                                     uint32_t data_size /* [in]  */,
162                                     uint32_t *_data_size /* [out] [ref] */,
163                                     WERROR *werror);
164 NTSTATUS rpccli_spoolss_EndDocPrinter(struct rpc_pipe_client *cli,
165                                       TALLOC_CTX *mem_ctx,
166                                       struct policy_handle *handle /* [in] [ref] */,
167                                       WERROR *werror);
168 NTSTATUS rpccli_spoolss_AddJob(struct rpc_pipe_client *cli,
169                                TALLOC_CTX *mem_ctx,
170                                WERROR *werror);
171 NTSTATUS rpccli_spoolss_ScheduleJob(struct rpc_pipe_client *cli,
172                                     TALLOC_CTX *mem_ctx,
173                                     WERROR *werror);
174 NTSTATUS rpccli_spoolss_GetPrinterData(struct rpc_pipe_client *cli,
175                                        TALLOC_CTX *mem_ctx,
176                                        struct policy_handle *handle /* [in] [ref] */,
177                                        const char *value_name /* [in] [charset(UTF16)] */,
178                                        uint32_t offered /* [in]  */,
179                                        enum spoolss_PrinterDataType *type /* [out] [ref] */,
180                                        union spoolss_PrinterData data /* [out] [subcontext_size(offered),subcontext(4),switch_is(*type)] */,
181                                        uint32_t *needed /* [out] [ref] */,
182                                        WERROR *werror);
183 NTSTATUS rpccli_spoolss_SetPrinterData(struct rpc_pipe_client *cli,
184                                        TALLOC_CTX *mem_ctx,
185                                        struct policy_handle *handle /* [in] [ref] */,
186                                        const char *value_name /* [in] [charset(UTF16)] */,
187                                        enum spoolss_PrinterDataType type /* [in]  */,
188                                        union spoolss_PrinterData data /* [in] [subcontext(4),switch_is(type)] */,
189                                        uint32_t _offered /* [in] [value(ndr_size_spoolss_PrinterData(&data,type,ndr->iconv_convenience,flags))] */,
190                                        WERROR *werror);
191 NTSTATUS rpccli_spoolss_WaitForPrinterChange(struct rpc_pipe_client *cli,
192                                              TALLOC_CTX *mem_ctx,
193                                              WERROR *werror);
194 NTSTATUS rpccli_spoolss_ClosePrinter(struct rpc_pipe_client *cli,
195                                      TALLOC_CTX *mem_ctx,
196                                      struct policy_handle *handle /* [in,out] [ref] */,
197                                      WERROR *werror);
198 NTSTATUS rpccli_spoolss_AddForm(struct rpc_pipe_client *cli,
199                                 TALLOC_CTX *mem_ctx,
200                                 struct policy_handle *handle /* [in] [ref] */,
201                                 uint32_t level /* [in]  */,
202                                 union spoolss_AddFormInfo info /* [in] [switch_is(level)] */,
203                                 WERROR *werror);
204 NTSTATUS rpccli_spoolss_DeleteForm(struct rpc_pipe_client *cli,
205                                    TALLOC_CTX *mem_ctx,
206                                    struct policy_handle *handle /* [in] [ref] */,
207                                    const char *form_name /* [in] [charset(UTF16)] */,
208                                    WERROR *werror);
209 NTSTATUS rpccli_spoolss_GetForm(struct rpc_pipe_client *cli,
210                                 TALLOC_CTX *mem_ctx,
211                                 struct policy_handle *handle /* [in] [ref] */,
212                                 const char *form_name /* [in] [charset(UTF16)] */,
213                                 uint32_t level /* [in]  */,
214                                 DATA_BLOB *buffer /* [in] [unique] */,
215                                 uint32_t offered /* [in]  */,
216                                 union spoolss_FormInfo *info /* [out] [unique,subcontext_size(offered),subcontext(4),switch_is(level)] */,
217                                 uint32_t *needed /* [out] [ref] */,
218                                 WERROR *werror);
219 NTSTATUS rpccli_spoolss_SetForm(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                                 union spoolss_AddFormInfo info /* [in] [switch_is(level)] */,
225                                 WERROR *werror);
226 NTSTATUS rpccli_spoolss_EnumForms(struct rpc_pipe_client *cli,
227                                   TALLOC_CTX *mem_ctx,
228                                   struct policy_handle *handle /* [in] [ref] */,
229                                   uint32_t level /* [in]  */,
230                                   DATA_BLOB *buffer /* [in] [unique] */,
231                                   uint32_t offered /* [in]  */,
232                                   union spoolss_FormInfo *info /* [out] [unique,switch_is(level),size_is(count)] */,
233                                   uint32_t *needed /* [out] [ref] */,
234                                   uint32_t count /* [out]  */,
235                                   WERROR *werror);
236 NTSTATUS rpccli_spoolss_EnumPorts(struct rpc_pipe_client *cli,
237                                   TALLOC_CTX *mem_ctx,
238                                   const char *servername /* [in] [unique,charset(UTF16)] */,
239                                   uint32_t level /* [in]  */,
240                                   DATA_BLOB *buffer /* [in] [unique] */,
241                                   uint32_t offered /* [in]  */,
242                                   union spoolss_PortInfo *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_EnumMonitors(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_MonitorInfo *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_AddPort(struct rpc_pipe_client *cli,
257                                 TALLOC_CTX *mem_ctx,
258                                 const char *server_name /* [in] [unique,charset(UTF16)] */,
259                                 uint32_t unknown /* [in]  */,
260                                 const char *monitor_name /* [in] [charset(UTF16)] */,
261                                 WERROR *werror);
262 NTSTATUS rpccli_spoolss_ConfigurePort(struct rpc_pipe_client *cli,
263                                       TALLOC_CTX *mem_ctx,
264                                       WERROR *werror);
265 NTSTATUS rpccli_spoolss_DeletePort(struct rpc_pipe_client *cli,
266                                    TALLOC_CTX *mem_ctx,
267                                    WERROR *werror);
268 NTSTATUS rpccli_spoolss_CreatePrinterIC(struct rpc_pipe_client *cli,
269                                         TALLOC_CTX *mem_ctx,
270                                         WERROR *werror);
271 NTSTATUS rpccli_spoolss_PlayGDIScriptOnPrinterIC(struct rpc_pipe_client *cli,
272                                                  TALLOC_CTX *mem_ctx,
273                                                  WERROR *werror);
274 NTSTATUS rpccli_spoolss_DeletePrinterIC(struct rpc_pipe_client *cli,
275                                         TALLOC_CTX *mem_ctx,
276                                         WERROR *werror);
277 NTSTATUS rpccli_spoolss_AddPrinterConnection(struct rpc_pipe_client *cli,
278                                              TALLOC_CTX *mem_ctx,
279                                              WERROR *werror);
280 NTSTATUS rpccli_spoolss_DeletePrinterConnection(struct rpc_pipe_client *cli,
281                                                 TALLOC_CTX *mem_ctx,
282                                                 WERROR *werror);
283 NTSTATUS rpccli_spoolss_PrinterMessageBox(struct rpc_pipe_client *cli,
284                                           TALLOC_CTX *mem_ctx,
285                                           WERROR *werror);
286 NTSTATUS rpccli_spoolss_AddMonitor(struct rpc_pipe_client *cli,
287                                    TALLOC_CTX *mem_ctx,
288                                    WERROR *werror);
289 NTSTATUS rpccli_spoolss_DeleteMonitor(struct rpc_pipe_client *cli,
290                                       TALLOC_CTX *mem_ctx,
291                                       WERROR *werror);
292 NTSTATUS rpccli_spoolss_DeletePrintProcessor(struct rpc_pipe_client *cli,
293                                              TALLOC_CTX *mem_ctx,
294                                              WERROR *werror);
295 NTSTATUS rpccli_spoolss_AddPrintProvidor(struct rpc_pipe_client *cli,
296                                          TALLOC_CTX *mem_ctx,
297                                          WERROR *werror);
298 NTSTATUS rpccli_spoolss_DeletePrintProvidor(struct rpc_pipe_client *cli,
299                                             TALLOC_CTX *mem_ctx,
300                                             WERROR *werror);
301 NTSTATUS rpccli_spoolss_EnumPrintProcDataTypes(struct rpc_pipe_client *cli,
302                                                TALLOC_CTX *mem_ctx,
303                                                WERROR *werror);
304 NTSTATUS rpccli_spoolss_ResetPrinter(struct rpc_pipe_client *cli,
305                                      TALLOC_CTX *mem_ctx,
306                                      WERROR *werror);
307 NTSTATUS rpccli_spoolss_GetPrinterDriver2(struct rpc_pipe_client *cli,
308                                           TALLOC_CTX *mem_ctx,
309                                           struct policy_handle *handle /* [in] [ref] */,
310                                           const char *architecture /* [in] [unique,charset(UTF16)] */,
311                                           uint32_t level /* [in]  */,
312                                           DATA_BLOB *buffer /* [in] [unique] */,
313                                           uint32_t offered /* [in]  */,
314                                           uint32_t client_major_version /* [in]  */,
315                                           uint32_t client_minor_version /* [in]  */,
316                                           DATA_BLOB *info /* [out] [unique] */,
317                                           uint32_t *needed /* [out] [ref] */,
318                                           uint32_t *server_major_version /* [out] [ref] */,
319                                           uint32_t *server_minor_version /* [out] [ref] */,
320                                           WERROR *werror);
321 NTSTATUS rpccli_spoolss_FindFirstPrinterChangeNotification(struct rpc_pipe_client *cli,
322                                                            TALLOC_CTX *mem_ctx,
323                                                            WERROR *werror);
324 NTSTATUS rpccli_spoolss_FindNextPrinterChangeNotification(struct rpc_pipe_client *cli,
325                                                           TALLOC_CTX *mem_ctx,
326                                                           WERROR *werror);
327 NTSTATUS rpccli_spoolss_FindClosePrinterNotify(struct rpc_pipe_client *cli,
328                                                TALLOC_CTX *mem_ctx,
329                                                struct policy_handle *handle /* [in] [ref] */,
330                                                WERROR *werror);
331 NTSTATUS rpccli_spoolss_RouterFindFirstPrinterChangeNotificationOld(struct rpc_pipe_client *cli,
332                                                                     TALLOC_CTX *mem_ctx,
333                                                                     WERROR *werror);
334 NTSTATUS rpccli_spoolss_ReplyOpenPrinter(struct rpc_pipe_client *cli,
335                                          TALLOC_CTX *mem_ctx,
336                                          const char *server_name /* [in] [charset(UTF16)] */,
337                                          uint32_t printer_local /* [in]  */,
338                                          enum winreg_Type type /* [in]  */,
339                                          uint32_t unknown1 /* [in]  */,
340                                          uint32_t unknown2 /* [in]  */,
341                                          struct policy_handle *handle /* [out] [ref] */,
342                                          WERROR *werror);
343 NTSTATUS rpccli_spoolss_RouterReplyPrinter(struct rpc_pipe_client *cli,
344                                            TALLOC_CTX *mem_ctx,
345                                            struct policy_handle *handle /* [in] [ref] */,
346                                            uint32_t flags /* [in]  */,
347                                            uint32_t bufsize /* [in] [range(0,512)] */,
348                                            uint8_t *buffer /* [in] [unique,size_is(bufsize)] */,
349                                            WERROR *werror);
350 NTSTATUS rpccli_spoolss_ReplyClosePrinter(struct rpc_pipe_client *cli,
351                                           TALLOC_CTX *mem_ctx,
352                                           struct policy_handle *handle /* [in,out] [ref] */,
353                                           WERROR *werror);
354 NTSTATUS rpccli_spoolss_AddPortEx(struct rpc_pipe_client *cli,
355                                   TALLOC_CTX *mem_ctx,
356                                   WERROR *werror);
357 NTSTATUS rpccli_spoolss_RouterFindFirstPrinterChangeNotification(struct rpc_pipe_client *cli,
358                                                                  TALLOC_CTX *mem_ctx,
359                                                                  WERROR *werror);
360 NTSTATUS rpccli_spoolss_SpoolerInit(struct rpc_pipe_client *cli,
361                                     TALLOC_CTX *mem_ctx,
362                                     WERROR *werror);
363 NTSTATUS rpccli_spoolss_ResetPrinterEx(struct rpc_pipe_client *cli,
364                                        TALLOC_CTX *mem_ctx,
365                                        WERROR *werror);
366 NTSTATUS rpccli_spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct rpc_pipe_client *cli,
367                                                              TALLOC_CTX *mem_ctx,
368                                                              struct policy_handle *handle /* [in] [ref] */,
369                                                              uint32_t flags /* [in]  */,
370                                                              uint32_t options /* [in]  */,
371                                                              const char *str /* [in] [unique,charset(UTF16)] */,
372                                                              uint32_t printer_local /* [in]  */,
373                                                              struct spoolss_NotifyOptionsContainer *t1 /* [in] [unique] */,
374                                                              WERROR *werror);
375 NTSTATUS rpccli_spoolss_RouterRefreshPrinterChangeNotification(struct rpc_pipe_client *cli,
376                                                                TALLOC_CTX *mem_ctx,
377                                                                WERROR *werror);
378 NTSTATUS rpccli_spoolss_RemoteFindNextPrinterChangeNotifyEx(struct rpc_pipe_client *cli,
379                                                             TALLOC_CTX *mem_ctx,
380                                                             struct policy_handle *handle /* [in] [ref] */,
381                                                             uint32_t change_low /* [in]  */,
382                                                             struct spoolss_NotifyOptionsContainer *container /* [in] [unique] */,
383                                                             struct spoolss_NotifyInfo **info /* [out] [ref] */,
384                                                             WERROR *werror);
385 NTSTATUS rpccli_spoolss_44(struct rpc_pipe_client *cli,
386                            TALLOC_CTX *mem_ctx,
387                            WERROR *werror);
388 NTSTATUS rpccli_spoolss_OpenPrinterEx(struct rpc_pipe_client *cli,
389                                       TALLOC_CTX *mem_ctx,
390                                       const char *printername /* [in] [unique,charset(UTF16)] */,
391                                       const char *datatype /* [in] [unique,charset(UTF16)] */,
392                                       struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
393                                       uint32_t access_mask /* [in]  */,
394                                       uint32_t level /* [in]  */,
395                                       union spoolss_UserLevel userlevel /* [in] [switch_is(level)] */,
396                                       struct policy_handle *handle /* [out] [ref] */,
397                                       WERROR *werror);
398 NTSTATUS rpccli_spoolss_AddPrinterEx(struct rpc_pipe_client *cli,
399                                      TALLOC_CTX *mem_ctx,
400                                      const char *server /* [in] [unique,charset(UTF16)] */,
401                                      uint32_t level /* [in]  */,
402                                      union spoolss_PrinterInfo *info /* [in] [unique,switch_is(level)] */,
403                                      struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
404                                      struct security_descriptor *secdesc /* [in] [unique] */,
405                                      uint32_t ulevel /* [in]  */,
406                                      union spoolss_UserLevel userlevel /* [in] [switch_is(ulevel)] */,
407                                      WERROR *werror);
408 NTSTATUS rpccli_spoolss_47(struct rpc_pipe_client *cli,
409                            TALLOC_CTX *mem_ctx,
410                            WERROR *werror);
411 NTSTATUS rpccli_spoolss_EnumPrinterData(struct rpc_pipe_client *cli,
412                                         TALLOC_CTX *mem_ctx,
413                                         struct policy_handle *handle /* [in] [ref] */,
414                                         uint32_t enum_index /* [in]  */,
415                                         const char *value_name /* [out] [ref,charset(UTF16),size_is(value_offered/2)] */,
416                                         uint32_t value_offered /* [in]  */,
417                                         uint32_t *value_needed /* [out] [ref] */,
418                                         uint32_t *printerdata_type /* [out] [ref] */,
419                                         DATA_BLOB *buffer /* [out] [ref] */,
420                                         uint32_t data_offered /* [in]  */,
421                                         uint32_t *data_needed /* [out] [ref] */,
422                                         WERROR *werror);
423 NTSTATUS rpccli_spoolss_DeletePrinterData(struct rpc_pipe_client *cli,
424                                           TALLOC_CTX *mem_ctx,
425                                           struct policy_handle *handle /* [in] [ref] */,
426                                           const char *value_name /* [in] [charset(UTF16)] */,
427                                           WERROR *werror);
428 NTSTATUS rpccli_spoolss_4a(struct rpc_pipe_client *cli,
429                            TALLOC_CTX *mem_ctx,
430                            WERROR *werror);
431 NTSTATUS rpccli_spoolss_4b(struct rpc_pipe_client *cli,
432                            TALLOC_CTX *mem_ctx,
433                            WERROR *werror);
434 NTSTATUS rpccli_spoolss_4c(struct rpc_pipe_client *cli,
435                            TALLOC_CTX *mem_ctx,
436                            WERROR *werror);
437 NTSTATUS rpccli_spoolss_SetPrinterDataEx(struct rpc_pipe_client *cli,
438                                          TALLOC_CTX *mem_ctx,
439                                          struct policy_handle *handle /* [in] [ref] */,
440                                          const char *key_name /* [in] [charset(UTF16)] */,
441                                          const char *value_name /* [in] [charset(UTF16)] */,
442                                          uint32_t type /* [in]  */,
443                                          DATA_BLOB buffer /* [in]  */,
444                                          uint32_t offered /* [in]  */,
445                                          WERROR *werror);
446 NTSTATUS rpccli_spoolss_GetPrinterDataEx(struct rpc_pipe_client *cli,
447                                          TALLOC_CTX *mem_ctx,
448                                          struct policy_handle *handle /* [in] [ref] */,
449                                          const char *key_name /* [in] [charset(UTF16)] */,
450                                          const char *value_name /* [in] [charset(UTF16)] */,
451                                          uint32_t *type /* [out] [ref] */,
452                                          uint8_t *buffer /* [out] [ref,size_is(offered)] */,
453                                          uint32_t offered /* [in]  */,
454                                          uint32_t *needed /* [out] [ref] */,
455                                          WERROR *werror);
456 NTSTATUS rpccli_spoolss_EnumPrinterDataEx(struct rpc_pipe_client *cli,
457                                           TALLOC_CTX *mem_ctx,
458                                           struct policy_handle *handle /* [in] [ref] */,
459                                           const char *key_name /* [in] [charset(UTF16)] */,
460                                           uint8_t *buffer /* [out] [ref,size_is(offered)] */,
461                                           uint32_t offered /* [in]  */,
462                                           uint32_t *needed /* [out] [ref] */,
463                                           uint32_t *count /* [out] [ref] */,
464                                           WERROR *werror);
465 NTSTATUS rpccli_spoolss_EnumPrinterKey(struct rpc_pipe_client *cli,
466                                        TALLOC_CTX *mem_ctx,
467                                        struct policy_handle *handle /* [in] [ref] */,
468                                        const char *key_name /* [in] [charset(UTF16)] */,
469                                        uint16_t *key_buffer /* [out] [ref,size_is(key_buffer_size/2)] */,
470                                        uint32_t key_buffer_size /* [in]  */,
471                                        uint32_t *needed /* [out] [ref] */,
472                                        WERROR *werror);
473 NTSTATUS rpccli_spoolss_DeletePrinterDataEx(struct rpc_pipe_client *cli,
474                                             TALLOC_CTX *mem_ctx,
475                                             struct policy_handle *handle /* [in] [ref] */,
476                                             const char *key_name /* [in] [charset(UTF16)] */,
477                                             const char *value_name /* [in] [charset(UTF16)] */,
478                                             WERROR *werror);
479 NTSTATUS rpccli_spoolss_DeletePrinterKey(struct rpc_pipe_client *cli,
480                                          TALLOC_CTX *mem_ctx,
481                                          struct policy_handle *handle /* [in] [ref] */,
482                                          const char *key_name /* [in] [charset(UTF16)] */,
483                                          WERROR *werror);
484 NTSTATUS rpccli_spoolss_53(struct rpc_pipe_client *cli,
485                            TALLOC_CTX *mem_ctx,
486                            WERROR *werror);
487 NTSTATUS rpccli_spoolss_DeletePrinterDriverEx(struct rpc_pipe_client *cli,
488                                               TALLOC_CTX *mem_ctx,
489                                               const char *server /* [in] [unique,charset(UTF16)] */,
490                                               const char *architecture /* [in] [charset(UTF16)] */,
491                                               const char *driver /* [in] [charset(UTF16)] */,
492                                               uint32_t delete_flags /* [in]  */,
493                                               uint32_t version /* [in]  */,
494                                               WERROR *werror);
495 NTSTATUS rpccli_spoolss_55(struct rpc_pipe_client *cli,
496                            TALLOC_CTX *mem_ctx,
497                            WERROR *werror);
498 NTSTATUS rpccli_spoolss_56(struct rpc_pipe_client *cli,
499                            TALLOC_CTX *mem_ctx,
500                            WERROR *werror);
501 NTSTATUS rpccli_spoolss_57(struct rpc_pipe_client *cli,
502                            TALLOC_CTX *mem_ctx,
503                            WERROR *werror);
504 NTSTATUS rpccli_spoolss_XcvData(struct rpc_pipe_client *cli,
505                                 TALLOC_CTX *mem_ctx,
506                                 struct policy_handle *handle /* [in] [ref] */,
507                                 const char *function_name /* [in] [charset(UTF16)] */,
508                                 DATA_BLOB in_data /* [in]  */,
509                                 uint32_t _in_data_length /* [in] [value(r->in.in_data.length)] */,
510                                 uint8_t *out_data /* [out] [ref,size_is(out_data_size)] */,
511                                 uint32_t out_data_size /* [in]  */,
512                                 uint32_t *needed /* [out] [ref] */,
513                                 uint32_t *status_code /* [in,out] [ref] */,
514                                 WERROR *werror);
515 NTSTATUS rpccli_spoolss_AddPrinterDriverEx(struct rpc_pipe_client *cli,
516                                            TALLOC_CTX *mem_ctx,
517                                            WERROR *werror);
518 NTSTATUS rpccli_spoolss_5a(struct rpc_pipe_client *cli,
519                            TALLOC_CTX *mem_ctx,
520                            WERROR *werror);
521 NTSTATUS rpccli_spoolss_5b(struct rpc_pipe_client *cli,
522                            TALLOC_CTX *mem_ctx,
523                            WERROR *werror);
524 NTSTATUS rpccli_spoolss_5c(struct rpc_pipe_client *cli,
525                            TALLOC_CTX *mem_ctx,
526                            WERROR *werror);
527 NTSTATUS rpccli_spoolss_5d(struct rpc_pipe_client *cli,
528                            TALLOC_CTX *mem_ctx,
529                            WERROR *werror);
530 NTSTATUS rpccli_spoolss_5e(struct rpc_pipe_client *cli,
531                            TALLOC_CTX *mem_ctx,
532                            WERROR *werror);
533 NTSTATUS rpccli_spoolss_5f(struct rpc_pipe_client *cli,
534                            TALLOC_CTX *mem_ctx,
535                            WERROR *werror);
536 #endif /* __CLI_SPOOLSS__ */