From f78316c2a7e0567c43a5f750790835543a689a64 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 7 Mar 2008 02:57:29 +0100 Subject: Fix IDL for srvsvc_NetShareEnum and srvsvc_NetShareEnumAll. Guenther (This used to be commit e5ae43051e3bcdbad359737b19ec7f5e4b0ccd28) --- source3/librpc/idl/srvsvc.idl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/librpc/idl/srvsvc.idl b/source3/librpc/idl/srvsvc.idl index 4ad7bebdbd..86fdeba425 100644 --- a/source3/librpc/idl/srvsvc.idl +++ b/source3/librpc/idl/srvsvc.idl @@ -542,6 +542,11 @@ import "security.idl", "svcctl.idl"; [default] ; } srvsvc_NetShareCtr; + typedef struct { + uint32 level; + [switch_is(level)] srvsvc_NetShareCtr ctr; + } srvsvc_NetShareInfoCtr; + /******************/ /* Function: 0x0e */ WERROR srvsvc_NetShareAdd( @@ -555,8 +560,7 @@ import "security.idl", "svcctl.idl"; /* Function: 0x0f */ WERROR srvsvc_NetShareEnumAll ( [in,unique] [string,charset(UTF16)] uint16 *server_unc, - [in,out,ref] uint32 *level, - [in,out,ref,switch_is(*level)] srvsvc_NetShareCtr *ctr, + [in,out,ref] srvsvc_NetShareInfoCtr *info_ctr, [in] uint32 max_buffer, [out,ref] uint32 *totalentries, [in,out,unique] uint32 *resume_handle @@ -1384,8 +1388,7 @@ import "security.idl", "svcctl.idl"; total entries ... */ WERROR srvsvc_NetShareEnum( [in,unique] [string,charset(UTF16)] uint16 *server_unc, - [in,out,ref] uint32 *level, - [in,out,ref,switch_is(*level)] srvsvc_NetShareCtr *ctr, + [in,out,ref] srvsvc_NetShareInfoCtr *info_ctr, [in] uint32 max_buffer, [out,ref] uint32 *totalentries, [in,out,unique] uint32 *resume_handle -- cgit