summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_svcctl_nt.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-20 01:38:23 +0100
committerGünther Deschner <gd@samba.org>2008-03-20 01:38:23 +0100
commit1a65f16843d4127573da522078200b272ee67d30 (patch)
tree47d9e72d4378c85d657f4e4030afdeb25b416188 /source3/rpc_server/srv_svcctl_nt.c
parentd91575bd9cd3b9d9d02c73006cb7fb9a3b879061 (diff)
downloadsamba-1a65f16843d4127573da522078200b272ee67d30.tar.gz
samba-1a65f16843d4127573da522078200b272ee67d30.tar.bz2
samba-1a65f16843d4127573da522078200b272ee67d30.zip
Use pidl for _svcctl_EnumDependentServicesW().
Guenther (This used to be commit 988291a9c07c055213f8979ebe75bb392811008d)
Diffstat (limited to 'source3/rpc_server/srv_svcctl_nt.c')
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index 3962626e27..c117d46fde 100644
--- a/source3/rpc_server/srv_svcctl_nt.c
+++ b/source3/rpc_server/srv_svcctl_nt.c
@@ -527,11 +527,13 @@ WERROR _svcctl_ControlService(pipes_struct *p,
}
/********************************************************************
+ _svcctl_EnumDependentServicesW
********************************************************************/
-WERROR _svcctl_enum_dependent_services( pipes_struct *p, SVCCTL_Q_ENUM_DEPENDENT_SERVICES *q_u, SVCCTL_R_ENUM_DEPENDENT_SERVICES *r_u )
+WERROR _svcctl_EnumDependentServicesW(pipes_struct *p,
+ struct svcctl_EnumDependentServicesW *r)
{
- SERVICE_INFO *info = find_service_info_by_hnd( p, &q_u->handle );
+ SERVICE_INFO *info = find_service_info_by_hnd( p, r->in.service );
/* perform access checks */
@@ -543,13 +545,12 @@ WERROR _svcctl_enum_dependent_services( pipes_struct *p, SVCCTL_Q_ENUM_DEPENDENT
/* we have to set the outgoing buffer size to the same as the
incoming buffer size (even in the case of failure */
+ /* this is done in the autogenerated server already - gd */
- rpcbuf_init( &r_u->buffer, q_u->buffer_size, p->mem_ctx );
-
- r_u->needed = q_u->buffer_size;
+ *r->out.bytes_needed = r->in.buf_size;
/* no dependent services...basically a stub function */
- r_u->returned = 0;
+ *r->out.services_returned = 0;
return WERR_OK;
}
@@ -948,12 +949,6 @@ WERROR _svcctl_CreateServiceW(pipes_struct *p, struct svcctl_CreateServiceW *r)
return WERR_NOT_SUPPORTED;
}
-WERROR _svcctl_EnumDependentServicesW(pipes_struct *p, struct svcctl_EnumDependentServicesW *r)
-{
- p->rng_fault_state = True;
- return WERR_NOT_SUPPORTED;
-}
-
WERROR _svcctl_EnumServicesStatusW(pipes_struct *p, struct svcctl_EnumServicesStatusW *r)
{
p->rng_fault_state = True;