Fix crash when get_gpo_info returns incorrect data.
[Samba.git] / source3 / rpc_client / cli_spoolss.h
blob285a34fab400a4ba57df7b9999823fd429d2fea4
1 /* The following definitions come from rpc_client/cli_spoolss.c */
3 WERROR rpccli_spoolss_openprinter_ex(struct rpc_pipe_client *cli,
4 TALLOC_CTX *mem_ctx,
5 const char *printername,
6 uint32_t access_desired,
7 struct policy_handle *handle);
8 WERROR rpccli_spoolss_getprinterdriver(struct rpc_pipe_client *cli,
9 TALLOC_CTX *mem_ctx,
10 struct policy_handle *handle,
11 const char *architecture,
12 uint32_t level,
13 uint32_t offered,
14 union spoolss_DriverInfo *info);
15 WERROR rpccli_spoolss_getprinterdriver2(struct rpc_pipe_client *cli,
16 TALLOC_CTX *mem_ctx,
17 struct policy_handle *handle,
18 const char *architecture,
19 uint32_t level,
20 uint32_t offered,
21 uint32_t client_major_version,
22 uint32_t client_minor_version,
23 union spoolss_DriverInfo *info,
24 uint32_t *server_major_version,
25 uint32_t *server_minor_version);
26 WERROR rpccli_spoolss_addprinterex(struct rpc_pipe_client *cli,
27 TALLOC_CTX *mem_ctx,
28 struct spoolss_SetPrinterInfoCtr *info_ctr);
29 WERROR rpccli_spoolss_getprinter(struct rpc_pipe_client *cli,
30 TALLOC_CTX *mem_ctx,
31 struct policy_handle *handle,
32 uint32_t level,
33 uint32_t offered,
34 union spoolss_PrinterInfo *info);
35 WERROR rpccli_spoolss_getjob(struct rpc_pipe_client *cli,
36 TALLOC_CTX *mem_ctx,
37 struct policy_handle *handle,
38 uint32_t job_id,
39 uint32_t level,
40 uint32_t offered,
41 union spoolss_JobInfo *info);
42 WERROR rpccli_spoolss_enumforms(struct rpc_pipe_client *cli,
43 TALLOC_CTX *mem_ctx,
44 struct policy_handle *handle,
45 uint32_t level,
46 uint32_t offered,
47 uint32_t *count,
48 union spoolss_FormInfo **info);
49 WERROR rpccli_spoolss_enumprintprocessors(struct rpc_pipe_client *cli,
50 TALLOC_CTX *mem_ctx,
51 const char *servername,
52 const char *environment,
53 uint32_t level,
54 uint32_t offered,
55 uint32_t *count,
56 union spoolss_PrintProcessorInfo **info);
57 WERROR rpccli_spoolss_enumprintprocessordatatypes(struct rpc_pipe_client *cli,
58 TALLOC_CTX *mem_ctx,
59 const char *servername,
60 const char *print_processor_name,
61 uint32_t level,
62 uint32_t offered,
63 uint32_t *count,
64 union spoolss_PrintProcDataTypesInfo **info);
65 WERROR rpccli_spoolss_enumports(struct rpc_pipe_client *cli,
66 TALLOC_CTX *mem_ctx,
67 const char *servername,
68 uint32_t level,
69 uint32_t offered,
70 uint32_t *count,
71 union spoolss_PortInfo **info);
72 WERROR rpccli_spoolss_enummonitors(struct rpc_pipe_client *cli,
73 TALLOC_CTX *mem_ctx,
74 const char *servername,
75 uint32_t level,
76 uint32_t offered,
77 uint32_t *count,
78 union spoolss_MonitorInfo **info);
79 WERROR rpccli_spoolss_enumjobs(struct rpc_pipe_client *cli,
80 TALLOC_CTX *mem_ctx,
81 struct policy_handle *handle,
82 uint32_t firstjob,
83 uint32_t numjobs,
84 uint32_t level,
85 uint32_t offered,
86 uint32_t *count,
87 union spoolss_JobInfo **info);
88 WERROR rpccli_spoolss_enumprinterdrivers(struct rpc_pipe_client *cli,
89 TALLOC_CTX *mem_ctx,
90 const char *server,
91 const char *environment,
92 uint32_t level,
93 uint32_t offered,
94 uint32_t *count,
95 union spoolss_DriverInfo **info);
96 WERROR rpccli_spoolss_enumprinters(struct rpc_pipe_client *cli,
97 TALLOC_CTX *mem_ctx,
98 uint32_t flags,
99 const char *server,
100 uint32_t level,
101 uint32_t offered,
102 uint32_t *count,
103 union spoolss_PrinterInfo **info);
104 WERROR rpccli_spoolss_getprinterdata(struct rpc_pipe_client *cli,
105 TALLOC_CTX *mem_ctx,
106 struct policy_handle *handle,
107 const char *value_name,
108 uint32_t offered,
109 enum winreg_Type *type,
110 uint32_t *needed_p,
111 uint8_t **data_p);
112 WERROR rpccli_spoolss_enumprinterkey(struct rpc_pipe_client *cli,
113 TALLOC_CTX *mem_ctx,
114 struct policy_handle *handle,
115 const char *key_name,
116 const char ***key_buffer,
117 uint32_t offered);
118 WERROR rpccli_spoolss_enumprinterdataex(struct rpc_pipe_client *cli,
119 TALLOC_CTX *mem_ctx,
120 struct policy_handle *handle,
121 const char *key_name,
122 uint32_t offered,
123 uint32_t *count,
124 struct spoolss_PrinterEnumValues **info);