BOOL svcctl_io_q_get_display_name(const char *desc, SVCCTL_Q_GET_DISPLAY_NAME *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_get_display_name"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth)) return False; if(!smb_io_unistr2("servicename", &q_u->servicename, 1, ps, depth)) return False; if(!prs_align(ps)) return False; if(!prs_uint32("display_name_len", ps, depth, &q_u->display_name_len)) return False; return True; }
BOOL svcctl_io_q_open_service(const char *desc, SVCCTL_Q_OPEN_SERVICE *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_open_service"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth)) return False; if(!smb_io_unistr2("servicename", &q_u->servicename, 1, ps, depth)) return False; if(!prs_align(ps)) return False; if(!prs_uint32("access", ps, depth, &q_u->access)) return False; return True; }
BOOL eventlog_io_q_read_eventlog(const char *desc, EVENTLOG_Q_READ_EVENTLOG *q_u, prs_struct *ps, int depth) { if(q_u == NULL) return False; prs_debug(ps, depth, desc, "eventlog_io_q_read_eventlog"); depth++; if(!(prs_align(ps))) return False; if(!(smb_io_pol_hnd("log handle", &(q_u->handle), ps, depth))) return False; if(!(prs_uint32("read flags", ps, depth, &(q_u->flags)))) return False; if(!(prs_uint32("read offset", ps, depth, &(q_u->offset)))) return False; if(!(prs_uint32("read buf size", ps, depth, &(q_u->max_read_size)))) return False; return True; }
BOOL svcctl_io_q_set_service_sec(const char *desc, SVCCTL_Q_SET_SERVICE_SEC *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_set_service_sec"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("handle", &q_u->handle, ps, depth)) return False; if(!prs_uint32("security_flags", ps, depth, &q_u->security_flags)) return False; if (!prs_rpcbuffer("buffer", ps, depth, &q_u->buffer)) return False; if(!prs_align(ps)) return False; if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size)) return False; return True; }
BOOL svcctl_io_q_enum_services_status(const char *desc, SVCCTL_Q_ENUM_SERVICES_STATUS *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_enum_services_status"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth)) return False; if(!prs_uint32("type", ps, depth, &q_u->type)) return False; if(!prs_uint32("state", ps, depth, &q_u->state)) return False; if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size)) return False; if(!prs_pointer("resume", ps, depth, (void**)&q_u->resume, sizeof(uint32), (PRS_POINTER_CAST)prs_uint32)) return False; return True; }
/******************************************************************* reads or writes a structure. ********************************************************************/ char* samr_io_q_close(BOOL io, SAMR_Q_CLOSE *q_u, char *q, char *base, int align, int depth) { if (q_u == NULL) return NULL; DEBUG(5,("%s%04x samr_io_q_unknown_1\n", tab_depth(depth), PTR_DIFF(q, base))); depth++; q = align_offset(q, base, align); q = smb_io_pol_hnd(io, &(q_u->pol), q, base, align, depth); q = align_offset(q, base, align); return q; }
/******************************************************************* reads or writes a structure. ********************************************************************/ char* samr_io_r_open_secret(BOOL io, SAMR_R_OPEN_SECRET *r_u, char *q, char *base, int align, int depth) { if (r_u == NULL) return NULL; DEBUG(5,("%s%04x samr_io_r_open_secret\n", tab_depth(depth), PTR_DIFF(q, base))); depth++; q = align_offset(q, base, align); q = smb_io_pol_hnd(io, &(r_u->pol), q, base, align, depth); q = align_offset(q, base, align); DBG_RW_IVAL("status", depth, base, io, q, r_u->status); q += 4; return q; }
BOOL svcctl_io_q_query_status(const char *desc, SVCCTL_Q_QUERY_STATUS *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_query_status"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth)) return False; return True; }
BOOL eventlog_io_q_get_oldest_entry(const char *desc, EVENTLOG_Q_GET_OLDEST_ENTRY *q_u, prs_struct *ps, int depth) { if(q_u == NULL) return False; prs_debug(ps, depth, desc, "eventlog_io_q_get_oldest_entry"); depth++; if(!(prs_align(ps))) return False; if(!(smb_io_pol_hnd("log handle", &(q_u->handle), ps, depth))) return False; return True; }
BOOL svcctl_io_q_close_service(const char *desc, SVCCTL_Q_CLOSE_SERVICE *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_close_service"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth)) return False; return True; }
BOOL eventlog_io_q_close_eventlog(const char *desc, EVENTLOG_Q_CLOSE_EVENTLOG *q_u, prs_struct *ps, int depth) { if(q_u == NULL) return False; prs_debug(ps, depth, desc, "eventlog_io_q_close_eventlog"); depth++; if(!(prs_align(ps))) return False; if(!(smb_io_pol_hnd("log handle", &(q_u->handle), ps, depth))) return False; return True; }
BOOL svcctl_io_q_unlock_service_db(const char *desc, SVCCTL_Q_UNLOCK_SERVICE_DB *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_unlock_service_db"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("h_lock", &q_u->h_lock, ps, depth)) return False; return True; }
BOOL eventlog_io_q_get_num_records(const char *desc, EVENTLOG_Q_GET_NUM_RECORDS *q_u, prs_struct *ps, int depth) { if(q_u == NULL) return False; prs_debug(ps, depth, desc, "eventlog_io_q_get_num_records"); depth++; if(!(prs_align(ps))) return False; if(!(smb_io_pol_hnd("log handle", &(q_u->handle), ps, depth))) return False; return True; }
/******************************************************************* reads or writes a structure. ********************************************************************/ char* samr_io_q_unknown_24(BOOL io, SAMR_Q_UNKNOWN_24 *q_u, char *q, char *base, int align, int depth) { if (q_u == NULL) return NULL; DEBUG(5,("%s%04x samr_io_q_unknown_24\n", tab_depth(depth), PTR_DIFF(q, base))); depth++; q = align_offset(q, base, align); q = smb_io_pol_hnd(io, &(q_u->pol), q, base, align, depth); q = align_offset(q, base, align); DBG_RW_SVAL("unknown_0", depth, base, io, q, q_u->unknown_0); q += 2; /* 0x0015 or 0x0011 */ q = align_offset(q, base, align); return q; }
BOOL svcctl_io_q_query_service_config(const char *desc, SVCCTL_Q_QUERY_SERVICE_CONFIG *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_query_service_config"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth)) return False; if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size)) return False; return True; }
/******************************************************************* reads or writes a structure. ********************************************************************/ char* samr_io_q_open_secret(BOOL io, SAMR_Q_OPEN_SECRET *q_u, char *q, char *base, int align, int depth) { if (q_u == NULL) return NULL; DEBUG(5,("%s%04x samr_io_q_open_secret\n", tab_depth(depth), PTR_DIFF(q, base))); depth++; q = align_offset(q, base, align); q = smb_io_pol_hnd(io, &(q_u->pol), q, base, align, depth); q = align_offset(q, base, align); DBG_RW_IVAL("unknown_0", depth, base, io, q, q_u->unknown_0); q += 4; q = smb_io_dom_sid(io, &(q_u->dom_sid), q, base, align, depth); q = align_offset(q, base, align); return q; }
BOOL svcctl_io_r_lock_service_db(const char *desc, SVCCTL_R_LOCK_SERVICE_DB *r_u, prs_struct *ps, int depth) { if ( !r_u ) return False; prs_debug(ps, depth, desc, "svcctl_io_r_lock_service_db"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("lock_handle", &r_u->h_lock, ps, depth)) return False; if(!prs_werror("status", ps, depth, &r_u->status)) return False; return True; }
BOOL svcctl_io_q_control_service(const char *desc, SVCCTL_Q_CONTROL_SERVICE *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_control_service"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth)) return False; if(!prs_uint32("control", ps, depth, &q_u->control)) 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 eventlog_io_q_clear_eventlog(const char *desc, EVENTLOG_Q_CLEAR_EVENTLOG *q_u, prs_struct *ps, int depth) { if(q_u == NULL) return False; prs_debug(ps, depth, desc, "eventlog_io_q_clear_eventlog"); depth++; if(!prs_align(ps)) return False; if(!(smb_io_pol_hnd("log handle", &(q_u->handle), ps, depth))) return False; if ( !prs_unistr4("backupfile", ps, depth, &q_u->backupfile) ) return False; return True; }
BOOL eventlog_io_r_open_eventlog(const char *desc, EVENTLOG_R_OPEN_EVENTLOG *r_u, prs_struct *ps, int depth) { if(r_u == NULL) return False; prs_debug(ps, depth, desc, "eventlog_io_r_open_eventlog"); depth++; if(!prs_align(ps)) return False; if(!(smb_io_pol_hnd("log handle", &(r_u->handle), ps, depth))) return False; if(!(prs_ntstatus("status code", ps, depth, &r_u->status))) return False; return True; }
BOOL svcctl_io_q_enum_dependent_services(const char *desc, SVCCTL_Q_ENUM_DEPENDENT_SERVICES *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_enum_dependent_services"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth)) return False; if(!prs_uint32("state", ps, depth, &q_u->state)) return False; if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size)) return False; return True; }
BOOL svcctl_io_q_start_service(const char *desc, SVCCTL_Q_START_SERVICE *q_u, prs_struct *ps, int depth) { if (q_u == NULL) return False; prs_debug(ps, depth, desc, "svcctl_io_q_start_service"); depth++; if(!prs_align(ps)) return False; if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth)) return False; if(!prs_uint32("parmcount", ps, depth, &q_u->parmcount)) return False; if ( !prs_pointer("rights", ps, depth, (void**)&q_u->parameters, sizeof(UNISTR4_ARRAY), (PRS_POINTER_CAST)prs_unistr4_array) ) return False; return True; }
/******************************************************************* reads or writes a structure. ********************************************************************/ char* samr_io_q_unknown_32(BOOL io, SAMR_Q_UNKNOWN_32 *q_u, char *q, char *base, int align, int depth) { if (q_u == NULL) return NULL; DEBUG(5,("%s%04x samr_io_q_unknown_32\n", tab_depth(depth), PTR_DIFF(q, base))); depth++; q = align_offset(q, base, align); q = smb_io_pol_hnd(io, &(q_u->pol), q, base, align, depth); q = align_offset(q, base, align); q = smb_io_unihdr (io, &(q_u->hdr_mach_acct), q, base, align, depth); q = smb_io_unistr2(io, &(q_u->uni_mach_acct), q, base, align, depth); q = align_offset(q, base, align); DBG_RW_IVAL("unknown_0", depth, base, io, q, q_u->unknown_0); q += 4; DBG_RW_SVAL("unknown_1", depth, base, io, q, q_u->unknown_1); q += 2; DBG_RW_SVAL("unknown_2", depth, base, io, q, q_u->unknown_2); q += 2; return q; }
/******************************************************************* reads or writes a structure. ********************************************************************/ char* samr_io_q_lookup_rids(BOOL io, SAMR_Q_LOOKUP_RIDS *q_u, char *q, char *base, int align, int depth) { if (q_u == NULL) return NULL; DEBUG(5,("%s%04x samr_io_q_lookup_rids\n", tab_depth(depth), PTR_DIFF(q, base))); depth++; q = align_offset(q, base, align); q = smb_io_pol_hnd(io, &(q_u->pol), q, base, align, depth); q = align_offset(q, base, align); DBG_RW_IVAL("num_rids1", depth, base, io, q, q_u->num_rids1); q += 4; DBG_RW_IVAL("rid ", depth, base, io, q, q_u->rid ); q += 4; DBG_RW_IVAL("ptr ", depth, base, io, q, q_u->ptr ); q += 4; DBG_RW_IVAL("num_rids2", depth, base, io, q, q_u->num_rids2); q += 4; q = smb_io_unihdr (io, &(q_u->hdr_mach_acct), q, base, align, depth); q = smb_io_unistr2(io, &(q_u->uni_mach_acct), q, base, align, depth); q = align_offset(q, base, align); return q; }