From 3874261774ef9b56461602b4aea3cf4e7b9cc5a0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 6 Apr 2001 17:41:47 +0000 Subject: Added stub function for NET_SHARE_ADD. Once this is implemented to call a hook function (same for NET_SHARE_DELETE and NET_SHARE_SET) we will be able to manage the shares section in smb.conf via NT server manager........ This should enhance the friendliness of Samba in NT-only shops by an order of magnitude. Jeremy. (This used to be commit a2cd5f2ba11164a17622b96374ab43070f9ed691) --- source3/include/rpc_srvsvc.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'source3/include/rpc_srvsvc.h') diff --git a/source3/include/rpc_srvsvc.h b/source3/include/rpc_srvsvc.h index 810ccc3c35..09b88ff456 100644 --- a/source3/include/rpc_srvsvc.h +++ b/source3/include/rpc_srvsvc.h @@ -29,6 +29,7 @@ #define SRV_NETCONNENUM 0x08 #define SRV_NETFILEENUM 0x09 #define SRV_NETSESSENUM 0x0c +#define SRV_NET_SHARE_ADD 0x0e #define SRV_NETSHAREENUM_ALL 0x0f #define SRV_NET_SHARE_GET_INFO 0x10 #define SRV_NET_SHARE_SET_INFO 0x11 @@ -456,6 +457,27 @@ typedef struct r_net_share_set_info } SRV_R_NET_SHARE_SET_INFO; +/* SRV_Q_NET_SHARE_ADD */ +typedef struct q_net_share_add +{ + uint32 ptr_srv_name; + UNISTR2 uni_srv_name; + + uint32 info_level; + + SRV_SHARE_INFO info; + +} SRV_Q_NET_SHARE_ADD; + +/* SRV_R_NET_SHARE_ADD */ +typedef struct r_net_share_add +{ + uint32 switch_value; /* switch value */ + + uint32 status; /* return status */ + +} SRV_R_NET_SHARE_ADD; + /* FILE_INFO_3 (level 3 file info strings) */ typedef struct file_info3_info { -- cgit