ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero(mem_ctx, struct SERVICE_STATUS);
if (r->out.service_status == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_ControlService(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.lock = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.lock == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_LockServiceDatabase(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.buffer = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.buffer == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceObjectSecurity(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero(mem_ctx, struct SERVICE_STATUS);
if (r->out.service_status == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceStatus(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.tag_id = talloc_zero(mem_ctx, uint32_t);
if (r->out.tag_id == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_ChangeServiceConfigW(cli->pipes_struct, r);
r->out.TagId = r->in.TagId;
r->out.handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_CreateServiceW(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.service_status == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.services_returned = talloc_zero(mem_ctx, uint32_t);
if (r->out.services_returned == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_EnumDependentServicesW(cli->pipes_struct, r);
r->out.resume_handle = r->in.resume_handle;
r->out.service = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.service == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.services_returned = talloc_zero(mem_ctx, uint32_t);
if (r->out.services_returned == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_EnumServicesStatusW(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_OpenSCManagerW(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_OpenServiceW(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.query = talloc_zero(mem_ctx, struct QUERY_SERVICE_CONFIG);
if (r->out.query == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceConfigW(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.lock_status = talloc_zero(mem_ctx, struct SERVICE_LOCK_STATUS);
if (r->out.lock_status == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceLockStatusW(cli->pipes_struct, r);
r->out.display_name_length = r->in.display_name_length;
r->out.display_name = talloc_zero(mem_ctx, const char *);
if (r->out.display_name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_GetServiceDisplayNameW(cli->pipes_struct, r);
r->out.display_name_length = r->in.display_name_length;
r->out.key_name = talloc_zero(mem_ctx, const char *);
if (r->out.key_name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_GetServiceKeyNameW(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.tag_id = talloc_zero(mem_ctx, uint32_t);
if (r->out.tag_id == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_ChangeServiceConfigA(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.TagId = talloc_zero(mem_ctx, uint32_t);
if (r->out.TagId == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_CreateServiceA(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.service_status = talloc_zero(mem_ctx, struct ENUM_SERVICE_STATUSA);
if (r->out.service_status == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.services_returned = talloc_zero(mem_ctx, uint32_t);
if (r->out.services_returned == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_EnumDependentServicesA(cli->pipes_struct, r);
r->out.resume_handle = r->in.resume_handle;
r->out.service = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.service == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.services_returned = talloc_zero(mem_ctx, uint32_t);
if (r->out.services_returned == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_EnumServicesStatusA(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.handle = talloc_zero(mem_ctx, struct policy_handle);
if (r->out.handle == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_OpenSCManagerA(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.query = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.query == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceConfigA(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.lock_status = talloc_zero(mem_ctx, struct SERVICE_LOCK_STATUS);
if (r->out.lock_status == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceLockStatusA(cli->pipes_struct, r);
r->out.display_name_length = r->in.display_name_length;
r->out.display_name = talloc_zero(mem_ctx, const char *);
if (r->out.display_name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_GetServiceDisplayNameA(cli->pipes_struct, r);
r->out.display_name_length = r->in.display_name_length;
r->out.key_name = talloc_zero(mem_ctx, const char *);
if (r->out.key_name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_GetServiceKeyNameA(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.buffer = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.buffer == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceConfig2A(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.buffer = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.buffer == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceConfig2W(cli->pipes_struct, r);
ZERO_STRUCT(r->out);
r->out.buffer = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.buffer == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _svcctl_QueryServiceStatusEx(cli->pipes_struct, r);
r->out.resume_handle = r->in.resume_handle;
r->out.services = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.services == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.service_returned = talloc_zero(mem_ctx, uint32_t);
if (r->out.service_returned == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.group_name = talloc_zero(mem_ctx, const char *);
if (r->out.group_name == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _EnumServicesStatusExA(cli->pipes_struct, r);
r->out.resume_handle = r->in.resume_handle;
r->out.services = talloc_zero_array(mem_ctx, uint8_t, r->in.offered);
if (r->out.services == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.needed = talloc_zero(mem_ctx, uint32_t);
if (r->out.needed == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.service_returned = talloc_zero(mem_ctx, uint32_t);
if (r->out.service_returned == NULL) {
- return NT_STATUS_NO_MEMORY;
+ return NT_STATUS_NO_MEMORY;
}
r->out.result = _EnumServicesStatusExW(cli->pipes_struct, r);