2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Gerald (Jerry) Carter 2005.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #define DBGC_CLASS DBGC_RPC_PARSE
26 /*******************************************************************
27 ********************************************************************/
29 static BOOL svcctl_io_service_status( const char *desc, SERVICE_STATUS *status, prs_struct *ps, int depth )
32 prs_debug(ps, depth, desc, "svcctl_io_service_status");
35 if(!prs_uint32("type", ps, depth, &status->type))
38 if(!prs_uint32("state", ps, depth, &status->state))
41 if(!prs_uint32("controls_accepted", ps, depth, &status->controls_accepted))
44 if(!prs_werror("win32_exit_code", ps, depth, &status->win32_exit_code))
47 if(!prs_uint32("service_exit_code", ps, depth, &status->service_exit_code))
50 if(!prs_uint32("check_point", ps, depth, &status->check_point))
53 if(!prs_uint32("wait_hint", ps, depth, &status->wait_hint))
59 /*******************************************************************
60 ********************************************************************/
62 static BOOL svcctl_io_service_config( const char *desc, SERVICE_CONFIG *config, prs_struct *ps, int depth )
65 prs_debug(ps, depth, desc, "svcctl_io_service_config");
68 if(!prs_uint32("service_type", ps, depth, &config->service_type))
70 if(!prs_uint32("start_type", ps, depth, &config->start_type))
72 if(!prs_uint32("error_control", ps, depth, &config->error_control))
75 if (!prs_io_unistr2_p("", ps, depth, &config->executablepath))
77 if (!prs_io_unistr2_p("", ps, depth, &config->loadordergroup))
80 if(!prs_uint32("tag_id", ps, depth, &config->tag_id))
83 if (!prs_io_unistr2_p("", ps, depth, &config->dependencies))
85 if (!prs_io_unistr2_p("", ps, depth, &config->startname))
87 if (!prs_io_unistr2_p("", ps, depth, &config->displayname))
90 if (!prs_io_unistr2("", ps, depth, config->executablepath))
92 if (!prs_io_unistr2("", ps, depth, config->loadordergroup))
94 if (!prs_io_unistr2("", ps, depth, config->dependencies))
96 if (!prs_io_unistr2("", ps, depth, config->startname))
98 if (!prs_io_unistr2("", ps, depth, config->displayname))
104 /*******************************************************************
105 ********************************************************************/
107 BOOL svcctl_io_enum_services_status( const char *desc, ENUM_SERVICES_STATUS *enum_status, RPC_BUFFER *buffer, int depth )
109 prs_struct *ps=&buffer->prs;
111 prs_debug(ps, depth, desc, "svcctl_io_enum_services_status");
114 if ( !smb_io_relstr("servicename", buffer, depth, &enum_status->servicename) )
116 if ( !smb_io_relstr("displayname", buffer, depth, &enum_status->displayname) )
119 if ( !svcctl_io_service_status("svc_status", &enum_status->status, ps, depth) )
125 /*******************************************************************
126 ********************************************************************/
128 BOOL svcctl_io_service_status_process( const char *desc, SERVICE_STATUS_PROCESS *status, RPC_BUFFER *buffer, int depth )
130 prs_struct *ps=&buffer->prs;
132 prs_debug(ps, depth, desc, "svcctl_io_service_status_process");
135 if ( !svcctl_io_service_status("status", &status->status, ps, depth) )
140 if(!prs_uint32("process_id", ps, depth, &status->process_id))
142 if(!prs_uint32("service_flags", ps, depth, &status->service_flags))
148 /*******************************************************************
149 ********************************************************************/
151 uint32 svcctl_sizeof_enum_services_status( ENUM_SERVICES_STATUS *status )
155 size += size_of_relative_string( &status->servicename );
156 size += size_of_relative_string( &status->displayname );
157 size += sizeof(SERVICE_STATUS);
162 /********************************************************************
163 ********************************************************************/
165 static uint32 sizeof_unistr2( UNISTR2 *string )
172 size = sizeof(uint32) * 3; /* length fields */
173 size += 2 * string->uni_max_len; /* string data */
174 size += size % 4; /* alignment */
179 /********************************************************************
180 ********************************************************************/
182 uint32 svcctl_sizeof_service_config( SERVICE_CONFIG *config )
186 size = sizeof(uint32) * 4; /* static uint32 fields */
188 /* now add the UNISTR2 + pointer sizes */
190 size += sizeof(uint32) * sizeof_unistr2(config->executablepath);
191 size += sizeof(uint32) * sizeof_unistr2(config->loadordergroup);
192 size += sizeof(uint32) * sizeof_unistr2(config->dependencies);
193 size += sizeof(uint32) * sizeof_unistr2(config->startname);
194 size += sizeof(uint32) * sizeof_unistr2(config->displayname);
201 /*******************************************************************
202 ********************************************************************/
204 BOOL svcctl_io_q_close_service(const char *desc, SVCCTL_Q_CLOSE_SERVICE *q_u, prs_struct *ps, int depth)
210 prs_debug(ps, depth, desc, "svcctl_io_q_close_service");
216 if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth))
223 /*******************************************************************
224 ********************************************************************/
226 BOOL svcctl_io_r_close_service(const char *desc, SVCCTL_R_CLOSE_SERVICE *r_u, prs_struct *ps, int depth)
231 prs_debug(ps, depth, desc, "svcctl_io_r_close_service");
237 if(!smb_io_pol_hnd("pol_handle", &r_u->handle, ps, depth))
240 if(!prs_werror("status", ps, depth, &r_u->status))
246 /*******************************************************************
247 ********************************************************************/
249 BOOL svcctl_io_q_open_scmanager(const char *desc, SVCCTL_Q_OPEN_SCMANAGER *q_u, prs_struct *ps, int depth)
254 prs_debug(ps, depth, desc, "svcctl_io_q_open_scmanager");
260 if(!prs_pointer("servername", ps, depth, (void**)&q_u->servername, sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2))
265 if(!prs_pointer("database", ps, depth, (void**)&q_u->database, sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2))
270 if(!prs_uint32("access", ps, depth, &q_u->access))
276 /*******************************************************************
277 ********************************************************************/
279 BOOL svcctl_io_r_open_scmanager(const char *desc, SVCCTL_R_OPEN_SCMANAGER *r_u, prs_struct *ps, int depth)
284 prs_debug(ps, depth, desc, "svcctl_io_r_open_scmanager");
290 if(!smb_io_pol_hnd("scm_pol", &r_u->handle, ps, depth))
293 if(!prs_werror("status", ps, depth, &r_u->status))
299 /*******************************************************************
300 ********************************************************************/
302 BOOL svcctl_io_q_get_display_name(const char *desc, SVCCTL_Q_GET_DISPLAY_NAME *q_u, prs_struct *ps, int depth)
307 prs_debug(ps, depth, desc, "svcctl_io_q_get_display_name");
313 if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth))
316 if(!smb_io_unistr2("servicename", &q_u->servicename, 1, ps, depth))
322 if(!prs_uint32("display_name_len", ps, depth, &q_u->display_name_len))
328 /*******************************************************************
329 ********************************************************************/
331 BOOL init_svcctl_r_get_display_name( SVCCTL_R_GET_DISPLAY_NAME *r_u, const char *displayname )
333 r_u->display_name_len = strlen(displayname);
334 init_unistr2( &r_u->displayname, displayname, UNI_STR_TERMINATE );
339 /*******************************************************************
340 ********************************************************************/
342 BOOL svcctl_io_r_get_display_name(const char *desc, SVCCTL_R_GET_DISPLAY_NAME *r_u, prs_struct *ps, int depth)
347 prs_debug(ps, depth, desc, "svcctl_io_r_get_display_name");
354 if(!smb_io_unistr2("displayname", &r_u->displayname, 1, ps, depth))
360 if(!prs_uint32("display_name_len", ps, depth, &r_u->display_name_len))
363 if(!prs_werror("status", ps, depth, &r_u->status))
370 /*******************************************************************
371 ********************************************************************/
373 BOOL svcctl_io_q_open_service(const char *desc, SVCCTL_Q_OPEN_SERVICE *q_u, prs_struct *ps, int depth)
378 prs_debug(ps, depth, desc, "svcctl_io_q_open_service");
384 if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth))
387 if(!smb_io_unistr2("servicename", &q_u->servicename, 1, ps, depth))
393 if(!prs_uint32("access", ps, depth, &q_u->access))
399 /*******************************************************************
400 ********************************************************************/
402 BOOL svcctl_io_r_open_service(const char *desc, SVCCTL_R_OPEN_SERVICE *r_u, prs_struct *ps, int depth)
407 prs_debug(ps, depth, desc, "svcctl_io_r_open_service");
413 if(!smb_io_pol_hnd("service_pol", &r_u->handle, ps, depth))
416 if(!prs_werror("status", ps, depth, &r_u->status))
422 /*******************************************************************
423 ********************************************************************/
425 BOOL svcctl_io_q_query_status(const char *desc, SVCCTL_Q_QUERY_STATUS *q_u, prs_struct *ps, int depth)
430 prs_debug(ps, depth, desc, "svcctl_io_q_query_status");
436 if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
442 /*******************************************************************
443 ********************************************************************/
445 BOOL svcctl_io_r_query_status(const char *desc, SVCCTL_R_QUERY_STATUS *r_u, prs_struct *ps, int depth)
450 prs_debug(ps, depth, desc, "svcctl_io_r_query_status");
456 if(!svcctl_io_service_status("service_status", &r_u->svc_status, ps, depth))
459 if(!prs_werror("status", ps, depth, &r_u->status))
465 /*******************************************************************
466 ********************************************************************/
468 BOOL svcctl_io_q_enum_services_status(const char *desc, SVCCTL_Q_ENUM_SERVICES_STATUS *q_u, prs_struct *ps, int depth)
473 prs_debug(ps, depth, desc, "svcctl_io_q_enum_services_status");
479 if(!smb_io_pol_hnd("scm_pol", &q_u->handle, ps, depth))
482 if(!prs_uint32("type", ps, depth, &q_u->type))
484 if(!prs_uint32("state", ps, depth, &q_u->state))
486 if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size))
489 if(!prs_pointer("resume", ps, depth, (void**)&q_u->resume, sizeof(uint32), (PRS_POINTER_CAST)prs_uint32))
495 /*******************************************************************
496 ********************************************************************/
498 BOOL svcctl_io_r_enum_services_status(const char *desc, SVCCTL_R_ENUM_SERVICES_STATUS *r_u, prs_struct *ps, int depth)
503 prs_debug(ps, depth, desc, "svcctl_io_r_enum_services_status");
509 if (!prs_rpcbuffer("", ps, depth, &r_u->buffer))
515 if(!prs_uint32("needed", ps, depth, &r_u->needed))
517 if(!prs_uint32("returned", ps, depth, &r_u->returned))
520 if(!prs_pointer("resume", ps, depth, (void**)&r_u->resume, sizeof(uint32), (PRS_POINTER_CAST)prs_uint32))
523 if(!prs_werror("status", ps, depth, &r_u->status))
529 /*******************************************************************
530 ********************************************************************/
532 BOOL svcctl_io_q_start_service(const char *desc, SVCCTL_Q_START_SERVICE *q_u, prs_struct *ps, int depth)
537 prs_debug(ps, depth, desc, "svcctl_io_q_start_service");
543 if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
546 if(!prs_uint32("parmcount", ps, depth, &q_u->parmcount))
549 if ( !prs_pointer("rights", ps, depth, (void**)&q_u->parameters, sizeof(UNISTR4_ARRAY), (PRS_POINTER_CAST)prs_unistr4_array) )
555 /*******************************************************************
556 ********************************************************************/
558 BOOL svcctl_io_r_start_service(const char *desc, SVCCTL_R_START_SERVICE *r_u, prs_struct *ps, int depth)
563 prs_debug(ps, depth, desc, "svcctl_io_r_start_service");
566 if(!prs_werror("status", ps, depth, &r_u->status))
573 /*******************************************************************
574 ********************************************************************/
576 BOOL svcctl_io_q_enum_dependent_services(const char *desc, SVCCTL_Q_ENUM_DEPENDENT_SERVICES *q_u, prs_struct *ps, int depth)
581 prs_debug(ps, depth, desc, "svcctl_io_q_enum_dependent_services");
587 if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
590 if(!prs_uint32("state", ps, depth, &q_u->state))
592 if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size))
598 /*******************************************************************
599 ********************************************************************/
601 BOOL svcctl_io_r_enum_dependent_services(const char *desc, SVCCTL_R_ENUM_DEPENDENT_SERVICES *r_u, prs_struct *ps, int depth)
606 prs_debug(ps, depth, desc, "svcctl_io_r_enum_dependent_services");
612 if (!prs_rpcbuffer("", ps, depth, &r_u->buffer))
618 if(!prs_uint32("needed", ps, depth, &r_u->needed))
620 if(!prs_uint32("returned", ps, depth, &r_u->returned))
623 if(!prs_werror("status", ps, depth, &r_u->status))
629 /*******************************************************************
630 ********************************************************************/
632 BOOL svcctl_io_q_control_service(const char *desc, SVCCTL_Q_CONTROL_SERVICE *q_u, prs_struct *ps, int depth)
637 prs_debug(ps, depth, desc, "svcctl_io_q_control_service");
643 if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
646 if(!prs_uint32("control", ps, depth, &q_u->control))
652 /*******************************************************************
653 ********************************************************************/
655 BOOL svcctl_io_r_control_service(const char *desc, SVCCTL_R_CONTROL_SERVICE *r_u, prs_struct *ps, int depth)
660 prs_debug(ps, depth, desc, "svcctl_io_r_control_service");
666 if(!svcctl_io_service_status("service_status", &r_u->svc_status, ps, depth))
669 if(!prs_werror("status", ps, depth, &r_u->status))
676 /*******************************************************************
677 ********************************************************************/
679 BOOL svcctl_io_q_query_service_config(const char *desc, SVCCTL_Q_QUERY_SERVICE_CONFIG *q_u, prs_struct *ps, int depth)
684 prs_debug(ps, depth, desc, "svcctl_io_q_query_service_config");
690 if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
693 if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size))
699 /*******************************************************************
700 ********************************************************************/
702 BOOL svcctl_io_r_query_service_config(const char *desc, SVCCTL_R_QUERY_SERVICE_CONFIG *r_u, prs_struct *ps, int depth)
707 prs_debug(ps, depth, desc, "svcctl_io_r_query_service_config");
714 if(!svcctl_io_service_config("config", &r_u->config, ps, depth))
717 if(!prs_uint32("needed", ps, depth, &r_u->needed))
720 if(!prs_werror("status", ps, depth, &r_u->status))
727 /*******************************************************************
728 ********************************************************************/
730 BOOL svcctl_io_q_query_service_config2(const char *desc, SVCCTL_Q_QUERY_SERVICE_CONFIG2 *q_u, prs_struct *ps, int depth)
735 prs_debug(ps, depth, desc, "svcctl_io_q_query_service_config2");
741 if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
744 if(!prs_uint32("level", ps, depth, &q_u->level))
747 if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size))
754 /*******************************************************************
755 ********************************************************************/
757 void init_service_description_buffer(SERVICE_DESCRIPTION *desc, const char *service_desc )
759 desc->unknown = 0x04; /* always 0x0000 0004 (no idea what this is) */
760 init_unistr( &desc->description, service_desc );
763 /*******************************************************************
764 ********************************************************************/
766 BOOL svcctl_io_service_description( const char *desc, SERVICE_DESCRIPTION *description, RPC_BUFFER *buffer, int depth )
768 prs_struct *ps = &buffer->prs;
770 prs_debug(ps, depth, desc, "svcctl_io_service_description");
773 if ( !prs_uint32("unknown", ps, depth, &description->unknown) )
775 if ( !prs_unistr("description", ps, depth, &description->description) )
781 /*******************************************************************
782 ********************************************************************/
784 uint32 svcctl_sizeof_service_description( SERVICE_DESCRIPTION *desc )
789 /* make sure to include the terminating NULL */
790 return ( sizeof(uint32) + (2*(str_len_uni(&desc->description)+1)) );
793 /*******************************************************************
794 ********************************************************************/
796 static BOOL svcctl_io_action( const char *desc, SC_ACTION *action, prs_struct *ps, int depth )
799 prs_debug(ps, depth, desc, "svcctl_io_action");
802 if ( !prs_uint32("type", ps, depth, &action->type) )
804 if ( !prs_uint32("delay", ps, depth, &action->delay) )
810 /*******************************************************************
811 ********************************************************************/
813 BOOL svcctl_io_service_fa( const char *desc, SERVICE_FAILURE_ACTIONS *fa, RPC_BUFFER *buffer, int depth )
815 prs_struct *ps = &buffer->prs;
818 prs_debug(ps, depth, desc, "svcctl_io_service_description");
821 if ( !prs_uint32("reset_period", ps, depth, &fa->reset_period) )
824 if ( !prs_pointer( desc, ps, depth, (void**)&fa->rebootmsg, sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2 ) )
826 if ( !prs_pointer( desc, ps, depth, (void**)&fa->command, sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2 ) )
829 if ( !prs_uint32("num_actions", ps, depth, &fa->num_actions) )
832 if ( UNMARSHALLING(ps) && fa->num_actions ) {
833 if ( !(fa->actions = TALLOC_ARRAY( get_talloc_ctx(), SC_ACTION, fa->num_actions )) ) {
834 DEBUG(0,("svcctl_io_service_fa: talloc() failure!\n"));
839 for ( i=0; i<fa->num_actions; i++ ) {
840 if ( !svcctl_io_action( "actions", &fa->actions[i], ps, depth ) )
847 /*******************************************************************
848 ********************************************************************/
850 uint32 svcctl_sizeof_service_fa( SERVICE_FAILURE_ACTIONS *fa)
857 size = sizeof(uint32) * 2;
858 size += sizeof_unistr2( fa->rebootmsg );
859 size += sizeof_unistr2( fa->command );
860 size += sizeof(SC_ACTION) * fa->num_actions;
865 /*******************************************************************
866 ********************************************************************/
868 BOOL svcctl_io_r_query_service_config2(const char *desc, SVCCTL_R_QUERY_SERVICE_CONFIG2 *r_u, prs_struct *ps, int depth)
873 prs_debug(ps, depth, desc, "svcctl_io_r_query_service_config2");
876 if ( !prs_align(ps) )
879 if (!prs_rpcbuffer("", ps, depth, &r_u->buffer))
884 if (!prs_uint32("needed", ps, depth, &r_u->needed))
887 if(!prs_werror("status", ps, depth, &r_u->status))
894 /*******************************************************************
895 ********************************************************************/
897 BOOL svcctl_io_q_query_service_status_ex(const char *desc, SVCCTL_Q_QUERY_SERVICE_STATUSEX *q_u, prs_struct *ps, int depth)
902 prs_debug(ps, depth, desc, "svcctl_io_q_query_service_status_ex");
908 if(!smb_io_pol_hnd("service_pol", &q_u->handle, ps, depth))
911 if(!prs_uint32("level", ps, depth, &q_u->level))
914 if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size))
921 /*******************************************************************
922 ********************************************************************/
924 BOOL svcctl_io_r_query_service_status_ex(const char *desc, SVCCTL_R_QUERY_SERVICE_STATUSEX *r_u, prs_struct *ps, int depth)
929 prs_debug(ps, depth, desc, "svcctl_io_r_query_service_status_ex");
932 if (!prs_rpcbuffer("", ps, depth, &r_u->buffer))
938 if(!prs_uint32("needed", ps, depth, &r_u->needed))
941 if(!prs_werror("status", ps, depth, &r_u->status))
947 /*******************************************************************
948 ********************************************************************/
950 BOOL svcctl_io_q_lock_service_db(const char *desc, SVCCTL_Q_LOCK_SERVICE_DB *q_u, prs_struct *ps, int depth)
955 prs_debug(ps, depth, desc, "svcctl_io_q_lock_service_db");
961 if(!smb_io_pol_hnd("scm_handle", &q_u->handle, ps, depth))
968 /*******************************************************************
969 ********************************************************************/
971 BOOL svcctl_io_r_lock_service_db(const char *desc, SVCCTL_R_LOCK_SERVICE_DB *r_u, prs_struct *ps, int depth)
976 prs_debug(ps, depth, desc, "svcctl_io_r_lock_service_db");
982 if(!smb_io_pol_hnd("lock_handle", &r_u->h_lock, ps, depth))
985 if(!prs_werror("status", ps, depth, &r_u->status))
991 /*******************************************************************
992 ********************************************************************/
994 BOOL svcctl_io_q_unlock_service_db(const char *desc, SVCCTL_Q_UNLOCK_SERVICE_DB *q_u, prs_struct *ps, int depth)
999 prs_debug(ps, depth, desc, "svcctl_io_q_unlock_service_db");
1005 if(!smb_io_pol_hnd("h_lock", &q_u->h_lock, ps, depth))
1012 /*******************************************************************
1013 ********************************************************************/
1015 BOOL svcctl_io_r_unlock_service_db(const char *desc, SVCCTL_R_UNLOCK_SERVICE_DB *r_u, prs_struct *ps, int depth)
1020 prs_debug(ps, depth, desc, "svcctl_io_r_unlock_service_db");
1026 if(!prs_werror("status", ps, depth, &r_u->status))
1032 /*******************************************************************
1033 ********************************************************************/
1035 BOOL svcctl_io_q_query_service_sec(const char *desc, SVCCTL_Q_QUERY_SERVICE_SEC *q_u, prs_struct *ps, int depth)
1040 prs_debug(ps, depth, desc, "svcctl_io_q_query_service_sec");
1046 if(!smb_io_pol_hnd("handle", &q_u->handle, ps, depth))
1048 if(!prs_uint32("security_flags", ps, depth, &q_u->security_flags))
1050 if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size))
1057 /*******************************************************************
1058 ********************************************************************/
1060 BOOL svcctl_io_r_query_service_sec(const char *desc, SVCCTL_R_QUERY_SERVICE_SEC *r_u, prs_struct *ps, int depth)
1065 prs_debug(ps, depth, desc, "svcctl_io_r_query_service_sec");
1071 if (!prs_rpcbuffer("buffer", ps, depth, &r_u->buffer))
1074 if(!prs_uint32("needed", ps, depth, &r_u->needed))
1077 if(!prs_werror("status", ps, depth, &r_u->status))
1083 /*******************************************************************
1084 ********************************************************************/
1086 BOOL svcctl_io_q_set_service_sec(const char *desc, SVCCTL_Q_SET_SERVICE_SEC *q_u, prs_struct *ps, int depth)
1091 prs_debug(ps, depth, desc, "svcctl_io_q_set_service_sec");
1097 if(!smb_io_pol_hnd("handle", &q_u->handle, ps, depth))
1099 if(!prs_uint32("security_flags", ps, depth, &q_u->security_flags))
1102 if (!prs_rpcbuffer("buffer", ps, depth, &q_u->buffer))
1108 if(!prs_uint32("buffer_size", ps, depth, &q_u->buffer_size))
1115 /*******************************************************************
1116 ********************************************************************/
1118 BOOL svcctl_io_r_set_service_sec(const char *desc, SVCCTL_R_SET_SERVICE_SEC *r_u, prs_struct *ps, int depth)
1123 prs_debug(ps, depth, desc, "svcctl_io_r_set_service_sec");
1129 if(!prs_werror("status", ps, depth, &r_u->status))