⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rpc_srvsvc.h

📁 samba-3.0.22.tar.gz 编译smb服务器的源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/*   Unix SMB/CIFS implementation.   SMB parameters and setup   Copyright (C) Andrew Tridgell 1992-1997   Copyright (C) Luke Kenneth Casson Leighton 1996-1997   Copyright (C) Paul Ashton 1997   Copyright (C) Nigel Williams 2001      This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License, or   (at your option) any later version.      This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.      You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*/#ifndef _RPC_SRVSVC_H /* _RPC_SRVSVC_H */#define _RPC_SRVSVC_H /* srvsvc pipe */#define SRV_NET_CONN_ENUM          0x08#define SRV_NET_FILE_ENUM          0x09#define SRV_NET_FILE_CLOSE         0x0b#define SRV_NET_SESS_ENUM          0x0c#define SRV_NET_SESS_DEL           0x0d#define SRV_NET_SHARE_ADD          0x0e#define SRV_NET_SHARE_ENUM_ALL     0x0f#define SRV_NET_SHARE_GET_INFO     0x10#define SRV_NET_SHARE_SET_INFO     0x11#define SRV_NET_SHARE_DEL          0x12#define SRV_NET_SHARE_DEL_STICKY   0x13#define SRV_NET_SRV_GET_INFO       0x15#define SRV_NET_SRV_SET_INFO       0x16#define SRV_NET_DISK_ENUM          0x17#define SRV_NET_REMOTE_TOD         0x1c#define SRV_NET_NAME_VALIDATE      0x21#define SRV_NET_SHARE_ENUM         0x24#define SRV_NET_FILE_QUERY_SECDESC 0x27#define SRV_NET_FILE_SET_SECDESC   0x28#define MAX_SERVER_DISK_ENTRIES 15typedef struct disk_info {	uint32  unknown;	UNISTR3 disk_name;} DISK_INFO;typedef struct disk_enum_container {	uint32 level;	uint32 entries_read;	uint32 unknown;	uint32 disk_info_ptr;	DISK_INFO *disk_info;} DISK_ENUM_CONTAINER;typedef struct net_srv_disk_enum {	uint32 ptr_srv_name;         /* pointer (to server name?) */	UNISTR2 uni_srv_name;        /* server name */	DISK_ENUM_CONTAINER disk_enum_ctr;	uint32 preferred_len;        /* preferred maximum length (0xffff ffff) */	uint32 total_entries;        /* total number of entries */	ENUM_HND enum_hnd;	WERROR status;               /* return status */} SRV_Q_NET_DISK_ENUM, SRV_R_NET_DISK_ENUM;typedef struct net_name_validate {	uint32 ptr_srv_name;	UNISTR2 uni_srv_name;	UNISTR2 uni_name; /*name to validate*/	uint32 type;	uint32 flags;	WERROR status;} SRV_Q_NET_NAME_VALIDATE, SRV_R_NET_NAME_VALIDATE;/* SESS_INFO_0 (pointers to level 0 session info strings) */typedef struct ptr_sess_info0{	uint32 ptr_name; /* pointer to name. */} SESS_INFO_0;/* SESS_INFO_0_STR (level 0 session info strings) */typedef struct str_sess_info0{	UNISTR2 uni_name; /* unicode string of name */} SESS_INFO_0_STR;/* oops - this is going to take up a *massive* amount of stack. *//* the UNISTR2s already have 1024 uint16 chars in them... */#define MAX_SESS_ENTRIES 32/* SRV_SESS_INFO_0 */typedef struct srv_sess_info_0_info{	uint32 num_entries_read;                     /* EntriesRead */	uint32 ptr_sess_info;                       /* Buffer */	uint32 num_entries_read2;                    /* EntriesRead */	SESS_INFO_0     info_0    [MAX_SESS_ENTRIES]; /* session entry pointers */	SESS_INFO_0_STR info_0_str[MAX_SESS_ENTRIES]; /* session entry strings */} SRV_SESS_INFO_0;/* SESS_INFO_1 (pointers to level 1 session info strings) */typedef struct ptr_sess_info1{	uint32 ptr_name; /* pointer to name. */	uint32 ptr_user; /* pointer to user name. */	uint32 num_opens;	uint32 open_time;	uint32 idle_time;	uint32 user_flags;} SESS_INFO_1;/* SESS_INFO_1_STR (level 1 session info strings) */typedef struct str_sess_info1{	UNISTR2 uni_name; /* unicode string of name */	UNISTR2 uni_user; /* unicode string of user */} SESS_INFO_1_STR;/* SRV_SESS_INFO_1 */typedef struct srv_sess_info_1_info{	uint32 num_entries_read;                     /* EntriesRead */	uint32 ptr_sess_info;                       /* Buffer */	uint32 num_entries_read2;                    /* EntriesRead */	SESS_INFO_1     info_1    [MAX_SESS_ENTRIES]; /* session entry pointers */	SESS_INFO_1_STR info_1_str[MAX_SESS_ENTRIES]; /* session entry strings */} SRV_SESS_INFO_1;/* SRV_SESS_INFO_CTR */typedef struct srv_sess_info_ctr_info{	uint32 switch_value;         /* switch value */	uint32 ptr_sess_ctr;       /* pointer to sess info union */	union    {		SRV_SESS_INFO_0 info0; /* session info level 0 */		SRV_SESS_INFO_1 info1; /* session info level 1 */    } sess;} SRV_SESS_INFO_CTR;/* SRV_Q_NET_SESS_ENUM */typedef struct q_net_sess_enum_info{	uint32 ptr_srv_name;         /* pointer (to server name?) */	UNISTR2 uni_srv_name;        /* server name */	uint32 ptr_qual_name;         /* pointer (to qualifier name) */	UNISTR2 uni_qual_name;        /* qualifier name "\\qualifier" */	uint32 ptr_user_name;         /* pointer (to user name */	UNISTR2 uni_user_name;        /* user name */	uint32 sess_level;          /* session level */	SRV_SESS_INFO_CTR *ctr;	uint32 preferred_len;        /* preferred maximum length (0xffff ffff) */	ENUM_HND enum_hnd;} SRV_Q_NET_SESS_ENUM;/* SRV_R_NET_SESS_ENUM */typedef struct r_net_sess_enum_info{	uint32 sess_level;          /* share level */	SRV_SESS_INFO_CTR *ctr;	uint32 total_entries;                    /* total number of entries */	ENUM_HND enum_hnd;	WERROR status;               /* return status */} SRV_R_NET_SESS_ENUM;/* SRV_Q_NET_SESS_DEL */typedef struct q_net_sess_del{	uint32 ptr_srv_name;         /* pointer (to server name?) */	UNISTR2 uni_srv_name;        /* server name */	uint32 ptr_cli_name;         /* pointer (to qualifier name) */	UNISTR2 uni_cli_name;        /* qualifier name "\\qualifier" */	uint32 ptr_user_name;         /* pointer (to user name */	UNISTR2 uni_user_name;        /* user name */} SRV_Q_NET_SESS_DEL;/* SRV_R_NET_SESS_DEL */typedef struct r_net_sess_del{	WERROR status;               /* return status */} SRV_R_NET_SESS_DEL;/* CONN_INFO_0 (pointers to level 0 connection info strings) */typedef struct ptr_conn_info0{	uint32 id; /* connection id. */} CONN_INFO_0;/* oops - this is going to take up a *massive* amount of stack. *//* the UNISTR2s already have 1024 uint16 chars in them... */#define MAX_CONN_ENTRIES 32/* SRV_CONN_INFO_0 */typedef struct srv_conn_info_0_info{	uint32 num_entries_read;                     /* EntriesRead */	uint32 ptr_conn_info;                       /* Buffer */	uint32 num_entries_read2;                    /* EntriesRead */	CONN_INFO_0     info_0    [MAX_CONN_ENTRIES]; /* connection entry pointers */} SRV_CONN_INFO_0;/* CONN_INFO_1 (pointers to level 1 connection info strings) */typedef struct ptr_conn_info1{	uint32 id;   /* connection id */	uint32 type; /* 0x3 */	uint32 num_opens;	uint32 num_users;	uint32 open_time;	uint32 ptr_usr_name; /* pointer to user name. */	uint32 ptr_net_name; /* pointer to network name (e.g IPC$). */} CONN_INFO_1;/* CONN_INFO_1_STR (level 1 connection info strings) */typedef struct str_conn_info1{	UNISTR2 uni_usr_name; /* unicode string of user */	UNISTR2 uni_net_name; /* unicode string of name */} CONN_INFO_1_STR;/* SRV_CONN_INFO_1 */typedef struct srv_conn_info_1_info{	uint32 num_entries_read;                     /* EntriesRead */	uint32 ptr_conn_info;                       /* Buffer */	uint32 num_entries_read2;                    /* EntriesRead */	CONN_INFO_1     info_1    [MAX_CONN_ENTRIES]; /* connection entry pointers */	CONN_INFO_1_STR info_1_str[MAX_CONN_ENTRIES]; /* connection entry strings */} SRV_CONN_INFO_1;/* SRV_CONN_INFO_CTR */typedef struct srv_conn_info_ctr_info{	uint32 switch_value;         /* switch value */	uint32 ptr_conn_ctr;       /* pointer to conn info union */	union    {		SRV_CONN_INFO_0 info0; /* connection info level 0 */		SRV_CONN_INFO_1 info1; /* connection info level 1 */    } conn;} SRV_CONN_INFO_CTR;/* SRV_Q_NET_CONN_ENUM */typedef struct q_net_conn_enum_info{	uint32 ptr_srv_name;         /* pointer (to server name) */	UNISTR2 uni_srv_name;        /* server name "\\server" */	uint32 ptr_qual_name;         /* pointer (to qualifier name) */	UNISTR2 uni_qual_name;        /* qualifier name "\\qualifier" */	uint32 conn_level;          /* connection level */	SRV_CONN_INFO_CTR *ctr;	uint32 preferred_len;        /* preferred maximum length (0xffff ffff) */	ENUM_HND enum_hnd;} SRV_Q_NET_CONN_ENUM;/* SRV_R_NET_CONN_ENUM */typedef struct r_net_conn_enum_info{	uint32 conn_level;          /* share level */	SRV_CONN_INFO_CTR *ctr;	uint32 total_entries;                    /* total number of entries */	ENUM_HND enum_hnd;	WERROR status;               /* return status */} SRV_R_NET_CONN_ENUM;/* SH_INFO_0 */typedef struct ptr_share_info0{	uint32 ptr_netname; /* pointer to net name. */} SH_INFO_0;/* SH_INFO_0_STR (level 0 share info strings) */typedef struct str_share_info0{        SH_INFO_0 *ptrs;	UNISTR2 uni_netname; /* unicode string of net name */} SH_INFO_0_STR;/* SRV_SHARE_INFO_0 */typedef struct share_info_0_info{	SH_INFO_0 info_0;	SH_INFO_0_STR info_0_str;} SRV_SHARE_INFO_0;/* SH_INFO_1 (pointers to level 1 share info strings) */typedef struct ptr_share_info1{	uint32 ptr_netname; /* pointer to net name. */	uint32 type; /* ipc, print, disk ... */	uint32 ptr_remark; /* pointer to comment. */} SH_INFO_1;/* SH_INFO_1_STR (level 1 share info strings) */typedef struct str_share_info1{        SH_INFO_1 *ptrs;	UNISTR2 uni_netname; /* unicode string of net name */	UNISTR2 uni_remark; /* unicode string of comment */} SH_INFO_1_STR;/* SRV_SHARE_INFO_1 */typedef struct share_info_1_info{	SH_INFO_1 info_1;	SH_INFO_1_STR info_1_str;} SRV_SHARE_INFO_1;/* SH_INFO_2 (pointers to level 2 share info strings) */typedef struct ptr_share_info2{	uint32 ptr_netname; /* pointer to net name. */	uint32 type; /* ipc, print, disk ... */	uint32 ptr_remark; /* pointer to comment. */	uint32 perms;      /* permissions */	uint32 max_uses;   /* maximum uses */	uint32 num_uses;   /* current uses */	uint32 ptr_path;   /* pointer to path name */	uint32 ptr_passwd; /* pointer to password */} SH_INFO_2;/* SH_INFO_2_STR (level 2 share info strings) */typedef struct str_share_info2{	SH_INFO_2 *ptrs;	UNISTR2 uni_netname; /* unicode string of net name (e.g NETLOGON) */	UNISTR2 uni_remark;  /* unicode string of comment (e.g "Logon server share") */	UNISTR2 uni_path;    /* unicode string of local path (e.g c:\winnt\system32\repl\import\scripts) */	UNISTR2 uni_passwd;  /* unicode string of password - presumably for share level security (e.g NULL) */} SH_INFO_2_STR;/* SRV_SHARE_INFO_2 */typedef struct share_info_2_info{	SH_INFO_2 info_2;	SH_INFO_2_STR info_2_str;} SRV_SHARE_INFO_2;typedef struct ptr_share_info501{	uint32 ptr_netname; /* pointer to net name */	uint32 type;     /* ipc, print, disk */	uint32 ptr_remark;  /* pointer to comment */	uint32 csc_policy;  /* client-side offline caching policy << 4 */} SH_INFO_501;typedef struct str_share_info501{	UNISTR2 uni_netname; /* unicode string of net name */	UNISTR2 uni_remark;  /* unicode string of comment */} SH_INFO_501_STR;/* SRV_SHARE_INFO_501 */typedef struct share_info_501_info{	SH_INFO_501 info_501;	SH_INFO_501_STR info_501_str;} SRV_SHARE_INFO_501;/* SH_INFO_502 (pointers to level 502 share info strings) */typedef struct ptr_share_info502{	uint32 ptr_netname; /* pointer to net name. */	uint32 type; /* ipc, print, disk ... */	uint32 ptr_remark; /* pointer to comment. */	uint32 perms;      /* permissions */	uint32 max_uses;   /* maximum uses */	uint32 num_uses;   /* current uses */	uint32 ptr_path;   /* pointer to path name */	uint32 ptr_passwd; /* pointer to password */        uint32 reserved;    /* this holds the space taken by the sd in the rpc packet */        uint32 reserved_offset;   /* required for _post operation when marshalling */	uint32 sd_size;    /* size of security descriptor */	uint32 ptr_sd;     /* pointer to security descriptor */} SH_INFO_502;/* SH_INFO_502_STR (level 502 share info strings) */typedef struct str_share_info502{	SH_INFO_502 *ptrs;	UNISTR2 uni_netname; /* unicode string of net name (e.g NETLOGON) */	UNISTR2 uni_remark;  /* unicode string of comment (e.g "Logon server share") */	UNISTR2 uni_path;    /* unicode string of local path (e.g c:\winnt\system32\repl\import\scripts) */	UNISTR2 uni_passwd;  /* unicode string of password - presumably for share level security (e.g NULL) */        uint32 reserved;	uint32 sd_size;	SEC_DESC *sd;} SH_INFO_502_STR;/* SRV_SHARE_INFO_502 */typedef struct share_info_502_info{	SH_INFO_502 info_502;	SH_INFO_502_STR info_502_str;} SRV_SHARE_INFO_502;typedef struct ptr_share_info1004{	uint32 ptr_remark;} SH_INFO_1004;typedef struct str_share_info1004{	SH_INFO_1004 *ptrs;	UNISTR2 uni_remark;} SH_INFO_1004_STR;typedef struct ptr_info_1004_info{	SH_INFO_1004     info_1004; 	SH_INFO_1004_STR info_1004_str; } SRV_SHARE_INFO_1004;#define SHARE_1005_IN_DFS               0x00000001#define SHARE_1005_DFS_ROOT             0x00000002

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -