Re-run make idl.
[Samba/gebeck_regimport.git] / source3 / librpc / gen_ndr / cli_svcctl.h
blob5f724ed09ed8e7736debd4d39ce4f160a320c653
1 #include "librpc/gen_ndr/ndr_svcctl.h"
2 #ifndef __CLI_SVCCTL__
3 #define __CLI_SVCCTL__
4 NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli,
5 TALLOC_CTX *mem_ctx,
6 struct policy_handle *handle,
7 WERROR *werror);
8 NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli,
9 TALLOC_CTX *mem_ctx,
10 struct policy_handle *handle,
11 uint32_t control,
12 struct SERVICE_STATUS *service_status,
13 WERROR *werror);
14 NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli,
15 TALLOC_CTX *mem_ctx,
16 struct policy_handle *handle,
17 WERROR *werror);
18 NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli,
19 TALLOC_CTX *mem_ctx,
20 struct policy_handle *handle,
21 struct policy_handle *lock,
22 WERROR *werror);
23 NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli,
24 TALLOC_CTX *mem_ctx,
25 struct policy_handle *handle,
26 uint32_t security_flags,
27 uint8_t *buffer,
28 uint32_t buffer_size,
29 uint32_t *needed,
30 WERROR *werror);
31 NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli,
32 TALLOC_CTX *mem_ctx,
33 struct policy_handle *handle,
34 uint32_t security_flags,
35 uint8_t *buffer,
36 uint32_t buffer_size,
37 WERROR *werror);
38 NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli,
39 TALLOC_CTX *mem_ctx,
40 struct policy_handle *handle,
41 struct SERVICE_STATUS *service_status,
42 WERROR *werror);
43 NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli,
44 TALLOC_CTX *mem_ctx,
45 WERROR *werror);
46 NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli,
47 TALLOC_CTX *mem_ctx,
48 struct policy_handle *lock,
49 WERROR *werror);
50 NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli,
51 TALLOC_CTX *mem_ctx,
52 WERROR *werror);
53 NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli,
54 TALLOC_CTX *mem_ctx,
55 struct policy_handle *handle,
56 uint32_t bits,
57 uint32_t bitson,
58 uint32_t immediate,
59 WERROR *werror);
60 NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli,
61 TALLOC_CTX *mem_ctx,
62 struct policy_handle *handle,
63 uint32_t type,
64 uint32_t start,
65 uint32_t error,
66 const char *binary_path,
67 const char *load_order_group,
68 uint32_t *tag_id,
69 const char *dependencies,
70 const char *service_start_name,
71 const char *password,
72 const char *display_name,
73 WERROR *werror);
74 NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli,
75 TALLOC_CTX *mem_ctx,
76 struct policy_handle *scmanager_handle,
77 const char *ServiceName,
78 const char *DisplayName,
79 uint32_t desired_access,
80 uint32_t type,
81 uint32_t start_type,
82 uint32_t error_control,
83 const char *binary_path,
84 const char *LoadOrderGroupKey,
85 uint32_t *TagId,
86 uint8_t *dependencies,
87 uint32_t dependencies_size,
88 const char *service_start_name,
89 uint8_t *password,
90 uint32_t password_size,
91 struct policy_handle *handle,
92 WERROR *werror);
93 NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli,
94 TALLOC_CTX *mem_ctx,
95 struct policy_handle *service,
96 uint32_t state,
97 uint8_t *service_status,
98 uint32_t buf_size,
99 uint32_t *bytes_needed,
100 uint32_t *services_returned,
101 WERROR *werror);
102 NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
103 TALLOC_CTX *mem_ctx,
104 struct policy_handle *handle,
105 uint32_t type,
106 uint32_t state,
107 uint32_t buf_size,
108 uint8_t *service,
109 uint32_t *bytes_needed,
110 uint32_t *services_returned,
111 uint32_t *resume_handle,
112 WERROR *werror);
113 NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli,
114 TALLOC_CTX *mem_ctx,
115 const char *MachineName,
116 const char *DatabaseName,
117 uint32_t access_mask,
118 struct policy_handle *handle,
119 WERROR *werror);
120 NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli,
121 TALLOC_CTX *mem_ctx,
122 struct policy_handle *scmanager_handle,
123 const char *ServiceName,
124 uint32_t access_mask,
125 struct policy_handle *handle,
126 WERROR *werror);
127 NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli,
128 TALLOC_CTX *mem_ctx,
129 struct policy_handle *handle,
130 uint8_t *query,
131 uint32_t buf_size,
132 uint32_t *bytes_needed,
133 WERROR *werror);
134 NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli,
135 TALLOC_CTX *mem_ctx,
136 struct policy_handle *handle,
137 uint32_t buf_size,
138 struct SERVICE_LOCK_STATUS *lock_status,
139 uint32_t *required_buf_size,
140 WERROR *werror);
141 NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli,
142 TALLOC_CTX *mem_ctx,
143 struct policy_handle *handle,
144 uint32_t NumArgs,
145 const char *Arguments,
146 WERROR *werror);
147 NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli,
148 TALLOC_CTX *mem_ctx,
149 struct policy_handle *handle,
150 const char *service_name,
151 const char **display_name,
152 uint32_t *display_name_length,
153 WERROR *werror);
154 NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli,
155 TALLOC_CTX *mem_ctx,
156 struct policy_handle *handle,
157 const char *service_name,
158 const char **key_name,
159 uint32_t *display_name_length,
160 WERROR *werror);
161 NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli,
162 TALLOC_CTX *mem_ctx,
163 struct policy_handle *handle,
164 uint32_t bits,
165 uint32_t bitson,
166 uint32_t immediate,
167 WERROR *werror);
168 NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli,
169 TALLOC_CTX *mem_ctx,
170 struct policy_handle *handle,
171 uint32_t type,
172 uint32_t start,
173 uint32_t error,
174 const char *binary_path,
175 const char *load_order_group,
176 uint32_t *tag_id,
177 const char *dependencies,
178 const char *service_start_name,
179 const char *password,
180 const char *display_name,
181 WERROR *werror);
182 NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli,
183 TALLOC_CTX *mem_ctx,
184 struct policy_handle *handle,
185 const char *ServiceName,
186 const char *DisplayName,
187 uint32_t desired_access,
188 uint32_t type,
189 uint32_t start_type,
190 uint32_t error_control,
191 const char *binary_path,
192 const char *LoadOrderGroupKey,
193 uint32_t *TagId,
194 const char *dependencies,
195 const char *service_start_name,
196 const char *password,
197 WERROR *werror);
198 NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli,
199 TALLOC_CTX *mem_ctx,
200 struct policy_handle *service,
201 uint32_t state,
202 struct ENUM_SERVICE_STATUS *service_status,
203 uint32_t buf_size,
204 uint32_t *bytes_needed,
205 uint32_t *services_returned,
206 WERROR *werror);
207 NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
208 TALLOC_CTX *mem_ctx,
209 struct policy_handle *handle,
210 uint32_t type,
211 uint32_t state,
212 uint32_t buf_size,
213 uint8_t *service,
214 uint32_t *bytes_needed,
215 uint32_t *services_returned,
216 uint32_t *resume_handle,
217 WERROR *werror);
218 NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli,
219 TALLOC_CTX *mem_ctx,
220 const char *MachineName,
221 const char *DatabaseName,
222 uint32_t access_mask,
223 struct policy_handle *handle,
224 WERROR *werror);
225 NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli,
226 TALLOC_CTX *mem_ctx,
227 struct policy_handle *scmanager_handle,
228 const char *ServiceName,
229 uint32_t access_mask,
230 WERROR *werror);
231 NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli,
232 TALLOC_CTX *mem_ctx,
233 struct policy_handle *handle,
234 uint8_t *query,
235 uint32_t buf_size,
236 uint32_t *bytes_needed,
237 WERROR *werror);
238 NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli,
239 TALLOC_CTX *mem_ctx,
240 struct policy_handle *handle,
241 uint32_t buf_size,
242 struct SERVICE_LOCK_STATUS *lock_status,
243 uint32_t *required_buf_size,
244 WERROR *werror);
245 NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli,
246 TALLOC_CTX *mem_ctx,
247 struct policy_handle *handle,
248 uint32_t NumArgs,
249 const char *Arguments,
250 WERROR *werror);
251 NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli,
252 TALLOC_CTX *mem_ctx,
253 struct policy_handle *handle,
254 const char *service_name,
255 const char **display_name,
256 uint32_t *display_name_length,
257 WERROR *werror);
258 NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli,
259 TALLOC_CTX *mem_ctx,
260 struct policy_handle *handle,
261 const char *service_name,
262 const char **key_name,
263 uint32_t *display_name_length,
264 WERROR *werror);
265 NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli,
266 TALLOC_CTX *mem_ctx,
267 WERROR *werror);
268 NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli,
269 TALLOC_CTX *mem_ctx,
270 WERROR *werror);
271 NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli,
272 TALLOC_CTX *mem_ctx,
273 struct policy_handle *handle,
274 uint32_t info_level,
275 uint8_t *info,
276 WERROR *werror);
277 NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli,
278 TALLOC_CTX *mem_ctx,
279 struct policy_handle *handle,
280 uint32_t info_level,
281 uint8_t *info,
282 WERROR *werror);
283 NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli,
284 TALLOC_CTX *mem_ctx,
285 struct policy_handle *handle,
286 uint32_t info_level,
287 uint8_t *buffer,
288 uint32_t buf_size,
289 uint32_t *bytes_needed,
290 WERROR *werror);
291 NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli,
292 TALLOC_CTX *mem_ctx,
293 struct policy_handle *handle,
294 uint32_t info_level,
295 uint8_t *buffer,
296 uint32_t buf_size,
297 uint32_t *bytes_needed,
298 WERROR *werror);
299 NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli,
300 TALLOC_CTX *mem_ctx,
301 struct policy_handle *handle,
302 uint32_t info_level,
303 uint8_t *buffer,
304 uint32_t buf_size,
305 uint32_t *bytes_needed,
306 WERROR *werror);
307 NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
308 TALLOC_CTX *mem_ctx,
309 struct policy_handle *scmanager,
310 uint32_t info_level,
311 uint32_t type,
312 uint32_t state,
313 uint8_t *services,
314 uint32_t buf_size,
315 uint32_t *bytes_needed,
316 uint32_t *service_returned,
317 uint32_t *resume_handle,
318 const char **group_name,
319 WERROR *werror);
320 NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli,
321 TALLOC_CTX *mem_ctx,
322 struct policy_handle *scmanager,
323 uint32_t info_level,
324 uint32_t type,
325 uint32_t state,
326 uint8_t *services,
327 uint32_t buf_size,
328 uint32_t *bytes_needed,
329 uint32_t *service_returned,
330 uint32_t *resume_handle,
331 const char **group_name,
332 WERROR *werror);
333 NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli,
334 TALLOC_CTX *mem_ctx,
335 WERROR *werror);
336 #endif /* __CLI_SVCCTL__ */