BOOL svcctl_io_r_get_display_name(const char *desc, SVCCTL_R_GET_DISPLAY_NAME *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_get_display_name"); depth++; if(!prs_align(ps)) return False; if(!smb_io_unistr2("displayname", &r_u->displayname, 1, ps, depth)) return False; if(!prs_align(ps)) return False; if(!prs_uint32("display_name_len", ps, depth, &r_u->display_name_len)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_r_enum_dependent_services(const char *desc, SVCCTL_R_ENUM_DEPENDENT_SERVICES *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_enum_dependent_services"); depth++; if(!prs_align(ps)) return False; if (!prs_rpcbuffer("", ps, depth, &r_u->buffer)) return False; if(!prs_align(ps)) return False; if(!prs_uint32("needed", ps, depth, &r_u->needed)) return False; if(!prs_uint32("returned", ps, depth, &r_u->returned)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_r_enum_services_status(const char *desc, SVCCTL_R_ENUM_SERVICES_STATUS *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_enum_services_status"); depth++; if(!prs_align(ps)) return False; if (!prs_rpcbuffer("", ps, depth, &r_u->buffer)) return False; if(!prs_align(ps)) return False; if(!prs_uint32("needed", ps, depth, &r_u->needed)) return False; if(!prs_uint32("returned", ps, depth, &r_u->returned)) return False; if(!prs_pointer("resume", ps, depth, (void**)&r_u->resume, sizeof(uint32), (PRS_POINTER_CAST)prs_uint32)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
static BOOL svcctl_io_service_status( const char *desc, SERVICE_STATUS *status, prs_struct *ps, int depth ) { prs_debug(ps, depth, desc, "svcctl_io_service_status"); depth++; if(!prs_uint32("type", ps, depth, &status->type)) return False; if(!prs_uint32("state", ps, depth, &status->state)) return False; if(!prs_uint32("controls_accepted", ps, depth, &status->controls_accepted)) return False; if(!prs_werror("win32_exit_code", ps, depth, &status->win32_exit_code)) return False; if(!prs_uint32("service_exit_code", ps, depth, &status->service_exit_code)) return False; if(!prs_uint32("check_point", ps, depth, &status->check_point)) return False; if(!prs_uint32("wait_hint", ps, depth, &status->wait_hint)) return False; return True; }
BOOL dfs_io_r_dfs_add(const char *desc, DFS_R_DFS_ADD *r_d, prs_struct *ps, int depth) { if(r_d == NULL) return False; prs_debug(ps, depth, desc, "dfs_io_r_dfs_add"); depth++; if(!prs_werror("status", ps, depth, &r_d->status)) return False; return True; }
BOOL svcctl_io_r_start_service(const char *desc, SVCCTL_R_START_SERVICE *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_start_service"); depth++; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL dfs_io_r_dfs_get_info(const char *desc, DFS_R_DFS_GET_INFO* r_i, prs_struct* ps, int depth) { if(r_i == NULL) return False; if(!prs_uint32("level", ps, depth, &r_i->level)) return False; if(!prs_uint32("ptr_ctr", ps, depth, &r_i->ptr_ctr)) return False; if(!dfs_io_dfs_info_ctr("", &r_i->ctr, 1, r_i->level, ps, depth)) return False; if(!prs_werror("status", ps, depth, &r_i->status)) return False; return True; }
BOOL svcctl_io_r_set_service_sec(const char *desc, SVCCTL_R_SET_SERVICE_SEC *r_u, prs_struct *ps, int depth) { if ( !r_u ) return False; prs_debug(ps, depth, desc, "svcctl_io_r_set_service_sec"); depth++; if(!prs_align(ps)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_r_unlock_service_db(const char *desc, SVCCTL_R_UNLOCK_SERVICE_DB *r_u, prs_struct *ps, int depth) { if ( !r_u ) return False; prs_debug(ps, depth, desc, "svcctl_io_r_unlock_service_db"); depth++; if(!prs_align(ps)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_r_control_service(const char *desc, SVCCTL_R_CONTROL_SERVICE *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_control_service"); depth++; if(!prs_align(ps)) return False; if(!svcctl_io_service_status("service_status", &r_u->svc_status, ps, depth)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_r_query_status(const char *desc, SVCCTL_R_QUERY_STATUS *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_query_status"); depth++; if(!prs_align(ps)) return False; if(!svcctl_io_service_status("service_status", &r_u->svc_status, ps, depth)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_r_open_service(const char *desc, SVCCTL_R_OPEN_SERVICE *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_open_service"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("service_pol", &r_u->handle, ps, depth)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL dfs_io_r_dfs_enum(const char *desc, DFS_R_DFS_ENUM *q_d, prs_struct *ps, int depth) { DFS_INFO_CTR *ctr; if(q_d == NULL) return False; ctr = q_d->ctr; if(ctr == NULL) return False; prs_debug(ps, depth, desc, "dfs_io_r_dfs_enum"); depth++; if(!prs_align(ps)) return False; if(!prs_uint32("ptr_buffer", ps, depth, &q_d->ptr_buffer)) return False; if(!prs_uint32("level", ps, depth, &q_d->level)) return False; if(!prs_uint32("level2", ps, depth, &ctr->switch_value)) return False; if(!prs_uint32("ptr_num_entries", ps, depth, &q_d->ptr_num_entries)) return False; if(q_d->ptr_num_entries) if(!prs_uint32("num_entries", ps, depth, &q_d->num_entries)) return False; if(!prs_uint32("ptr_num_entries2", ps, depth, &q_d->ptr_num_entries2)) return False; if(q_d->ptr_num_entries2) if(!prs_uint32("num_entries2", ps, depth, &ctr->num_entries)) return False; if(!dfs_io_dfs_info_ctr("", ctr, q_d->num_entries, q_d->level, ps, depth)) return False; if(!smb_io_enum_hnd("resume_hnd", &q_d->reshnd, ps, depth)) return False; if(!prs_werror("status", ps, depth, &q_d->status)) return False; return True; }
BOOL svcctl_io_r_query_service_status_ex(const char *desc, SVCCTL_R_QUERY_SERVICE_STATUSEX *r_u, prs_struct *ps, int depth) { if ( !r_u ) return False; prs_debug(ps, depth, desc, "svcctl_io_r_query_service_status_ex"); depth++; if (!prs_rpcbuffer("", ps, depth, &r_u->buffer)) return False; if(!prs_align(ps)) return False; if(!prs_uint32("needed", ps, depth, &r_u->needed)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_r_query_service_config(const char *desc, SVCCTL_R_QUERY_SERVICE_CONFIG *r_u, prs_struct *ps, int depth) { if (r_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_r_query_service_config"); depth++; if(!prs_align(ps)) return False; if(!svcctl_io_service_config("config", &r_u->config, ps, depth)) return False; if(!prs_uint32("needed", ps, depth, &r_u->needed)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }