1 #include "librpc/gen_ndr/ndr_svcctl.h"
4 NTSTATUS
rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client
*cli
,
6 struct policy_handle
*handle
,
8 NTSTATUS
rpccli_svcctl_ControlService(struct rpc_pipe_client
*cli
,
10 struct policy_handle
*handle
,
12 struct SERVICE_STATUS
*service_status
,
14 NTSTATUS
rpccli_svcctl_DeleteService(struct rpc_pipe_client
*cli
,
16 struct policy_handle
*handle
,
18 NTSTATUS
rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client
*cli
,
20 struct policy_handle
*handle
,
21 struct policy_handle
*lock
,
23 NTSTATUS
rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client
*cli
,
25 struct policy_handle
*handle
,
26 uint32_t security_flags
,
31 NTSTATUS
rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client
*cli
,
33 struct policy_handle
*handle
,
34 uint32_t security_flags
,
38 NTSTATUS
rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client
*cli
,
40 struct policy_handle
*handle
,
41 struct SERVICE_STATUS
*service_status
,
43 NTSTATUS
rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client
*cli
,
46 NTSTATUS
rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client
*cli
,
48 struct policy_handle
*lock
,
50 NTSTATUS
rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client
*cli
,
53 NTSTATUS
rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client
*cli
,
55 struct policy_handle
*handle
,
60 NTSTATUS
rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client
*cli
,
62 struct policy_handle
*handle
,
66 const char *binary_path
,
67 const char *load_order_group
,
69 const char *dependencies
,
70 const char *service_start_name
,
72 const char *display_name
,
74 NTSTATUS
rpccli_svcctl_CreateServiceW(struct rpc_pipe_client
*cli
,
76 struct policy_handle
*scmanager_handle
,
77 const char *ServiceName
,
78 const char *DisplayName
,
79 uint32_t desired_access
,
82 uint32_t error_control
,
83 const char *binary_path
,
84 const char *LoadOrderGroupKey
,
86 uint8_t *dependencies
,
87 uint32_t dependencies_size
,
88 const char *service_start_name
,
90 uint32_t password_size
,
91 struct policy_handle
*handle
,
93 NTSTATUS
rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client
*cli
,
95 struct policy_handle
*service
,
97 uint8_t *service_status
,
99 uint32_t *bytes_needed
,
100 uint32_t *services_returned
,
102 NTSTATUS
rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client
*cli
,
104 struct policy_handle
*handle
,
109 uint32_t *bytes_needed
,
110 uint32_t *services_returned
,
111 uint32_t *resume_handle
,
113 NTSTATUS
rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client
*cli
,
115 const char *MachineName
,
116 const char *DatabaseName
,
117 uint32_t access_mask
,
118 struct policy_handle
*handle
,
120 NTSTATUS
rpccli_svcctl_OpenServiceW(struct rpc_pipe_client
*cli
,
122 struct policy_handle
*scmanager_handle
,
123 const char *ServiceName
,
124 uint32_t access_mask
,
125 struct policy_handle
*handle
,
127 NTSTATUS
rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client
*cli
,
129 struct policy_handle
*handle
,
132 uint32_t *bytes_needed
,
134 NTSTATUS
rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client
*cli
,
136 struct policy_handle
*handle
,
138 struct SERVICE_LOCK_STATUS
*lock_status
,
139 uint32_t *required_buf_size
,
141 NTSTATUS
rpccli_svcctl_StartServiceW(struct rpc_pipe_client
*cli
,
143 struct policy_handle
*handle
,
145 const char *Arguments
,
147 NTSTATUS
rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client
*cli
,
149 struct policy_handle
*handle
,
150 const char *service_name
,
151 const char **display_name
,
152 uint32_t *display_name_length
,
154 NTSTATUS
rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client
*cli
,
156 struct policy_handle
*handle
,
157 const char *service_name
,
158 const char **key_name
,
159 uint32_t *display_name_length
,
161 NTSTATUS
rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client
*cli
,
163 struct policy_handle
*handle
,
168 NTSTATUS
rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client
*cli
,
170 struct policy_handle
*handle
,
174 const char *binary_path
,
175 const char *load_order_group
,
177 const char *dependencies
,
178 const char *service_start_name
,
179 const char *password
,
180 const char *display_name
,
182 NTSTATUS
rpccli_svcctl_CreateServiceA(struct rpc_pipe_client
*cli
,
184 struct policy_handle
*handle
,
185 const char *ServiceName
,
186 const char *DisplayName
,
187 uint32_t desired_access
,
190 uint32_t error_control
,
191 const char *binary_path
,
192 const char *LoadOrderGroupKey
,
194 const char *dependencies
,
195 const char *service_start_name
,
196 const char *password
,
198 NTSTATUS
rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client
*cli
,
200 struct policy_handle
*service
,
202 struct ENUM_SERVICE_STATUS
*service_status
,
204 uint32_t *bytes_needed
,
205 uint32_t *services_returned
,
207 NTSTATUS
rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client
*cli
,
209 struct policy_handle
*handle
,
214 uint32_t *bytes_needed
,
215 uint32_t *services_returned
,
216 uint32_t *resume_handle
,
218 NTSTATUS
rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client
*cli
,
220 const char *MachineName
,
221 const char *DatabaseName
,
222 uint32_t access_mask
,
223 struct policy_handle
*handle
,
225 NTSTATUS
rpccli_svcctl_OpenServiceA(struct rpc_pipe_client
*cli
,
227 struct policy_handle
*scmanager_handle
,
228 const char *ServiceName
,
229 uint32_t access_mask
,
231 NTSTATUS
rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client
*cli
,
233 struct policy_handle
*handle
,
236 uint32_t *bytes_needed
,
238 NTSTATUS
rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client
*cli
,
240 struct policy_handle
*handle
,
242 struct SERVICE_LOCK_STATUS
*lock_status
,
243 uint32_t *required_buf_size
,
245 NTSTATUS
rpccli_svcctl_StartServiceA(struct rpc_pipe_client
*cli
,
247 struct policy_handle
*handle
,
249 const char *Arguments
,
251 NTSTATUS
rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client
*cli
,
253 struct policy_handle
*handle
,
254 const char *service_name
,
255 const char **display_name
,
256 uint32_t *display_name_length
,
258 NTSTATUS
rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client
*cli
,
260 struct policy_handle
*handle
,
261 const char *service_name
,
262 const char **key_name
,
263 uint32_t *display_name_length
,
265 NTSTATUS
rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client
*cli
,
268 NTSTATUS
rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client
*cli
,
271 NTSTATUS
rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client
*cli
,
273 struct policy_handle
*handle
,
277 NTSTATUS
rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client
*cli
,
279 struct policy_handle
*handle
,
283 NTSTATUS
rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client
*cli
,
285 struct policy_handle
*handle
,
289 uint32_t *bytes_needed
,
291 NTSTATUS
rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client
*cli
,
293 struct policy_handle
*handle
,
297 uint32_t *bytes_needed
,
299 NTSTATUS
rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client
*cli
,
301 struct policy_handle
*handle
,
305 uint32_t *bytes_needed
,
307 NTSTATUS
rpccli_EnumServicesStatusExA(struct rpc_pipe_client
*cli
,
309 struct policy_handle
*scmanager
,
315 uint32_t *bytes_needed
,
316 uint32_t *service_returned
,
317 uint32_t *resume_handle
,
318 const char **group_name
,
320 NTSTATUS
rpccli_EnumServicesStatusExW(struct rpc_pipe_client
*cli
,
322 struct policy_handle
*scmanager
,
328 uint32_t *bytes_needed
,
329 uint32_t *service_returned
,
330 uint32_t *resume_handle
,
331 const char **group_name
,
333 NTSTATUS
rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client
*cli
,
336 #endif /* __CLI_SVCCTL__ */