From 9854192923d7daba3ba74d9fa6a0a3355b68b6cb Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 27 Nov 2007 10:18:00 +0100 Subject: r26147: Add IDL and torture test for wkssvc_NetrUseDel and wkssvc_NetrUseAdd. Guenther (This used to be commit b5b3cc1667f539ab75f2d3d0c9c79b45d85e967e) --- source4/librpc/idl/wkssvc.idl | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) (limited to 'source4/librpc/idl/wkssvc.idl') diff --git a/source4/librpc/idl/wkssvc.idl b/source4/librpc/idl/wkssvc.idl index a3e08c9444..cc25ad3c2f 100644 --- a/source4/librpc/idl/wkssvc.idl +++ b/source4/librpc/idl/wkssvc.idl @@ -268,18 +268,11 @@ import "srvsvc.idl"; /*****************************/ /* Function 0x08 */ - WERROR WKSSVC_NETRUSEADD (); - - /*****************************/ - /* Function 0x09 */ - WERROR WKSSVC_NETRUSEGETINFO (); - - /*****************************/ - /* Function 0x0a */ - WERROR WKSSVC_NETRUSEDEL (); + typedef struct { + [string,charset(UTF16)] uint16 *unknown1; + [string,charset(UTF16)] uint16 *unknown2; + } wkssvc_NetrUseInfo3; - /*****************************/ - /* Function 0x0b */ typedef struct { [string,charset(UTF16)] uint16 *local; [string,charset(UTF16)] uint16 *remote; @@ -307,6 +300,34 @@ import "srvsvc.idl"; [string,charset(UTF16)] uint16 *remote; } wkssvc_NetrUseInfo0; + typedef [switch_type(uint32)] union { + [case(0)] wkssvc_NetrUseInfo0 *info0; + [case(1)] wkssvc_NetrUseInfo1 *info1; + [case(2)] wkssvc_NetrUseInfo2 *info2; + [case(3)] wkssvc_NetrUseInfo3 *info3; + } wkssvc_NetrUseGetInfoCtr; + + WERROR wkssvc_NetrUseAdd( + [in] [string,charset(UTF16)] uint16 *server_name, + [in] uint32 level, + [in] [switch_is(level)] [ref] wkssvc_NetrUseGetInfoCtr *ctr, + [in,out] uint32 *parm_err + ); + + /*****************************/ + /* Function 0x09 */ + WERROR WKSSVC_NETRUSEGETINFO (); + + /*****************************/ + /* Function 0x0a */ + WERROR wkssvc_NetrUseDel( + [in] [string,charset(UTF16)] uint16 *server_name, + [in,ref] [string,charset(UTF16)] uint16 *use_name, + [in] uint32 force_cond + ); + + /*****************************/ + /* Function 0x0b */ typedef struct { uint32 count; [size_is(count)] wkssvc_NetrUseInfo2 *array; -- cgit