s3: re-run make samba3-idl.
[tprouty/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                                          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                                              WERROR *werror);
388 NTSTATUS rpccli_spoolss_RouterRefreshPrinterChangeNotify(struct rpc_pipe_client *cli,
389                                                          TALLOC_CTX *mem_ctx,
390                                                          struct policy_handle *handle /* [in] [ref] */,
391                                                          uint32_t change_low /* [in]  */,
392                                                          struct spoolss_NotifyOptionsContainer *container /* [in] [unique] */,
393                                                          struct spoolss_NotifyInfo **info /* [out] [ref] */,
394                                                          WERROR *werror);
395 NTSTATUS rpccli_spoolss_44(struct rpc_pipe_client *cli,
396                            TALLOC_CTX *mem_ctx,
397                            WERROR *werror);
398 NTSTATUS rpccli_spoolss_OpenPrinterEx(struct rpc_pipe_client *cli,
399                                       TALLOC_CTX *mem_ctx,
400                                       const char *printername /* [in] [unique,charset(UTF16)] */,
401                                       const char *datatype /* [in] [unique,charset(UTF16)] */,
402                                       struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
403                                       uint32_t access_mask /* [in]  */,
404                                       uint32_t level /* [in]  */,
405                                       union spoolss_UserLevel userlevel /* [in] [switch_is(level)] */,
406                                       struct policy_handle *handle /* [out] [ref] */,
407                                       WERROR *werror);
408 NTSTATUS rpccli_spoolss_AddPrinterEx(struct rpc_pipe_client *cli,
409                                      TALLOC_CTX *mem_ctx,
410                                      const char *server /* [in] [unique,charset(UTF16)] */,
411                                      uint32_t level /* [in]  */,
412                                      union spoolss_PrinterInfo *info /* [in] [unique,switch_is(level)] */,
413                                      struct spoolss_DevmodeContainer devmode_ctr /* [in]  */,
414                                      struct security_descriptor *secdesc /* [in] [unique] */,
415                                      uint32_t ulevel /* [in]  */,
416                                      union spoolss_UserLevel userlevel /* [in] [switch_is(ulevel)] */,
417                                      WERROR *werror);
418 NTSTATUS rpccli_spoolss_47(struct rpc_pipe_client *cli,
419                            TALLOC_CTX *mem_ctx,
420                            WERROR *werror);
421 NTSTATUS rpccli_spoolss_EnumPrinterData(struct rpc_pipe_client *cli,
422                                         TALLOC_CTX *mem_ctx,
423                                         struct policy_handle *handle /* [in] [ref] */,
424                                         uint32_t enum_index /* [in]  */,
425                                         const char *value_name /* [out] [charset(UTF16),size_is(value_offered/2)] */,
426                                         uint32_t value_offered /* [in]  */,
427                                         uint32_t *value_needed /* [out] [ref] */,
428                                         uint32_t *printerdata_type /* [out] [ref] */,
429                                         DATA_BLOB *buffer /* [out] [ref] */,
430                                         uint32_t data_offered /* [in]  */,
431                                         uint32_t *data_needed /* [out] [ref] */,
432                                         WERROR *werror);
433 NTSTATUS rpccli_spoolss_DeletePrinterData(struct rpc_pipe_client *cli,
434                                           TALLOC_CTX *mem_ctx,
435                                           struct policy_handle *handle /* [in] [ref] */,
436                                           const char *value_name /* [in] [charset(UTF16)] */,
437                                           WERROR *werror);
438 NTSTATUS rpccli_spoolss_4a(struct rpc_pipe_client *cli,
439                            TALLOC_CTX *mem_ctx,
440                            WERROR *werror);
441 NTSTATUS rpccli_spoolss_4b(struct rpc_pipe_client *cli,
442                            TALLOC_CTX *mem_ctx,
443                            WERROR *werror);
444 NTSTATUS rpccli_spoolss_4c(struct rpc_pipe_client *cli,
445                            TALLOC_CTX *mem_ctx,
446                            WERROR *werror);
447 NTSTATUS rpccli_spoolss_SetPrinterDataEx(struct rpc_pipe_client *cli,
448                                          TALLOC_CTX *mem_ctx,
449                                          struct policy_handle *handle /* [in] [ref] */,
450                                          const char *key_name /* [in] [charset(UTF16)] */,
451                                          const char *value_name /* [in] [charset(UTF16)] */,
452                                          uint32_t type /* [in]  */,
453                                          DATA_BLOB buffer /* [in]  */,
454                                          uint32_t offered /* [in]  */,
455                                          WERROR *werror);
456 NTSTATUS rpccli_spoolss_GetPrinterDataEx(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                                          const char *value_name /* [in] [charset(UTF16)] */,
461                                          uint32_t *type /* [out] [ref] */,
462                                          uint8_t *buffer /* [out] [ref,size_is(offered)] */,
463                                          uint32_t offered /* [in]  */,
464                                          uint32_t *needed /* [out] [ref] */,
465                                          WERROR *werror);
466 NTSTATUS rpccli_spoolss_EnumPrinterDataEx(struct rpc_pipe_client *cli,
467                                           TALLOC_CTX *mem_ctx,
468                                           struct policy_handle *handle /* [in] [ref] */,
469                                           const char *key_name /* [in] [charset(UTF16)] */,
470                                           uint8_t *buffer /* [out] [ref,size_is(offered)] */,
471                                           uint32_t offered /* [in]  */,
472                                           uint32_t *needed /* [out] [ref] */,
473                                           uint32_t *count /* [out] [ref] */,
474                                           WERROR *werror);
475 NTSTATUS rpccli_spoolss_EnumPrinterKey(struct rpc_pipe_client *cli,
476                                        TALLOC_CTX *mem_ctx,
477                                        struct policy_handle *handle /* [in] [ref] */,
478                                        const char *key_name /* [in] [charset(UTF16)] */,
479                                        uint16_t *key_buffer /* [out] [ref,size_is(key_buffer_size/2)] */,
480                                        uint32_t key_buffer_size /* [in]  */,
481                                        uint32_t *needed /* [out] [ref] */,
482                                        WERROR *werror);
483 NTSTATUS rpccli_spoolss_DeletePrinterDataEx(struct rpc_pipe_client *cli,
484                                             TALLOC_CTX *mem_ctx,
485                                             struct policy_handle *handle /* [in] [ref] */,
486                                             const char *key_name /* [in] [charset(UTF16)] */,
487                                             const char *value_name /* [in] [charset(UTF16)] */,
488                                             WERROR *werror);
489 NTSTATUS rpccli_spoolss_DeletePrinterKey(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                                          WERROR *werror);
494 NTSTATUS rpccli_spoolss_53(struct rpc_pipe_client *cli,
495                            TALLOC_CTX *mem_ctx,
496                            WERROR *werror);
497 NTSTATUS rpccli_spoolss_DeletePrinterDriverEx(struct rpc_pipe_client *cli,
498                                               TALLOC_CTX *mem_ctx,
499                                               const char *server /* [in] [unique,charset(UTF16)] */,
500                                               const char *architecture /* [in] [charset(UTF16)] */,
501                                               const char *driver /* [in] [charset(UTF16)] */,
502                                               uint32_t delete_flags /* [in]  */,
503                                               uint32_t version /* [in]  */,
504                                               WERROR *werror);
505 NTSTATUS rpccli_spoolss_55(struct rpc_pipe_client *cli,
506                            TALLOC_CTX *mem_ctx,
507                            WERROR *werror);
508 NTSTATUS rpccli_spoolss_56(struct rpc_pipe_client *cli,
509                            TALLOC_CTX *mem_ctx,
510                            WERROR *werror);
511 NTSTATUS rpccli_spoolss_57(struct rpc_pipe_client *cli,
512                            TALLOC_CTX *mem_ctx,
513                            WERROR *werror);
514 NTSTATUS rpccli_spoolss_XcvData(struct rpc_pipe_client *cli,
515                                 TALLOC_CTX *mem_ctx,
516                                 struct policy_handle *handle /* [in] [ref] */,
517                                 const char *function_name /* [in] [charset(UTF16)] */,
518                                 DATA_BLOB in_data /* [in]  */,
519                                 uint32_t _in_data_length /* [in] [value(r->in.in_data.length)] */,
520                                 uint8_t *out_data /* [out] [ref,size_is(out_data_size)] */,
521                                 uint32_t out_data_size /* [in]  */,
522                                 uint32_t *needed /* [out] [ref] */,
523                                 uint32_t *status_code /* [in,out] [ref] */,
524                                 WERROR *werror);
525 NTSTATUS rpccli_spoolss_AddPrinterDriverEx(struct rpc_pipe_client *cli,
526                                            TALLOC_CTX *mem_ctx,
527                                            const char *servername /* [in] [ref,charset(UTF16)] */,
528                                            uint32_t level /* [in]  */,
529                                            union spoolss_AddDriverInfo info /* [in] [switch_is(level)] */,
530                                            uint32_t flags /* [in]  */,
531                                            WERROR *werror);
532 NTSTATUS rpccli_spoolss_5a(struct rpc_pipe_client *cli,
533                            TALLOC_CTX *mem_ctx,
534                            WERROR *werror);
535 NTSTATUS rpccli_spoolss_5b(struct rpc_pipe_client *cli,
536                            TALLOC_CTX *mem_ctx,
537                            WERROR *werror);
538 NTSTATUS rpccli_spoolss_5c(struct rpc_pipe_client *cli,
539                            TALLOC_CTX *mem_ctx,
540                            WERROR *werror);
541 NTSTATUS rpccli_spoolss_5d(struct rpc_pipe_client *cli,
542                            TALLOC_CTX *mem_ctx,
543                            WERROR *werror);
544 NTSTATUS rpccli_spoolss_5e(struct rpc_pipe_client *cli,
545                            TALLOC_CTX *mem_ctx,
546                            WERROR *werror);
547 NTSTATUS rpccli_spoolss_5f(struct rpc_pipe_client *cli,
548                            TALLOC_CTX *mem_ctx,
549                            WERROR *werror);
550 #endif /* __CLI_SPOOLSS__ */