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