Lines Matching refs:param
333 struct svcctl_Close *param = arg; in svcctl_s_Close() local
334 ndr_hdid_t *id = (ndr_hdid_t *)¶m->handle; in svcctl_s_Close()
338 bzero(¶m->result_handle, sizeof (svcctl_handle_t)); in svcctl_s_Close()
339 param->status = ERROR_SUCCESS; in svcctl_s_Close()
349 struct svcctl_ControlService *param = arg; in svcctl_s_ControlService() local
350 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_ControlService()
358 bzero(param, sizeof (struct svcctl_ControlService)); in svcctl_s_ControlService()
359 param->status = ERROR_INVALID_HANDLE; in svcctl_s_ControlService()
366 bzero(param, sizeof (struct svcctl_ControlService)); in svcctl_s_ControlService()
367 param->status = ERROR_INVALID_HANDLE; in svcctl_s_ControlService()
371 switch (param->control) { in svcctl_s_ControlService()
384 bzero(param, sizeof (struct svcctl_ControlService)); in svcctl_s_ControlService()
385 param->status = ERROR_INVALID_PARAMETER; in svcctl_s_ControlService()
391 bzero(param, sizeof (struct svcctl_ControlService)); in svcctl_s_ControlService()
392 param->status = ERROR_SERVICE_DOES_NOT_EXIST; in svcctl_s_ControlService()
396 param->service_status.service_type = SERVICE_WIN32_SHARE_PROCESS; in svcctl_s_ControlService()
397 param->service_status.cur_state = svcctl_scm_map_status(svc->sn_state); in svcctl_s_ControlService()
398 param->service_status.ctrl_accepted = 0; in svcctl_s_ControlService()
399 param->service_status.w32_exitcode = 0; in svcctl_s_ControlService()
400 param->service_status.svc_specified_exitcode = 0; in svcctl_s_ControlService()
401 param->service_status.check_point = 0; in svcctl_s_ControlService()
402 param->service_status.wait_hint = 0; in svcctl_s_ControlService()
404 param->status = ERROR_SUCCESS; in svcctl_s_ControlService()
414 struct svcctl_DeleteService *param = arg; in svcctl_s_DeleteService() local
415 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_DeleteService()
420 param->status = ERROR_INVALID_HANDLE; in svcctl_s_DeleteService()
424 param->status = ERROR_SUCCESS; in svcctl_s_DeleteService()
434 struct svcctl_QueryServiceSecurity *param = arg; in svcctl_s_QueryServiceSecurity() local
435 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_QueryServiceSecurity()
447 sec_info = param->security_info & SMB_ALL_SECINFO; in svcctl_s_QueryServiceSecurity()
453 if (param->buf_size < SVCCTL_SECURITY_BUFSIZE) { in svcctl_s_QueryServiceSecurity()
459 param->buffer = NDR_MALLOC(mxa, SVCCTL_SECURITY_BUFSIZE); in svcctl_s_QueryServiceSecurity()
460 if (param->buffer == NULL) { in svcctl_s_QueryServiceSecurity()
465 bzero(param->buffer, sizeof (SVCCTL_SECURITY_BUFSIZE)); in svcctl_s_QueryServiceSecurity()
466 param->buf_size = SVCCTL_SECURITY_BUFSIZE; in svcctl_s_QueryServiceSecurity()
467 param->bytes_needed = 0; in svcctl_s_QueryServiceSecurity()
468 param->status = ERROR_SUCCESS; in svcctl_s_QueryServiceSecurity()
472 bzero(param, sizeof (struct svcctl_QueryServiceSecurity)); in svcctl_s_QueryServiceSecurity()
473 param->buf_size = 0; in svcctl_s_QueryServiceSecurity()
474 param->buffer = NDR_MALLOC(mxa, sizeof (uint32_t)); in svcctl_s_QueryServiceSecurity()
475 param->bytes_needed = bytes_needed; in svcctl_s_QueryServiceSecurity()
476 param->status = status; in svcctl_s_QueryServiceSecurity()
487 struct svcctl_SetServiceSecurity *param = arg; in svcctl_s_SetServiceSecurity() local
488 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_SetServiceSecurity()
493 param->status = ERROR_INVALID_HANDLE; in svcctl_s_SetServiceSecurity()
497 if ((param->security_info & SMB_ALL_SECINFO) == 0) { in svcctl_s_SetServiceSecurity()
498 param->status = ERROR_INVALID_PARAMETER; in svcctl_s_SetServiceSecurity()
502 param->status = ERROR_ACCESS_DENIED; in svcctl_s_SetServiceSecurity()
522 struct svcctl_OpenManager *param = arg; in svcctl_s_OpenManager() local
528 if ((rc == 0) || (param->desired_access & SC_MANAGER_LOCK) != 0) { in svcctl_s_OpenManager()
529 bzero(¶m->handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenManager()
530 param->status = ERROR_ACCESS_DENIED; in svcctl_s_OpenManager()
536 bcopy(id, ¶m->handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenManager()
537 param->status = ERROR_SUCCESS; in svcctl_s_OpenManager()
539 bzero(¶m->handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenManager()
540 param->status = ERROR_ACCESS_DENIED; in svcctl_s_OpenManager()
560 struct svcctl_OpenService *param = arg; in svcctl_s_OpenService() local
561 ndr_hdid_t *mgrid = (ndr_hdid_t *)¶m->manager_handle; in svcctl_s_OpenService()
566 char *svc_name = (char *)param->service_name; in svcctl_s_OpenService()
571 SVCCTL_OPENSVC_OP_UNIMPLEMENTED(param->desired_access); in svcctl_s_OpenService()
574 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenService()
575 param->status = ERROR_CALL_NOT_IMPLEMENTED; in svcctl_s_OpenService()
581 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenService()
582 param->status = ERROR_INVALID_HANDLE; in svcctl_s_OpenService()
589 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenService()
590 param->status = status; in svcctl_s_OpenService()
596 bcopy(id, ¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenService()
597 param->status = ERROR_SUCCESS; in svcctl_s_OpenService()
599 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenService()
600 param->status = ERROR_ACCESS_DENIED; in svcctl_s_OpenService()
616 struct svcctl_QueryServiceStatus *param = arg; in svcctl_s_QueryServiceStatus() local
617 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_QueryServiceStatus()
625 bzero(param, sizeof (struct svcctl_QueryServiceStatus)); in svcctl_s_QueryServiceStatus()
626 param->status = ERROR_INVALID_HANDLE; in svcctl_s_QueryServiceStatus()
633 bzero(param, sizeof (struct svcctl_QueryServiceStatus)); in svcctl_s_QueryServiceStatus()
634 param->status = ERROR_INVALID_HANDLE; in svcctl_s_QueryServiceStatus()
640 bzero(param, sizeof (struct svcctl_QueryServiceStatus)); in svcctl_s_QueryServiceStatus()
641 param->status = ERROR_SERVICE_DOES_NOT_EXIST; in svcctl_s_QueryServiceStatus()
645 param->service_status.service_type = SERVICE_WIN32_SHARE_PROCESS; in svcctl_s_QueryServiceStatus()
646 param->service_status.cur_state = svcctl_scm_map_status(svc->sn_state); in svcctl_s_QueryServiceStatus()
647 param->service_status.ctrl_accepted = 0; in svcctl_s_QueryServiceStatus()
648 param->service_status.w32_exitcode = 0; in svcctl_s_QueryServiceStatus()
649 param->service_status.svc_specified_exitcode = 0; in svcctl_s_QueryServiceStatus()
650 param->service_status.check_point = 0; in svcctl_s_QueryServiceStatus()
651 param->service_status.wait_hint = 0; in svcctl_s_QueryServiceStatus()
653 param->status = ERROR_SUCCESS; in svcctl_s_QueryServiceStatus()
665 struct svcctl_EnumDependentServices *param = arg; in svcctl_s_EnumDependentServices() local
666 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_EnumDependentServices()
693 switch (param->svc_state) { in svcctl_s_EnumDependentServices()
707 if ((input_bufsize = param->buf_size) == 0) { in svcctl_s_EnumDependentServices()
708 bzero(param, sizeof (struct svcctl_EnumDependentServices)); in svcctl_s_EnumDependentServices()
709 param->buf_size = input_bufsize; in svcctl_s_EnumDependentServices()
710 param->services = NDR_STRDUP(mxa, ""); in svcctl_s_EnumDependentServices()
711 param->bytes_needed = 1024; in svcctl_s_EnumDependentServices()
712 param->svc_num = 0; in svcctl_s_EnumDependentServices()
713 param->status = ERROR_MORE_DATA; in svcctl_s_EnumDependentServices()
717 param->services = NDR_MALLOC(mxa, input_bufsize); in svcctl_s_EnumDependentServices()
718 if (param->services == NULL) { in svcctl_s_EnumDependentServices()
723 bzero(param->services, input_bufsize); in svcctl_s_EnumDependentServices()
724 param->buf_size = input_bufsize; in svcctl_s_EnumDependentServices()
725 param->bytes_needed = 0; in svcctl_s_EnumDependentServices()
726 param->svc_num = 0; in svcctl_s_EnumDependentServices()
727 param->status = ERROR_SUCCESS; in svcctl_s_EnumDependentServices()
731 bzero(param, sizeof (struct svcctl_EnumDependentServices)); in svcctl_s_EnumDependentServices()
732 param->services = NDR_STRDUP(mxa, ""); in svcctl_s_EnumDependentServices()
733 param->status = status; in svcctl_s_EnumDependentServices()
745 struct svcctl_EnumServicesStatus *param = arg; in svcctl_s_EnumServicesStatus() local
746 ndr_hdid_t *id = (ndr_hdid_t *)¶m->manager_handle; in svcctl_s_EnumServicesStatus()
754 if (param->resume_handle != NULL) in svcctl_s_EnumServicesStatus()
755 resume_handle = *param->resume_handle; in svcctl_s_EnumServicesStatus()
769 buf_size = param->buf_size; in svcctl_s_EnumServicesStatus()
770 param->services = NDR_MALLOC(mxa, buf_size); in svcctl_s_EnumServicesStatus()
771 if (param->services == NULL) { in svcctl_s_EnumServicesStatus()
775 bzero(param->services, buf_size); in svcctl_s_EnumServicesStatus()
778 param->bytes_needed = mgr_ctx->mc_bytes_needed; in svcctl_s_EnumServicesStatus()
779 param->svc_num = 0; in svcctl_s_EnumServicesStatus()
780 if (param->resume_handle) in svcctl_s_EnumServicesStatus()
781 *param->resume_handle = 0; in svcctl_s_EnumServicesStatus()
782 param->status = ERROR_MORE_DATA; in svcctl_s_EnumServicesStatus()
786 svc_num = svcctl_scm_enum_services(mgr_ctx, param->services, in svcctl_s_EnumServicesStatus()
789 param->buf_size = buf_size; in svcctl_s_EnumServicesStatus()
790 param->svc_num = svc_num; in svcctl_s_EnumServicesStatus()
793 if (param->resume_handle != NULL) in svcctl_s_EnumServicesStatus()
794 *param->resume_handle = resume_handle; in svcctl_s_EnumServicesStatus()
795 param->bytes_needed = mgr_ctx->mc_bytes_needed; in svcctl_s_EnumServicesStatus()
796 param->status = ERROR_MORE_DATA; in svcctl_s_EnumServicesStatus()
798 if (param->resume_handle) in svcctl_s_EnumServicesStatus()
799 *param->resume_handle = 0; in svcctl_s_EnumServicesStatus()
800 param->bytes_needed = 0; in svcctl_s_EnumServicesStatus()
801 param->status = ERROR_SUCCESS; in svcctl_s_EnumServicesStatus()
806 bzero(param, sizeof (struct svcctl_EnumServicesStatus)); in svcctl_s_EnumServicesStatus()
807 param->services = NDR_STRDUP(mxa, ""); in svcctl_s_EnumServicesStatus()
808 param->status = status; in svcctl_s_EnumServicesStatus()
822 struct svcctl_QueryServiceConfig *param = arg; in svcctl_s_QueryServiceConfig() local
823 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_QueryServiceConfig()
833 bzero(param, sizeof (struct svcctl_QueryServiceConfig)); in svcctl_s_QueryServiceConfig()
834 param->status = ERROR_INVALID_HANDLE; in svcctl_s_QueryServiceConfig()
841 bzero(param, sizeof (struct svcctl_QueryServiceConfig)); in svcctl_s_QueryServiceConfig()
842 param->status = ERROR_INVALID_HANDLE; in svcctl_s_QueryServiceConfig()
848 bzero(param, sizeof (struct svcctl_QueryServiceConfig)); in svcctl_s_QueryServiceConfig()
849 param->status = ERROR_SERVICE_DOES_NOT_EXIST; in svcctl_s_QueryServiceConfig()
853 cfg = ¶m->service_cfg; in svcctl_s_QueryServiceConfig()
871 if (param->buf_size < bytes_needed) { in svcctl_s_QueryServiceConfig()
872 bzero(param, sizeof (struct svcctl_QueryServiceConfig)); in svcctl_s_QueryServiceConfig()
873 param->cfg_bytes = bytes_needed; in svcctl_s_QueryServiceConfig()
874 param->status = ERROR_INSUFFICIENT_BUFFER; in svcctl_s_QueryServiceConfig()
878 param->cfg_bytes = bytes_needed; in svcctl_s_QueryServiceConfig()
879 param->status = ERROR_SUCCESS; in svcctl_s_QueryServiceConfig()
889 struct svcctl_StartService *param = arg; in svcctl_s_StartService() local
890 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_StartService()
898 param->status = ERROR_INVALID_HANDLE; in svcctl_s_StartService()
905 param->status = ERROR_INVALID_HANDLE; in svcctl_s_StartService()
911 param->status = ERROR_SERVICE_DOES_NOT_EXIST; in svcctl_s_StartService()
913 param->status = ERROR_SERVICE_ALREADY_RUNNING; in svcctl_s_StartService()
929 struct svcctl_GetServiceDisplayNameW *param = arg; in svcctl_s_GetServiceDisplayNameW() local
930 ndr_hdid_t *id = (ndr_hdid_t *)¶m->manager_handle; in svcctl_s_GetServiceDisplayNameW()
937 bzero(param, sizeof (struct svcctl_GetServiceDisplayNameW)); in svcctl_s_GetServiceDisplayNameW()
938 param->display_name = NDR_STRDUP(mxa, ""); in svcctl_s_GetServiceDisplayNameW()
939 param->status = ERROR_INVALID_HANDLE; in svcctl_s_GetServiceDisplayNameW()
944 svc = svcctl_scm_find_service(mgr_ctx, (char *)param->service_name); in svcctl_s_GetServiceDisplayNameW()
946 bzero(param, sizeof (struct svcctl_GetServiceDisplayNameW)); in svcctl_s_GetServiceDisplayNameW()
947 param->display_name = NDR_STRDUP(mxa, ""); in svcctl_s_GetServiceDisplayNameW()
948 param->status = ERROR_SERVICE_DOES_NOT_EXIST; in svcctl_s_GetServiceDisplayNameW()
952 param->display_name = NDR_STRDUP(mxa, svc->sn_fmri); in svcctl_s_GetServiceDisplayNameW()
953 if (param->display_name == NULL) { in svcctl_s_GetServiceDisplayNameW()
954 bzero(param, sizeof (struct svcctl_GetServiceDisplayNameW)); in svcctl_s_GetServiceDisplayNameW()
955 param->display_name = NDR_STRDUP(mxa, ""); in svcctl_s_GetServiceDisplayNameW()
956 param->status = ERROR_NOT_ENOUGH_MEMORY; in svcctl_s_GetServiceDisplayNameW()
960 param->buf_size = strlen(svc->sn_fmri); in svcctl_s_GetServiceDisplayNameW()
961 param->status = ERROR_SUCCESS; in svcctl_s_GetServiceDisplayNameW()
976 struct svcctl_GetServiceKeyNameW *param = arg; in svcctl_s_GetServiceKeyNameW() local
977 ndr_hdid_t *id = (ndr_hdid_t *)¶m->manager_handle; in svcctl_s_GetServiceKeyNameW()
984 bzero(param, sizeof (struct svcctl_GetServiceKeyNameW)); in svcctl_s_GetServiceKeyNameW()
985 param->key_name = NDR_STRDUP(mxa, ""); in svcctl_s_GetServiceKeyNameW()
986 param->status = ERROR_INVALID_HANDLE; in svcctl_s_GetServiceKeyNameW()
991 svc = svcctl_scm_find_service(mgr_ctx, (char *)param->service_name); in svcctl_s_GetServiceKeyNameW()
993 bzero(param, sizeof (struct svcctl_GetServiceKeyNameW)); in svcctl_s_GetServiceKeyNameW()
994 param->key_name = NDR_STRDUP(mxa, ""); in svcctl_s_GetServiceKeyNameW()
995 param->status = ERROR_SERVICE_DOES_NOT_EXIST; in svcctl_s_GetServiceKeyNameW()
999 param->key_name = NDR_STRDUP(mxa, svc->sn_name); in svcctl_s_GetServiceKeyNameW()
1000 if (param->key_name == NULL) { in svcctl_s_GetServiceKeyNameW()
1001 bzero(param, sizeof (struct svcctl_GetServiceKeyNameW)); in svcctl_s_GetServiceKeyNameW()
1002 param->key_name = NDR_STRDUP(mxa, ""); in svcctl_s_GetServiceKeyNameW()
1003 param->status = ERROR_NOT_ENOUGH_MEMORY; in svcctl_s_GetServiceKeyNameW()
1007 param->buf_size = strlen(svc->sn_name); in svcctl_s_GetServiceKeyNameW()
1008 param->status = ERROR_SUCCESS; in svcctl_s_GetServiceKeyNameW()
1028 struct svcctl_OpenSCManagerA *param = arg; in svcctl_s_OpenSCManagerA() local
1034 if ((rc == 0) || (param->desired_access & SC_MANAGER_LOCK) != 0) { in svcctl_s_OpenSCManagerA()
1035 bzero(¶m->handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenSCManagerA()
1036 param->status = ERROR_ACCESS_DENIED; in svcctl_s_OpenSCManagerA()
1042 bcopy(id, ¶m->handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenSCManagerA()
1043 param->status = ERROR_SUCCESS; in svcctl_s_OpenSCManagerA()
1045 bzero(¶m->handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenSCManagerA()
1046 param->status = ERROR_ACCESS_DENIED; in svcctl_s_OpenSCManagerA()
1066 struct svcctl_OpenServiceA *param = arg; in svcctl_s_OpenServiceA() local
1067 ndr_hdid_t *mgrid = (ndr_hdid_t *)¶m->manager_handle; in svcctl_s_OpenServiceA()
1072 char *svc_name = (char *)param->service_name->value; in svcctl_s_OpenServiceA()
1077 SVCCTL_OPENSVC_OP_UNIMPLEMENTED(param->desired_access); in svcctl_s_OpenServiceA()
1080 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenServiceA()
1081 param->status = ERROR_CALL_NOT_IMPLEMENTED; in svcctl_s_OpenServiceA()
1087 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenServiceA()
1088 param->status = ERROR_INVALID_HANDLE; in svcctl_s_OpenServiceA()
1095 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenServiceA()
1096 param->status = status; in svcctl_s_OpenServiceA()
1102 bcopy(id, ¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenServiceA()
1103 param->status = ERROR_SUCCESS; in svcctl_s_OpenServiceA()
1105 bzero(¶m->service_handle, sizeof (svcctl_handle_t)); in svcctl_s_OpenServiceA()
1106 param->status = ERROR_ACCESS_DENIED; in svcctl_s_OpenServiceA()
1120 struct svcctl_EnumServicesStatusA *param = arg; in svcctl_s_EnumServicesStatusA() local
1121 ndr_hdid_t *id = (ndr_hdid_t *)¶m->manager_handle; in svcctl_s_EnumServicesStatusA()
1129 buf_size = param->buf_size; in svcctl_s_EnumServicesStatusA()
1130 if (param->resume_handle != NULL) in svcctl_s_EnumServicesStatusA()
1131 resume_handle = *param->resume_handle; in svcctl_s_EnumServicesStatusA()
1145 param->services = NDR_MALLOC(mxa, buf_size); in svcctl_s_EnumServicesStatusA()
1146 if (param->services == NULL) { in svcctl_s_EnumServicesStatusA()
1150 bzero(param->services, buf_size); in svcctl_s_EnumServicesStatusA()
1152 svc_num = svcctl_scm_enum_services(mgr_ctx, param->services, in svcctl_s_EnumServicesStatusA()
1155 param->buf_size = buf_size; in svcctl_s_EnumServicesStatusA()
1156 param->svc_num = svc_num; in svcctl_s_EnumServicesStatusA()
1159 if (param->resume_handle != NULL) in svcctl_s_EnumServicesStatusA()
1160 *param->resume_handle = resume_handle; in svcctl_s_EnumServicesStatusA()
1161 param->bytes_needed = mgr_ctx->mc_bytes_needed; in svcctl_s_EnumServicesStatusA()
1162 param->status = ERROR_MORE_DATA; in svcctl_s_EnumServicesStatusA()
1164 if (param->resume_handle) in svcctl_s_EnumServicesStatusA()
1165 *param->resume_handle = 0; in svcctl_s_EnumServicesStatusA()
1166 param->bytes_needed = 0; in svcctl_s_EnumServicesStatusA()
1167 param->status = ERROR_SUCCESS; in svcctl_s_EnumServicesStatusA()
1172 bzero(param, sizeof (struct svcctl_EnumServicesStatusA)); in svcctl_s_EnumServicesStatusA()
1173 param->services = NDR_STRDUP(mxa, ""); in svcctl_s_EnumServicesStatusA()
1174 param->status = status; in svcctl_s_EnumServicesStatusA()
1190 struct svcctl_QueryServiceConfig2W *param = arg; in svcctl_s_QueryServiceConfig2W() local
1191 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_QueryServiceConfig2W()
1204 bzero(param, sizeof (struct svcctl_QueryServiceConfig2W)); in svcctl_s_QueryServiceConfig2W()
1205 param->buffer = NDR_STRDUP(mxa, ""); in svcctl_s_QueryServiceConfig2W()
1206 param->status = ERROR_INVALID_HANDLE; in svcctl_s_QueryServiceConfig2W()
1210 input_bufsize = param->buf_size; in svcctl_s_QueryServiceConfig2W()
1211 param->buffer = NDR_MALLOC(mxa, input_bufsize); in svcctl_s_QueryServiceConfig2W()
1212 if (param->buffer == NULL) { in svcctl_s_QueryServiceConfig2W()
1213 bzero(param, sizeof (struct svcctl_QueryServiceConfig2W)); in svcctl_s_QueryServiceConfig2W()
1214 param->buffer = NDR_STRDUP(mxa, ""); in svcctl_s_QueryServiceConfig2W()
1215 param->status = ERROR_NOT_ENOUGH_MEMORY; in svcctl_s_QueryServiceConfig2W()
1218 bzero(param->buffer, input_bufsize); in svcctl_s_QueryServiceConfig2W()
1220 svc_rsp.svc_buf = param->buffer; in svcctl_s_QueryServiceConfig2W()
1222 switch (param->info_level) { in svcctl_s_QueryServiceConfig2W()
1227 param->status = ERROR_INVALID_HANDLE; in svcctl_s_QueryServiceConfig2W()
1241 param->bytes_needed = bytes_needed; in svcctl_s_QueryServiceConfig2W()
1242 param->status = ERROR_INSUFFICIENT_BUFFER; in svcctl_s_QueryServiceConfig2W()
1249 wide_desc = (smb_wchar_t *)¶m->buffer[offset]; in svcctl_s_QueryServiceConfig2W()
1253 param->bytes_needed = offset; in svcctl_s_QueryServiceConfig2W()
1260 param->bytes_needed = bytes_needed; in svcctl_s_QueryServiceConfig2W()
1261 param->status = ERROR_INSUFFICIENT_BUFFER; in svcctl_s_QueryServiceConfig2W()
1264 param->bytes_needed = bytes_needed; in svcctl_s_QueryServiceConfig2W()
1269 param->bytes_needed = sizeof (svc_delayed_auto_start_t); in svcctl_s_QueryServiceConfig2W()
1274 param->bytes_needed = sizeof (svc_config_failure_action_t); in svcctl_s_QueryServiceConfig2W()
1288 bzero(param, sizeof (struct svcctl_QueryServiceConfig2W)); in svcctl_s_QueryServiceConfig2W()
1289 param->buffer = NDR_STRDUP(mxa, ""); in svcctl_s_QueryServiceConfig2W()
1290 param->status = status; in svcctl_s_QueryServiceConfig2W()
1294 param->status = ERROR_SUCCESS; in svcctl_s_QueryServiceConfig2W()
1304 struct svcctl_QueryServiceStatusEx *param = arg; in svcctl_s_QueryServiceStatusEx() local
1305 ndr_hdid_t *id = (ndr_hdid_t *)¶m->service_handle; in svcctl_s_QueryServiceStatusEx()
1328 if (param->info_level != SC_STATUS_PROCESS_INFO) { in svcctl_s_QueryServiceStatusEx()
1335 if ((input_bufsize = param->buf_size) < bytes_needed) { in svcctl_s_QueryServiceStatusEx()
1336 bzero(param, sizeof (struct svcctl_QueryServiceStatusEx)); in svcctl_s_QueryServiceStatusEx()
1337 param->buf_size = input_bufsize; in svcctl_s_QueryServiceStatusEx()
1338 param->buffer = NDR_STRDUP(mxa, ""); in svcctl_s_QueryServiceStatusEx()
1339 param->bytes_needed = bytes_needed; in svcctl_s_QueryServiceStatusEx()
1340 param->status = ERROR_INSUFFICIENT_BUFFER; in svcctl_s_QueryServiceStatusEx()
1365 param->buffer = (uint8_t *)svc_status_ex; in svcctl_s_QueryServiceStatusEx()
1366 param->buf_size = input_bufsize; in svcctl_s_QueryServiceStatusEx()
1367 param->bytes_needed = bytes_needed; in svcctl_s_QueryServiceStatusEx()
1368 param->status = ERROR_SUCCESS; in svcctl_s_QueryServiceStatusEx()
1372 bzero(param, sizeof (struct svcctl_QueryServiceStatusEx)); in svcctl_s_QueryServiceStatusEx()
1373 param->buffer = NDR_STRDUP(mxa, ""); in svcctl_s_QueryServiceStatusEx()
1374 param->status = status; in svcctl_s_QueryServiceStatusEx()