1 #include "../librpc/gen_ndr/ndr_svcctl.h"
4 struct tevent_req
*rpccli_svcctl_CloseServiceHandle_send(TALLOC_CTX
*mem_ctx
,
5 struct tevent_context
*ev
,
6 struct rpc_pipe_client
*cli
,
7 struct policy_handle
*_handle
/* [in,out] [ref] */);
8 NTSTATUS
rpccli_svcctl_CloseServiceHandle_recv(struct tevent_req
*req
,
11 NTSTATUS
rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client
*cli
,
13 struct policy_handle
*handle
/* [in,out] [ref] */,
15 struct tevent_req
*rpccli_svcctl_ControlService_send(TALLOC_CTX
*mem_ctx
,
16 struct tevent_context
*ev
,
17 struct rpc_pipe_client
*cli
,
18 struct policy_handle
*_handle
/* [in] [ref] */,
19 enum SERVICE_CONTROL _control
/* [in] */,
20 struct SERVICE_STATUS
*_service_status
/* [out] [ref] */);
21 NTSTATUS
rpccli_svcctl_ControlService_recv(struct tevent_req
*req
,
24 NTSTATUS
rpccli_svcctl_ControlService(struct rpc_pipe_client
*cli
,
26 struct policy_handle
*handle
/* [in] [ref] */,
27 enum SERVICE_CONTROL control
/* [in] */,
28 struct SERVICE_STATUS
*service_status
/* [out] [ref] */,
30 struct tevent_req
*rpccli_svcctl_DeleteService_send(TALLOC_CTX
*mem_ctx
,
31 struct tevent_context
*ev
,
32 struct rpc_pipe_client
*cli
,
33 struct policy_handle
*_handle
/* [in] [ref] */);
34 NTSTATUS
rpccli_svcctl_DeleteService_recv(struct tevent_req
*req
,
37 NTSTATUS
rpccli_svcctl_DeleteService(struct rpc_pipe_client
*cli
,
39 struct policy_handle
*handle
/* [in] [ref] */,
41 struct tevent_req
*rpccli_svcctl_LockServiceDatabase_send(TALLOC_CTX
*mem_ctx
,
42 struct tevent_context
*ev
,
43 struct rpc_pipe_client
*cli
,
44 struct policy_handle
*_handle
/* [in] [ref] */,
45 struct policy_handle
*_lock
/* [out] [ref] */);
46 NTSTATUS
rpccli_svcctl_LockServiceDatabase_recv(struct tevent_req
*req
,
49 NTSTATUS
rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client
*cli
,
51 struct policy_handle
*handle
/* [in] [ref] */,
52 struct policy_handle
*lock
/* [out] [ref] */,
54 struct tevent_req
*rpccli_svcctl_QueryServiceObjectSecurity_send(TALLOC_CTX
*mem_ctx
,
55 struct tevent_context
*ev
,
56 struct rpc_pipe_client
*cli
,
57 struct policy_handle
*_handle
/* [in] [ref] */,
58 uint32_t _security_flags
/* [in] */,
59 uint8_t *_buffer
/* [out] [ref,size_is(offered)] */,
60 uint32_t _offered
/* [in] [range(0,0x40000)] */,
61 uint32_t *_needed
/* [out] [ref,range(0,0x40000)] */);
62 NTSTATUS
rpccli_svcctl_QueryServiceObjectSecurity_recv(struct tevent_req
*req
,
65 NTSTATUS
rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client
*cli
,
67 struct policy_handle
*handle
/* [in] [ref] */,
68 uint32_t security_flags
/* [in] */,
69 uint8_t *buffer
/* [out] [ref,size_is(offered)] */,
70 uint32_t offered
/* [in] [range(0,0x40000)] */,
71 uint32_t *needed
/* [out] [ref,range(0,0x40000)] */,
73 struct tevent_req
*rpccli_svcctl_SetServiceObjectSecurity_send(TALLOC_CTX
*mem_ctx
,
74 struct tevent_context
*ev
,
75 struct rpc_pipe_client
*cli
,
76 struct policy_handle
*_handle
/* [in] [ref] */,
77 uint32_t _security_flags
/* [in] */,
78 uint8_t *_buffer
/* [in] [ref,size_is(offered)] */,
79 uint32_t _offered
/* [in] */);
80 NTSTATUS
rpccli_svcctl_SetServiceObjectSecurity_recv(struct tevent_req
*req
,
83 NTSTATUS
rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client
*cli
,
85 struct policy_handle
*handle
/* [in] [ref] */,
86 uint32_t security_flags
/* [in] */,
87 uint8_t *buffer
/* [in] [ref,size_is(offered)] */,
88 uint32_t offered
/* [in] */,
90 struct tevent_req
*rpccli_svcctl_QueryServiceStatus_send(TALLOC_CTX
*mem_ctx
,
91 struct tevent_context
*ev
,
92 struct rpc_pipe_client
*cli
,
93 struct policy_handle
*_handle
/* [in] [ref] */,
94 struct SERVICE_STATUS
*_service_status
/* [out] [ref] */);
95 NTSTATUS
rpccli_svcctl_QueryServiceStatus_recv(struct tevent_req
*req
,
98 NTSTATUS
rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client
*cli
,
100 struct policy_handle
*handle
/* [in] [ref] */,
101 struct SERVICE_STATUS
*service_status
/* [out] [ref] */,
103 struct tevent_req
*rpccli_svcctl_SetServiceStatus_send(TALLOC_CTX
*mem_ctx
,
104 struct tevent_context
*ev
,
105 struct rpc_pipe_client
*cli
);
106 NTSTATUS
rpccli_svcctl_SetServiceStatus_recv(struct tevent_req
*req
,
109 NTSTATUS
rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client
*cli
,
112 struct tevent_req
*rpccli_svcctl_UnlockServiceDatabase_send(TALLOC_CTX
*mem_ctx
,
113 struct tevent_context
*ev
,
114 struct rpc_pipe_client
*cli
,
115 struct policy_handle
*_lock
/* [in,out] [ref] */);
116 NTSTATUS
rpccli_svcctl_UnlockServiceDatabase_recv(struct tevent_req
*req
,
119 NTSTATUS
rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client
*cli
,
121 struct policy_handle
*lock
/* [in,out] [ref] */,
123 struct tevent_req
*rpccli_svcctl_NotifyBootConfigStatus_send(TALLOC_CTX
*mem_ctx
,
124 struct tevent_context
*ev
,
125 struct rpc_pipe_client
*cli
);
126 NTSTATUS
rpccli_svcctl_NotifyBootConfigStatus_recv(struct tevent_req
*req
,
129 NTSTATUS
rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client
*cli
,
132 struct tevent_req
*rpccli_svcctl_SCSetServiceBitsW_send(TALLOC_CTX
*mem_ctx
,
133 struct tevent_context
*ev
,
134 struct rpc_pipe_client
*cli
,
135 struct policy_handle
*_handle
/* [in] [ref] */,
136 uint32_t _bits
/* [in] */,
137 uint32_t _bitson
/* [in] */,
138 uint32_t _immediate
/* [in] */);
139 NTSTATUS
rpccli_svcctl_SCSetServiceBitsW_recv(struct tevent_req
*req
,
142 NTSTATUS
rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client
*cli
,
144 struct policy_handle
*handle
/* [in] [ref] */,
145 uint32_t bits
/* [in] */,
146 uint32_t bitson
/* [in] */,
147 uint32_t immediate
/* [in] */,
149 struct tevent_req
*rpccli_svcctl_ChangeServiceConfigW_send(TALLOC_CTX
*mem_ctx
,
150 struct tevent_context
*ev
,
151 struct rpc_pipe_client
*cli
,
152 struct policy_handle
*_handle
/* [in] [ref] */,
153 uint32_t _type
/* [in] */,
154 enum svcctl_StartType _start_type
/* [in] */,
155 enum svcctl_ErrorControl _error_control
/* [in] */,
156 const char *_binary_path
/* [in] [unique,charset(UTF16)] */,
157 const char *_load_order_group
/* [in] [unique,charset(UTF16)] */,
158 uint32_t *_tag_id
/* [out] [ref] */,
159 const char *_dependencies
/* [in] [unique,charset(UTF16)] */,
160 const char *_service_start_name
/* [in] [unique,charset(UTF16)] */,
161 const char *_password
/* [in] [unique,charset(UTF16)] */,
162 const char *_display_name
/* [in] [unique,charset(UTF16)] */);
163 NTSTATUS
rpccli_svcctl_ChangeServiceConfigW_recv(struct tevent_req
*req
,
166 NTSTATUS
rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client
*cli
,
168 struct policy_handle
*handle
/* [in] [ref] */,
169 uint32_t type
/* [in] */,
170 enum svcctl_StartType start_type
/* [in] */,
171 enum svcctl_ErrorControl error_control
/* [in] */,
172 const char *binary_path
/* [in] [unique,charset(UTF16)] */,
173 const char *load_order_group
/* [in] [unique,charset(UTF16)] */,
174 uint32_t *tag_id
/* [out] [ref] */,
175 const char *dependencies
/* [in] [unique,charset(UTF16)] */,
176 const char *service_start_name
/* [in] [unique,charset(UTF16)] */,
177 const char *password
/* [in] [unique,charset(UTF16)] */,
178 const char *display_name
/* [in] [unique,charset(UTF16)] */,
180 struct tevent_req
*rpccli_svcctl_CreateServiceW_send(TALLOC_CTX
*mem_ctx
,
181 struct tevent_context
*ev
,
182 struct rpc_pipe_client
*cli
,
183 struct policy_handle
*_scmanager_handle
/* [in] [ref] */,
184 const char *_ServiceName
/* [in] [charset(UTF16)] */,
185 const char *_DisplayName
/* [in] [unique,charset(UTF16)] */,
186 uint32_t _desired_access
/* [in] */,
187 uint32_t _type
/* [in] */,
188 enum svcctl_StartType _start_type
/* [in] */,
189 enum svcctl_ErrorControl _error_control
/* [in] */,
190 const char *_binary_path
/* [in] [charset(UTF16)] */,
191 const char *_LoadOrderGroupKey
/* [in] [unique,charset(UTF16)] */,
192 uint32_t *_TagId
/* [in,out] [unique] */,
193 uint8_t *_dependencies
/* [in] [unique,size_is(dependencies_size)] */,
194 uint32_t _dependencies_size
/* [in] */,
195 const char *_service_start_name
/* [in] [unique,charset(UTF16)] */,
196 uint8_t *_password
/* [in] [unique,size_is(password_size)] */,
197 uint32_t _password_size
/* [in] */,
198 struct policy_handle
*_handle
/* [out] [ref] */);
199 NTSTATUS
rpccli_svcctl_CreateServiceW_recv(struct tevent_req
*req
,
202 NTSTATUS
rpccli_svcctl_CreateServiceW(struct rpc_pipe_client
*cli
,
204 struct policy_handle
*scmanager_handle
/* [in] [ref] */,
205 const char *ServiceName
/* [in] [charset(UTF16)] */,
206 const char *DisplayName
/* [in] [unique,charset(UTF16)] */,
207 uint32_t desired_access
/* [in] */,
208 uint32_t type
/* [in] */,
209 enum svcctl_StartType start_type
/* [in] */,
210 enum svcctl_ErrorControl error_control
/* [in] */,
211 const char *binary_path
/* [in] [charset(UTF16)] */,
212 const char *LoadOrderGroupKey
/* [in] [unique,charset(UTF16)] */,
213 uint32_t *TagId
/* [in,out] [unique] */,
214 uint8_t *dependencies
/* [in] [unique,size_is(dependencies_size)] */,
215 uint32_t dependencies_size
/* [in] */,
216 const char *service_start_name
/* [in] [unique,charset(UTF16)] */,
217 uint8_t *password
/* [in] [unique,size_is(password_size)] */,
218 uint32_t password_size
/* [in] */,
219 struct policy_handle
*handle
/* [out] [ref] */,
221 struct tevent_req
*rpccli_svcctl_EnumDependentServicesW_send(TALLOC_CTX
*mem_ctx
,
222 struct tevent_context
*ev
,
223 struct rpc_pipe_client
*cli
,
224 struct policy_handle
*_service
/* [in] [ref] */,
225 enum svcctl_ServiceState _state
/* [in] */,
226 uint8_t *_service_status
/* [out] [ref,size_is(offered)] */,
227 uint32_t _offered
/* [in] [range(0,0x40000)] */,
228 uint32_t *_needed
/* [out] [ref,range(0,0x40000)] */,
229 uint32_t *_services_returned
/* [out] [ref,range(0,0x40000)] */);
230 NTSTATUS
rpccli_svcctl_EnumDependentServicesW_recv(struct tevent_req
*req
,
233 NTSTATUS
rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client
*cli
,
235 struct policy_handle
*service
/* [in] [ref] */,
236 enum svcctl_ServiceState state
/* [in] */,
237 uint8_t *service_status
/* [out] [ref,size_is(offered)] */,
238 uint32_t offered
/* [in] [range(0,0x40000)] */,
239 uint32_t *needed
/* [out] [ref,range(0,0x40000)] */,
240 uint32_t *services_returned
/* [out] [ref,range(0,0x40000)] */,
242 struct tevent_req
*rpccli_svcctl_EnumServicesStatusW_send(TALLOC_CTX
*mem_ctx
,
243 struct tevent_context
*ev
,
244 struct rpc_pipe_client
*cli
,
245 struct policy_handle
*_handle
/* [in] [ref] */,
246 uint32_t _type
/* [in] */,
247 enum svcctl_ServiceState _state
/* [in] */,
248 uint8_t *_service
/* [out] [ref,size_is(offered)] */,
249 uint32_t _offered
/* [in] [range(0,0x40000)] */,
250 uint32_t *_needed
/* [out] [ref,range(0,0x40000)] */,
251 uint32_t *_services_returned
/* [out] [ref,range(0,0x40000)] */,
252 uint32_t *_resume_handle
/* [in,out] [unique] */);
253 NTSTATUS
rpccli_svcctl_EnumServicesStatusW_recv(struct tevent_req
*req
,
256 NTSTATUS
rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client
*cli
,
258 struct policy_handle
*handle
/* [in] [ref] */,
259 uint32_t type
/* [in] */,
260 enum svcctl_ServiceState state
/* [in] */,
261 uint8_t *service
/* [out] [ref,size_is(offered)] */,
262 uint32_t offered
/* [in] [range(0,0x40000)] */,
263 uint32_t *needed
/* [out] [ref,range(0,0x40000)] */,
264 uint32_t *services_returned
/* [out] [ref,range(0,0x40000)] */,
265 uint32_t *resume_handle
/* [in,out] [unique] */,
267 struct tevent_req
*rpccli_svcctl_OpenSCManagerW_send(TALLOC_CTX
*mem_ctx
,
268 struct tevent_context
*ev
,
269 struct rpc_pipe_client
*cli
,
270 const char *_MachineName
/* [in] [unique,charset(UTF16)] */,
271 const char *_DatabaseName
/* [in] [unique,charset(UTF16)] */,
272 uint32_t _access_mask
/* [in] */,
273 struct policy_handle
*_handle
/* [out] [ref] */);
274 NTSTATUS
rpccli_svcctl_OpenSCManagerW_recv(struct tevent_req
*req
,
277 NTSTATUS
rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client
*cli
,
279 const char *MachineName
/* [in] [unique,charset(UTF16)] */,
280 const char *DatabaseName
/* [in] [unique,charset(UTF16)] */,
281 uint32_t access_mask
/* [in] */,
282 struct policy_handle
*handle
/* [out] [ref] */,
284 struct tevent_req
*rpccli_svcctl_OpenServiceW_send(TALLOC_CTX
*mem_ctx
,
285 struct tevent_context
*ev
,
286 struct rpc_pipe_client
*cli
,
287 struct policy_handle
*_scmanager_handle
/* [in] [ref] */,
288 const char *_ServiceName
/* [in] [charset(UTF16)] */,
289 uint32_t _access_mask
/* [in] */,
290 struct policy_handle
*_handle
/* [out] [ref] */);
291 NTSTATUS
rpccli_svcctl_OpenServiceW_recv(struct tevent_req
*req
,
294 NTSTATUS
rpccli_svcctl_OpenServiceW(struct rpc_pipe_client
*cli
,
296 struct policy_handle
*scmanager_handle
/* [in] [ref] */,
297 const char *ServiceName
/* [in] [charset(UTF16)] */,
298 uint32_t access_mask
/* [in] */,
299 struct policy_handle
*handle
/* [out] [ref] */,
301 struct tevent_req
*rpccli_svcctl_QueryServiceConfigW_send(TALLOC_CTX
*mem_ctx
,
302 struct tevent_context
*ev
,
303 struct rpc_pipe_client
*cli
,
304 struct policy_handle
*_handle
/* [in] [ref] */,
305 struct QUERY_SERVICE_CONFIG
*_query
/* [out] [ref] */,
306 uint32_t _offered
/* [in] [range(0,8192)] */,
307 uint32_t *_needed
/* [out] [ref,range(0,8192)] */);
308 NTSTATUS
rpccli_svcctl_QueryServiceConfigW_recv(struct tevent_req
*req
,
311 NTSTATUS
rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client
*cli
,
313 struct policy_handle
*handle
/* [in] [ref] */,
314 struct QUERY_SERVICE_CONFIG
*query
/* [out] [ref] */,
315 uint32_t offered
/* [in] [range(0,8192)] */,
316 uint32_t *needed
/* [out] [ref,range(0,8192)] */,
318 struct tevent_req
*rpccli_svcctl_QueryServiceLockStatusW_send(TALLOC_CTX
*mem_ctx
,
319 struct tevent_context
*ev
,
320 struct rpc_pipe_client
*cli
,
321 struct policy_handle
*_handle
/* [in] [ref] */,
322 uint32_t _offered
/* [in] */,
323 struct SERVICE_LOCK_STATUS
*_lock_status
/* [out] [ref] */,
324 uint32_t *_needed
/* [out] [ref] */);
325 NTSTATUS
rpccli_svcctl_QueryServiceLockStatusW_recv(struct tevent_req
*req
,
328 NTSTATUS
rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client
*cli
,
330 struct policy_handle
*handle
/* [in] [ref] */,
331 uint32_t offered
/* [in] */,
332 struct SERVICE_LOCK_STATUS
*lock_status
/* [out] [ref] */,
333 uint32_t *needed
/* [out] [ref] */,
335 struct tevent_req
*rpccli_svcctl_StartServiceW_send(TALLOC_CTX
*mem_ctx
,
336 struct tevent_context
*ev
,
337 struct rpc_pipe_client
*cli
,
338 struct policy_handle
*_handle
/* [in] [ref] */,
339 uint32_t _NumArgs
/* [in] [range(0,SC_MAX_ARGUMENTS)] */,
340 struct svcctl_ArgumentString
*_Arguments
/* [in] [unique,size_is(NumArgs)] */);
341 NTSTATUS
rpccli_svcctl_StartServiceW_recv(struct tevent_req
*req
,
344 NTSTATUS
rpccli_svcctl_StartServiceW(struct rpc_pipe_client
*cli
,
346 struct policy_handle
*handle
/* [in] [ref] */,
347 uint32_t NumArgs
/* [in] [range(0,SC_MAX_ARGUMENTS)] */,
348 struct svcctl_ArgumentString
*Arguments
/* [in] [unique,size_is(NumArgs)] */,
350 struct tevent_req
*rpccli_svcctl_GetServiceDisplayNameW_send(TALLOC_CTX
*mem_ctx
,
351 struct tevent_context
*ev
,
352 struct rpc_pipe_client
*cli
,
353 struct policy_handle
*_handle
/* [in] [ref] */,
354 const char *_service_name
/* [in] [unique,charset(UTF16)] */,
355 const char **_display_name
/* [out] [ref,charset(UTF16)] */,
356 uint32_t *_display_name_length
/* [in,out] [unique] */);
357 NTSTATUS
rpccli_svcctl_GetServiceDisplayNameW_recv(struct tevent_req
*req
,
360 NTSTATUS
rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client
*cli
,
362 struct policy_handle
*handle
/* [in] [ref] */,
363 const char *service_name
/* [in] [unique,charset(UTF16)] */,
364 const char **display_name
/* [out] [ref,charset(UTF16)] */,
365 uint32_t *display_name_length
/* [in,out] [unique] */,
367 struct tevent_req
*rpccli_svcctl_GetServiceKeyNameW_send(TALLOC_CTX
*mem_ctx
,
368 struct tevent_context
*ev
,
369 struct rpc_pipe_client
*cli
,
370 struct policy_handle
*_handle
/* [in] [ref] */,
371 const char *_service_name
/* [in] [unique,charset(UTF16)] */,
372 const char **_key_name
/* [out] [ref,charset(UTF16)] */,
373 uint32_t *_display_name_length
/* [in,out] [unique] */);
374 NTSTATUS
rpccli_svcctl_GetServiceKeyNameW_recv(struct tevent_req
*req
,
377 NTSTATUS
rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client
*cli
,
379 struct policy_handle
*handle
/* [in] [ref] */,
380 const char *service_name
/* [in] [unique,charset(UTF16)] */,
381 const char **key_name
/* [out] [ref,charset(UTF16)] */,
382 uint32_t *display_name_length
/* [in,out] [unique] */,
384 struct tevent_req
*rpccli_svcctl_SCSetServiceBitsA_send(TALLOC_CTX
*mem_ctx
,
385 struct tevent_context
*ev
,
386 struct rpc_pipe_client
*cli
,
387 struct policy_handle
*_handle
/* [in] [ref] */,
388 uint32_t _bits
/* [in] */,
389 uint32_t _bitson
/* [in] */,
390 uint32_t _immediate
/* [in] */);
391 NTSTATUS
rpccli_svcctl_SCSetServiceBitsA_recv(struct tevent_req
*req
,
394 NTSTATUS
rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client
*cli
,
396 struct policy_handle
*handle
/* [in] [ref] */,
397 uint32_t bits
/* [in] */,
398 uint32_t bitson
/* [in] */,
399 uint32_t immediate
/* [in] */,
401 struct tevent_req
*rpccli_svcctl_ChangeServiceConfigA_send(TALLOC_CTX
*mem_ctx
,
402 struct tevent_context
*ev
,
403 struct rpc_pipe_client
*cli
,
404 struct policy_handle
*_handle
/* [in] [ref] */,
405 uint32_t _type
/* [in] */,
406 enum svcctl_StartType _start_type
/* [in] */,
407 enum svcctl_ErrorControl _error_control
/* [in] */,
408 const char *_binary_path
/* [in] [unique,charset(UTF16)] */,
409 const char *_load_order_group
/* [in] [unique,charset(UTF16)] */,
410 uint32_t *_tag_id
/* [out] [ref] */,
411 const char *_dependencies
/* [in] [unique,charset(UTF16)] */,
412 const char *_service_start_name
/* [in] [unique,charset(UTF16)] */,
413 const char *_password
/* [in] [unique,charset(UTF16)] */,
414 const char *_display_name
/* [in] [unique,charset(UTF16)] */);
415 NTSTATUS
rpccli_svcctl_ChangeServiceConfigA_recv(struct tevent_req
*req
,
418 NTSTATUS
rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client
*cli
,
420 struct policy_handle
*handle
/* [in] [ref] */,
421 uint32_t type
/* [in] */,
422 enum svcctl_StartType start_type
/* [in] */,
423 enum svcctl_ErrorControl error_control
/* [in] */,
424 const char *binary_path
/* [in] [unique,charset(UTF16)] */,
425 const char *load_order_group
/* [in] [unique,charset(UTF16)] */,
426 uint32_t *tag_id
/* [out] [ref] */,
427 const char *dependencies
/* [in] [unique,charset(UTF16)] */,
428 const char *service_start_name
/* [in] [unique,charset(UTF16)] */,
429 const char *password
/* [in] [unique,charset(UTF16)] */,
430 const char *display_name
/* [in] [unique,charset(UTF16)] */,
432 struct tevent_req
*rpccli_svcctl_CreateServiceA_send(TALLOC_CTX
*mem_ctx
,
433 struct tevent_context
*ev
,
434 struct rpc_pipe_client
*cli
,
435 struct policy_handle
*_handle
/* [in] [ref] */,
436 const char *_ServiceName
/* [in] [unique,charset(UTF16)] */,
437 const char *_DisplayName
/* [in] [unique,charset(UTF16)] */,
438 uint32_t _desired_access
/* [in] */,
439 uint32_t _type
/* [in] */,
440 enum svcctl_StartType _start_type
/* [in] */,
441 enum svcctl_ErrorControl _error_control
/* [in] */,
442 const char *_binary_path
/* [in] [unique,charset(UTF16)] */,
443 const char *_LoadOrderGroupKey
/* [in] [unique,charset(UTF16)] */,
444 uint32_t *_TagId
/* [out] [unique] */,
445 const char *_dependencies
/* [in] [unique,charset(UTF16)] */,
446 const char *_service_start_name
/* [in] [unique,charset(UTF16)] */,
447 const char *_password
/* [in] [unique,charset(UTF16)] */);
448 NTSTATUS
rpccli_svcctl_CreateServiceA_recv(struct tevent_req
*req
,
451 NTSTATUS
rpccli_svcctl_CreateServiceA(struct rpc_pipe_client
*cli
,
453 struct policy_handle
*handle
/* [in] [ref] */,
454 const char *ServiceName
/* [in] [unique,charset(UTF16)] */,
455 const char *DisplayName
/* [in] [unique,charset(UTF16)] */,
456 uint32_t desired_access
/* [in] */,
457 uint32_t type
/* [in] */,
458 enum svcctl_StartType start_type
/* [in] */,
459 enum svcctl_ErrorControl error_control
/* [in] */,
460 const char *binary_path
/* [in] [unique,charset(UTF16)] */,
461 const char *LoadOrderGroupKey
/* [in] [unique,charset(UTF16)] */,
462 uint32_t *TagId
/* [out] [unique] */,
463 const char *dependencies
/* [in] [unique,charset(UTF16)] */,
464 const char *service_start_name
/* [in] [unique,charset(UTF16)] */,
465 const char *password
/* [in] [unique,charset(UTF16)] */,
467 struct tevent_req
*rpccli_svcctl_EnumDependentServicesA_send(TALLOC_CTX
*mem_ctx
,
468 struct tevent_context
*ev
,
469 struct rpc_pipe_client
*cli
,
470 struct policy_handle
*_service
/* [in] [ref] */,
471 enum svcctl_ServiceState _state
/* [in] */,
472 struct ENUM_SERVICE_STATUSA
*_service_status
/* [out] [unique] */,
473 uint32_t _offered
/* [in] */,
474 uint32_t *_needed
/* [out] [ref] */,
475 uint32_t *_services_returned
/* [out] [ref] */);
476 NTSTATUS
rpccli_svcctl_EnumDependentServicesA_recv(struct tevent_req
*req
,
479 NTSTATUS
rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client
*cli
,
481 struct policy_handle
*service
/* [in] [ref] */,
482 enum svcctl_ServiceState state
/* [in] */,
483 struct ENUM_SERVICE_STATUSA
*service_status
/* [out] [unique] */,
484 uint32_t offered
/* [in] */,
485 uint32_t *needed
/* [out] [ref] */,
486 uint32_t *services_returned
/* [out] [ref] */,
488 struct tevent_req
*rpccli_svcctl_EnumServicesStatusA_send(TALLOC_CTX
*mem_ctx
,
489 struct tevent_context
*ev
,
490 struct rpc_pipe_client
*cli
,
491 struct policy_handle
*_handle
/* [in] [ref] */,
492 uint32_t _type
/* [in] */,
493 enum svcctl_ServiceState _state
/* [in] */,
494 uint32_t _offered
/* [in] */,
495 uint8_t *_service
/* [out] [size_is(offered)] */,
496 uint32_t *_needed
/* [out] [ref] */,
497 uint32_t *_services_returned
/* [out] [ref] */,
498 uint32_t *_resume_handle
/* [in,out] [unique] */);
499 NTSTATUS
rpccli_svcctl_EnumServicesStatusA_recv(struct tevent_req
*req
,
502 NTSTATUS
rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client
*cli
,
504 struct policy_handle
*handle
/* [in] [ref] */,
505 uint32_t type
/* [in] */,
506 enum svcctl_ServiceState state
/* [in] */,
507 uint32_t offered
/* [in] */,
508 uint8_t *service
/* [out] [size_is(offered)] */,
509 uint32_t *needed
/* [out] [ref] */,
510 uint32_t *services_returned
/* [out] [ref] */,
511 uint32_t *resume_handle
/* [in,out] [unique] */,
513 struct tevent_req
*rpccli_svcctl_OpenSCManagerA_send(TALLOC_CTX
*mem_ctx
,
514 struct tevent_context
*ev
,
515 struct rpc_pipe_client
*cli
,
516 const char *_MachineName
/* [in] [unique,charset(UTF16)] */,
517 const char *_DatabaseName
/* [in] [unique,charset(UTF16)] */,
518 uint32_t _access_mask
/* [in] */,
519 struct policy_handle
*_handle
/* [out] [ref] */);
520 NTSTATUS
rpccli_svcctl_OpenSCManagerA_recv(struct tevent_req
*req
,
523 NTSTATUS
rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client
*cli
,
525 const char *MachineName
/* [in] [unique,charset(UTF16)] */,
526 const char *DatabaseName
/* [in] [unique,charset(UTF16)] */,
527 uint32_t access_mask
/* [in] */,
528 struct policy_handle
*handle
/* [out] [ref] */,
530 struct tevent_req
*rpccli_svcctl_OpenServiceA_send(TALLOC_CTX
*mem_ctx
,
531 struct tevent_context
*ev
,
532 struct rpc_pipe_client
*cli
,
533 struct policy_handle
*_scmanager_handle
/* [in] [ref] */,
534 const char *_ServiceName
/* [in] [unique,charset(UTF16)] */,
535 uint32_t _access_mask
/* [in] */);
536 NTSTATUS
rpccli_svcctl_OpenServiceA_recv(struct tevent_req
*req
,
539 NTSTATUS
rpccli_svcctl_OpenServiceA(struct rpc_pipe_client
*cli
,
541 struct policy_handle
*scmanager_handle
/* [in] [ref] */,
542 const char *ServiceName
/* [in] [unique,charset(UTF16)] */,
543 uint32_t access_mask
/* [in] */,
545 struct tevent_req
*rpccli_svcctl_QueryServiceConfigA_send(TALLOC_CTX
*mem_ctx
,
546 struct tevent_context
*ev
,
547 struct rpc_pipe_client
*cli
,
548 struct policy_handle
*_handle
/* [in] [ref] */,
549 uint8_t *_query
/* [out] */,
550 uint32_t _offered
/* [in] */,
551 uint32_t *_needed
/* [out] [ref] */);
552 NTSTATUS
rpccli_svcctl_QueryServiceConfigA_recv(struct tevent_req
*req
,
555 NTSTATUS
rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client
*cli
,
557 struct policy_handle
*handle
/* [in] [ref] */,
558 uint8_t *query
/* [out] */,
559 uint32_t offered
/* [in] */,
560 uint32_t *needed
/* [out] [ref] */,
562 struct tevent_req
*rpccli_svcctl_QueryServiceLockStatusA_send(TALLOC_CTX
*mem_ctx
,
563 struct tevent_context
*ev
,
564 struct rpc_pipe_client
*cli
,
565 struct policy_handle
*_handle
/* [in] [ref] */,
566 uint32_t _offered
/* [in] */,
567 struct SERVICE_LOCK_STATUS
*_lock_status
/* [out] [ref] */,
568 uint32_t *_needed
/* [out] [ref] */);
569 NTSTATUS
rpccli_svcctl_QueryServiceLockStatusA_recv(struct tevent_req
*req
,
572 NTSTATUS
rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client
*cli
,
574 struct policy_handle
*handle
/* [in] [ref] */,
575 uint32_t offered
/* [in] */,
576 struct SERVICE_LOCK_STATUS
*lock_status
/* [out] [ref] */,
577 uint32_t *needed
/* [out] [ref] */,
579 struct tevent_req
*rpccli_svcctl_StartServiceA_send(TALLOC_CTX
*mem_ctx
,
580 struct tevent_context
*ev
,
581 struct rpc_pipe_client
*cli
,
582 struct policy_handle
*_handle
/* [in] [ref] */,
583 uint32_t _NumArgs
/* [in] */,
584 const char *_Arguments
/* [in] [unique,charset(UTF16)] */);
585 NTSTATUS
rpccli_svcctl_StartServiceA_recv(struct tevent_req
*req
,
588 NTSTATUS
rpccli_svcctl_StartServiceA(struct rpc_pipe_client
*cli
,
590 struct policy_handle
*handle
/* [in] [ref] */,
591 uint32_t NumArgs
/* [in] */,
592 const char *Arguments
/* [in] [unique,charset(UTF16)] */,
594 struct tevent_req
*rpccli_svcctl_GetServiceDisplayNameA_send(TALLOC_CTX
*mem_ctx
,
595 struct tevent_context
*ev
,
596 struct rpc_pipe_client
*cli
,
597 struct policy_handle
*_handle
/* [in] [ref] */,
598 const char *_service_name
/* [in] [unique,charset(UTF16)] */,
599 const char **_display_name
/* [out] [ref,charset(UTF16)] */,
600 uint32_t *_display_name_length
/* [in,out] [unique] */);
601 NTSTATUS
rpccli_svcctl_GetServiceDisplayNameA_recv(struct tevent_req
*req
,
604 NTSTATUS
rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client
*cli
,
606 struct policy_handle
*handle
/* [in] [ref] */,
607 const char *service_name
/* [in] [unique,charset(UTF16)] */,
608 const char **display_name
/* [out] [ref,charset(UTF16)] */,
609 uint32_t *display_name_length
/* [in,out] [unique] */,
611 struct tevent_req
*rpccli_svcctl_GetServiceKeyNameA_send(TALLOC_CTX
*mem_ctx
,
612 struct tevent_context
*ev
,
613 struct rpc_pipe_client
*cli
,
614 struct policy_handle
*_handle
/* [in] [ref] */,
615 const char *_service_name
/* [in] [unique,charset(UTF16)] */,
616 const char **_key_name
/* [out] [ref,charset(UTF16)] */,
617 uint32_t *_display_name_length
/* [in,out] [unique] */);
618 NTSTATUS
rpccli_svcctl_GetServiceKeyNameA_recv(struct tevent_req
*req
,
621 NTSTATUS
rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client
*cli
,
623 struct policy_handle
*handle
/* [in] [ref] */,
624 const char *service_name
/* [in] [unique,charset(UTF16)] */,
625 const char **key_name
/* [out] [ref,charset(UTF16)] */,
626 uint32_t *display_name_length
/* [in,out] [unique] */,
628 struct tevent_req
*rpccli_svcctl_GetCurrentGroupeStateW_send(TALLOC_CTX
*mem_ctx
,
629 struct tevent_context
*ev
,
630 struct rpc_pipe_client
*cli
);
631 NTSTATUS
rpccli_svcctl_GetCurrentGroupeStateW_recv(struct tevent_req
*req
,
634 NTSTATUS
rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client
*cli
,
637 struct tevent_req
*rpccli_svcctl_EnumServiceGroupW_send(TALLOC_CTX
*mem_ctx
,
638 struct tevent_context
*ev
,
639 struct rpc_pipe_client
*cli
);
640 NTSTATUS
rpccli_svcctl_EnumServiceGroupW_recv(struct tevent_req
*req
,
643 NTSTATUS
rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client
*cli
,
646 struct tevent_req
*rpccli_svcctl_ChangeServiceConfig2A_send(TALLOC_CTX
*mem_ctx
,
647 struct tevent_context
*ev
,
648 struct rpc_pipe_client
*cli
,
649 struct policy_handle
*_handle
/* [in] [ref] */,
650 uint32_t _info_level
/* [in] */,
651 uint8_t *_info
/* [in] [unique] */);
652 NTSTATUS
rpccli_svcctl_ChangeServiceConfig2A_recv(struct tevent_req
*req
,
655 NTSTATUS
rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client
*cli
,
657 struct policy_handle
*handle
/* [in] [ref] */,
658 uint32_t info_level
/* [in] */,
659 uint8_t *info
/* [in] [unique] */,
661 struct tevent_req
*rpccli_svcctl_ChangeServiceConfig2W_send(TALLOC_CTX
*mem_ctx
,
662 struct tevent_context
*ev
,
663 struct rpc_pipe_client
*cli
,
664 struct policy_handle
*_handle
/* [in] [ref] */,
665 uint32_t _info_level
/* [in] */,
666 uint8_t *_info
/* [in] [unique] */);
667 NTSTATUS
rpccli_svcctl_ChangeServiceConfig2W_recv(struct tevent_req
*req
,
670 NTSTATUS
rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client
*cli
,
672 struct policy_handle
*handle
/* [in] [ref] */,
673 uint32_t info_level
/* [in] */,
674 uint8_t *info
/* [in] [unique] */,
676 struct tevent_req
*rpccli_svcctl_QueryServiceConfig2A_send(TALLOC_CTX
*mem_ctx
,
677 struct tevent_context
*ev
,
678 struct rpc_pipe_client
*cli
,
679 struct policy_handle
*_handle
/* [in] [ref] */,
680 enum svcctl_ConfigLevel _info_level
/* [in] */,
681 uint8_t *_buffer
/* [out] */,
682 uint32_t _offered
/* [in] */,
683 uint32_t *_needed
/* [out] [ref] */);
684 NTSTATUS
rpccli_svcctl_QueryServiceConfig2A_recv(struct tevent_req
*req
,
687 NTSTATUS
rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client
*cli
,
689 struct policy_handle
*handle
/* [in] [ref] */,
690 enum svcctl_ConfigLevel info_level
/* [in] */,
691 uint8_t *buffer
/* [out] */,
692 uint32_t offered
/* [in] */,
693 uint32_t *needed
/* [out] [ref] */,
695 struct tevent_req
*rpccli_svcctl_QueryServiceConfig2W_send(TALLOC_CTX
*mem_ctx
,
696 struct tevent_context
*ev
,
697 struct rpc_pipe_client
*cli
,
698 struct policy_handle
*_handle
/* [in] [ref] */,
699 enum svcctl_ConfigLevel _info_level
/* [in] */,
700 uint8_t *_buffer
/* [out] [ref,size_is(offered)] */,
701 uint32_t _offered
/* [in] [range(0,8192)] */,
702 uint32_t *_needed
/* [out] [ref,range(0,8192)] */);
703 NTSTATUS
rpccli_svcctl_QueryServiceConfig2W_recv(struct tevent_req
*req
,
706 NTSTATUS
rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client
*cli
,
708 struct policy_handle
*handle
/* [in] [ref] */,
709 enum svcctl_ConfigLevel info_level
/* [in] */,
710 uint8_t *buffer
/* [out] [ref,size_is(offered)] */,
711 uint32_t offered
/* [in] [range(0,8192)] */,
712 uint32_t *needed
/* [out] [ref,range(0,8192)] */,
714 struct tevent_req
*rpccli_svcctl_QueryServiceStatusEx_send(TALLOC_CTX
*mem_ctx
,
715 struct tevent_context
*ev
,
716 struct rpc_pipe_client
*cli
,
717 struct policy_handle
*_handle
/* [in] [ref] */,
718 enum svcctl_StatusLevel _info_level
/* [in] */,
719 uint8_t *_buffer
/* [out] [ref,size_is(offered)] */,
720 uint32_t _offered
/* [in] [range(0,8192)] */,
721 uint32_t *_needed
/* [out] [ref,range(0,8192)] */);
722 NTSTATUS
rpccli_svcctl_QueryServiceStatusEx_recv(struct tevent_req
*req
,
725 NTSTATUS
rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client
*cli
,
727 struct policy_handle
*handle
/* [in] [ref] */,
728 enum svcctl_StatusLevel info_level
/* [in] */,
729 uint8_t *buffer
/* [out] [ref,size_is(offered)] */,
730 uint32_t offered
/* [in] [range(0,8192)] */,
731 uint32_t *needed
/* [out] [ref,range(0,8192)] */,
733 struct tevent_req
*rpccli_EnumServicesStatusExA_send(TALLOC_CTX
*mem_ctx
,
734 struct tevent_context
*ev
,
735 struct rpc_pipe_client
*cli
,
736 struct policy_handle
*_scmanager
/* [in] [ref] */,
737 uint32_t _info_level
/* [in] */,
738 uint32_t _type
/* [in] */,
739 enum svcctl_ServiceState _state
/* [in] */,
740 uint8_t *_services
/* [out] */,
741 uint32_t _offered
/* [in] */,
742 uint32_t *_needed
/* [out] [ref] */,
743 uint32_t *_service_returned
/* [out] [ref] */,
744 uint32_t *_resume_handle
/* [in,out] [unique] */,
745 const char **_group_name
/* [out] [ref,charset(UTF16)] */);
746 NTSTATUS
rpccli_EnumServicesStatusExA_recv(struct tevent_req
*req
,
749 NTSTATUS
rpccli_EnumServicesStatusExA(struct rpc_pipe_client
*cli
,
751 struct policy_handle
*scmanager
/* [in] [ref] */,
752 uint32_t info_level
/* [in] */,
753 uint32_t type
/* [in] */,
754 enum svcctl_ServiceState state
/* [in] */,
755 uint8_t *services
/* [out] */,
756 uint32_t offered
/* [in] */,
757 uint32_t *needed
/* [out] [ref] */,
758 uint32_t *service_returned
/* [out] [ref] */,
759 uint32_t *resume_handle
/* [in,out] [unique] */,
760 const char **group_name
/* [out] [ref,charset(UTF16)] */,
762 struct tevent_req
*rpccli_EnumServicesStatusExW_send(TALLOC_CTX
*mem_ctx
,
763 struct tevent_context
*ev
,
764 struct rpc_pipe_client
*cli
,
765 struct policy_handle
*_scmanager
/* [in] [ref] */,
766 uint32_t _info_level
/* [in] */,
767 uint32_t _type
/* [in] */,
768 enum svcctl_ServiceState _state
/* [in] */,
769 uint8_t *_services
/* [out] [ref,size_is(offered)] */,
770 uint32_t _offered
/* [in] [range(0,0x40000)] */,
771 uint32_t *_needed
/* [out] [ref,range(0,0x40000)] */,
772 uint32_t *_service_returned
/* [out] [ref,range(0,0x40000)] */,
773 uint32_t *_resume_handle
/* [in,out] [unique,range(0,0x40000)] */,
774 const char *_group_name
/* [in] [unique,charset(UTF16)] */);
775 NTSTATUS
rpccli_EnumServicesStatusExW_recv(struct tevent_req
*req
,
778 NTSTATUS
rpccli_EnumServicesStatusExW(struct rpc_pipe_client
*cli
,
780 struct policy_handle
*scmanager
/* [in] [ref] */,
781 uint32_t info_level
/* [in] */,
782 uint32_t type
/* [in] */,
783 enum svcctl_ServiceState state
/* [in] */,
784 uint8_t *services
/* [out] [ref,size_is(offered)] */,
785 uint32_t offered
/* [in] [range(0,0x40000)] */,
786 uint32_t *needed
/* [out] [ref,range(0,0x40000)] */,
787 uint32_t *service_returned
/* [out] [ref,range(0,0x40000)] */,
788 uint32_t *resume_handle
/* [in,out] [unique,range(0,0x40000)] */,
789 const char *group_name
/* [in] [unique,charset(UTF16)] */,
791 struct tevent_req
*rpccli_svcctl_SCSendTSMessage_send(TALLOC_CTX
*mem_ctx
,
792 struct tevent_context
*ev
,
793 struct rpc_pipe_client
*cli
);
794 NTSTATUS
rpccli_svcctl_SCSendTSMessage_recv(struct tevent_req
*req
,
797 NTSTATUS
rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client
*cli
,
800 #endif /* __CLI_SVCCTL__ */