2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1997
5 Copyright (C) Luke Kenneth Casson Leighton 1996-1997
6 Copyright (C) Paul Ashton 1997
7 Copyright (C) Nigel Williams 2001
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _RPC_SRVSVC_H /* _RPC_SRVSVC_H */
28 #define SRV_NET_CONN_ENUM 0x08
29 #define SRV_NET_FILE_ENUM 0x09
30 #define SRV_NET_FILE_CLOSE 0x0b
31 #define SRV_NET_SESS_ENUM 0x0c
32 #define SRV_NET_SESS_DEL 0x0d
33 #define SRV_NET_SHARE_ADD 0x0e
34 #define SRV_NET_SHARE_ENUM_ALL 0x0f
35 #define SRV_NET_SHARE_GET_INFO 0x10
36 #define SRV_NET_SHARE_SET_INFO 0x11
37 #define SRV_NET_SHARE_DEL 0x12
38 #define SRV_NET_SHARE_DEL_STICKY 0x13
39 #define SRV_NET_SRV_GET_INFO 0x15
40 #define SRV_NET_SRV_SET_INFO 0x16
41 #define SRV_NET_DISK_ENUM 0x17
42 #define SRV_NET_REMOTE_TOD 0x1c
43 #define SRV_NET_NAME_VALIDATE 0x21
44 #define SRV_NET_SHARE_ENUM 0x24
45 #define SRV_NET_FILE_QUERY_SECDESC 0x27
46 #define SRV_NET_FILE_SET_SECDESC 0x28
48 #define MAX_SERVER_DISK_ENTRIES 15
50 typedef struct disk_info
{
55 typedef struct disk_enum_container
{
61 } DISK_ENUM_CONTAINER
;
63 typedef struct net_srv_disk_enum
{
64 uint32 ptr_srv_name
; /* pointer (to server name?) */
65 UNISTR2 uni_srv_name
; /* server name */
67 DISK_ENUM_CONTAINER disk_enum_ctr
;
69 uint32 preferred_len
; /* preferred maximum length (0xffff ffff) */
70 uint32 total_entries
; /* total number of entries */
72 WERROR status
; /* return status */
73 } SRV_Q_NET_DISK_ENUM
, SRV_R_NET_DISK_ENUM
;
75 typedef struct net_name_validate
{
78 UNISTR2 uni_name
; /*name to validate*/
82 } SRV_Q_NET_NAME_VALIDATE
, SRV_R_NET_NAME_VALIDATE
;
84 /* SESS_INFO_0 (pointers to level 0 session info strings) */
85 typedef struct ptr_sess_info0
87 uint32 ptr_name
; /* pointer to name. */
91 /* SESS_INFO_0_STR (level 0 session info strings) */
92 typedef struct str_sess_info0
94 UNISTR2 uni_name
; /* unicode string of name */
98 /* oops - this is going to take up a *massive* amount of stack. */
99 /* the UNISTR2s already have 1024 uint16 chars in them... */
100 #define MAX_SESS_ENTRIES 32
102 /* SRV_SESS_INFO_0 */
103 typedef struct srv_sess_info_0_info
105 uint32 num_entries_read
; /* EntriesRead */
106 uint32 ptr_sess_info
; /* Buffer */
107 uint32 num_entries_read2
; /* EntriesRead */
109 SESS_INFO_0 info_0
[MAX_SESS_ENTRIES
]; /* session entry pointers */
110 SESS_INFO_0_STR info_0_str
[MAX_SESS_ENTRIES
]; /* session entry strings */
114 /* SESS_INFO_1 (pointers to level 1 session info strings) */
115 typedef struct ptr_sess_info1
117 uint32 ptr_name
; /* pointer to name. */
118 uint32 ptr_user
; /* pointer to user name. */
127 /* SESS_INFO_1_STR (level 1 session info strings) */
128 typedef struct str_sess_info1
130 UNISTR2 uni_name
; /* unicode string of name */
131 UNISTR2 uni_user
; /* unicode string of user */
135 /* SRV_SESS_INFO_1 */
136 typedef struct srv_sess_info_1_info
138 uint32 num_entries_read
; /* EntriesRead */
139 uint32 ptr_sess_info
; /* Buffer */
140 uint32 num_entries_read2
; /* EntriesRead */
142 SESS_INFO_1 info_1
[MAX_SESS_ENTRIES
]; /* session entry pointers */
143 SESS_INFO_1_STR info_1_str
[MAX_SESS_ENTRIES
]; /* session entry strings */
147 /* SRV_SESS_INFO_CTR */
148 typedef struct srv_sess_info_ctr_info
150 uint32 switch_value
; /* switch value */
151 uint32 ptr_sess_ctr
; /* pointer to sess info union */
154 SRV_SESS_INFO_0 info0
; /* session info level 0 */
155 SRV_SESS_INFO_1 info1
; /* session info level 1 */
162 /* SRV_Q_NET_SESS_ENUM */
163 typedef struct q_net_sess_enum_info
165 uint32 ptr_srv_name
; /* pointer (to server name?) */
166 UNISTR2 uni_srv_name
; /* server name */
168 uint32 ptr_qual_name
; /* pointer (to qualifier name) */
169 UNISTR2 uni_qual_name
; /* qualifier name "\\qualifier" */
171 uint32 ptr_user_name
; /* pointer (to user name */
172 UNISTR2 uni_user_name
; /* user name */
174 uint32 sess_level
; /* session level */
176 SRV_SESS_INFO_CTR
*ctr
;
178 uint32 preferred_len
; /* preferred maximum length (0xffff ffff) */
181 } SRV_Q_NET_SESS_ENUM
;
183 /* SRV_R_NET_SESS_ENUM */
184 typedef struct r_net_sess_enum_info
186 uint32 sess_level
; /* share level */
188 SRV_SESS_INFO_CTR
*ctr
;
190 uint32 total_entries
; /* total number of entries */
193 WERROR status
; /* return status */
195 } SRV_R_NET_SESS_ENUM
;
197 /* SRV_Q_NET_SESS_DEL */
198 typedef struct q_net_sess_del
200 uint32 ptr_srv_name
; /* pointer (to server name?) */
201 UNISTR2 uni_srv_name
; /* server name */
203 uint32 ptr_cli_name
; /* pointer (to qualifier name) */
204 UNISTR2 uni_cli_name
; /* qualifier name "\\qualifier" */
206 uint32 ptr_user_name
; /* pointer (to user name */
207 UNISTR2 uni_user_name
; /* user name */
209 } SRV_Q_NET_SESS_DEL
;
211 /* SRV_R_NET_SESS_DEL */
212 typedef struct r_net_sess_del
214 WERROR status
; /* return status */
216 } SRV_R_NET_SESS_DEL
;
218 /* CONN_INFO_0 (pointers to level 0 connection info strings) */
219 typedef struct ptr_conn_info0
221 uint32 id
; /* connection id. */
225 /* oops - this is going to take up a *massive* amount of stack. */
226 /* the UNISTR2s already have 1024 uint16 chars in them... */
227 #define MAX_CONN_ENTRIES 32
229 /* SRV_CONN_INFO_0 */
230 typedef struct srv_conn_info_0_info
232 uint32 num_entries_read
; /* EntriesRead */
233 uint32 ptr_conn_info
; /* Buffer */
234 uint32 num_entries_read2
; /* EntriesRead */
236 CONN_INFO_0 info_0
[MAX_CONN_ENTRIES
]; /* connection entry pointers */
240 /* CONN_INFO_1 (pointers to level 1 connection info strings) */
241 typedef struct ptr_conn_info1
243 uint32 id
; /* connection id */
244 uint32 type
; /* 0x3 */
249 uint32 ptr_usr_name
; /* pointer to user name. */
250 uint32 ptr_net_name
; /* pointer to network name (e.g IPC$). */
254 /* CONN_INFO_1_STR (level 1 connection info strings) */
255 typedef struct str_conn_info1
257 UNISTR2 uni_usr_name
; /* unicode string of user */
258 UNISTR2 uni_net_name
; /* unicode string of name */
262 /* SRV_CONN_INFO_1 */
263 typedef struct srv_conn_info_1_info
265 uint32 num_entries_read
; /* EntriesRead */
266 uint32 ptr_conn_info
; /* Buffer */
267 uint32 num_entries_read2
; /* EntriesRead */
269 CONN_INFO_1 info_1
[MAX_CONN_ENTRIES
]; /* connection entry pointers */
270 CONN_INFO_1_STR info_1_str
[MAX_CONN_ENTRIES
]; /* connection entry strings */
274 /* SRV_CONN_INFO_CTR */
275 typedef struct srv_conn_info_ctr_info
277 uint32 switch_value
; /* switch value */
278 uint32 ptr_conn_ctr
; /* pointer to conn info union */
281 SRV_CONN_INFO_0 info0
; /* connection info level 0 */
282 SRV_CONN_INFO_1 info1
; /* connection info level 1 */
289 /* SRV_Q_NET_CONN_ENUM */
290 typedef struct q_net_conn_enum_info
292 uint32 ptr_srv_name
; /* pointer (to server name) */
293 UNISTR2 uni_srv_name
; /* server name "\\server" */
295 uint32 ptr_qual_name
; /* pointer (to qualifier name) */
296 UNISTR2 uni_qual_name
; /* qualifier name "\\qualifier" */
298 uint32 conn_level
; /* connection level */
300 SRV_CONN_INFO_CTR
*ctr
;
302 uint32 preferred_len
; /* preferred maximum length (0xffff ffff) */
305 } SRV_Q_NET_CONN_ENUM
;
307 /* SRV_R_NET_CONN_ENUM */
308 typedef struct r_net_conn_enum_info
310 uint32 conn_level
; /* share level */
312 SRV_CONN_INFO_CTR
*ctr
;
314 uint32 total_entries
; /* total number of entries */
317 WERROR status
; /* return status */
319 } SRV_R_NET_CONN_ENUM
;
322 typedef struct ptr_share_info0
324 uint32 ptr_netname
; /* pointer to net name. */
327 /* SH_INFO_0_STR (level 0 share info strings) */
328 typedef struct str_share_info0
332 UNISTR2 uni_netname
; /* unicode string of net name */
336 /* SRV_SHARE_INFO_0 */
337 typedef struct share_info_0_info
340 SH_INFO_0_STR info_0_str
;
344 /* SH_INFO_1 (pointers to level 1 share info strings) */
345 typedef struct ptr_share_info1
347 uint32 ptr_netname
; /* pointer to net name. */
348 uint32 type
; /* ipc, print, disk ... */
349 uint32 ptr_remark
; /* pointer to comment. */
353 /* SH_INFO_1_STR (level 1 share info strings) */
354 typedef struct str_share_info1
358 UNISTR2 uni_netname
; /* unicode string of net name */
359 UNISTR2 uni_remark
; /* unicode string of comment */
363 /* SRV_SHARE_INFO_1 */
364 typedef struct share_info_1_info
367 SH_INFO_1_STR info_1_str
;
371 /* SH_INFO_2 (pointers to level 2 share info strings) */
372 typedef struct ptr_share_info2
374 uint32 ptr_netname
; /* pointer to net name. */
375 uint32 type
; /* ipc, print, disk ... */
376 uint32 ptr_remark
; /* pointer to comment. */
377 uint32 perms
; /* permissions */
378 uint32 max_uses
; /* maximum uses */
379 uint32 num_uses
; /* current uses */
380 uint32 ptr_path
; /* pointer to path name */
381 uint32 ptr_passwd
; /* pointer to password */
385 /* SH_INFO_2_STR (level 2 share info strings) */
386 typedef struct str_share_info2
390 UNISTR2 uni_netname
; /* unicode string of net name (e.g NETLOGON) */
391 UNISTR2 uni_remark
; /* unicode string of comment (e.g "Logon server share") */
392 UNISTR2 uni_path
; /* unicode string of local path (e.g c:\winnt\system32\repl\import\scripts) */
393 UNISTR2 uni_passwd
; /* unicode string of password - presumably for share level security (e.g NULL) */
397 /* SRV_SHARE_INFO_2 */
398 typedef struct share_info_2_info
401 SH_INFO_2_STR info_2_str
;
405 typedef struct ptr_share_info501
407 uint32 ptr_netname
; /* pointer to net name */
408 uint32 type
; /* ipc, print, disk */
409 uint32 ptr_remark
; /* pointer to comment */
410 uint32 csc_policy
; /* client-side offline caching policy << 4 */
413 typedef struct str_share_info501
415 UNISTR2 uni_netname
; /* unicode string of net name */
416 UNISTR2 uni_remark
; /* unicode string of comment */
419 /* SRV_SHARE_INFO_501 */
420 typedef struct share_info_501_info
422 SH_INFO_501 info_501
;
423 SH_INFO_501_STR info_501_str
;
424 } SRV_SHARE_INFO_501
;
426 /* SH_INFO_502 (pointers to level 502 share info strings) */
427 typedef struct ptr_share_info502
429 uint32 ptr_netname
; /* pointer to net name. */
430 uint32 type
; /* ipc, print, disk ... */
431 uint32 ptr_remark
; /* pointer to comment. */
432 uint32 perms
; /* permissions */
433 uint32 max_uses
; /* maximum uses */
434 uint32 num_uses
; /* current uses */
435 uint32 ptr_path
; /* pointer to path name */
436 uint32 ptr_passwd
; /* pointer to password */
437 uint32 reserved
; /* this holds the space taken by the sd in the rpc packet */
438 uint32 reserved_offset
; /* required for _post operation when marshalling */
439 uint32 sd_size
; /* size of security descriptor */
440 uint32 ptr_sd
; /* pointer to security descriptor */
444 /* SH_INFO_502_STR (level 502 share info strings) */
445 typedef struct str_share_info502
449 UNISTR2 uni_netname
; /* unicode string of net name (e.g NETLOGON) */
450 UNISTR2 uni_remark
; /* unicode string of comment (e.g "Logon server share") */
451 UNISTR2 uni_path
; /* unicode string of local path (e.g c:\winnt\system32\repl\import\scripts) */
452 UNISTR2 uni_passwd
; /* unicode string of password - presumably for share level security (e.g NULL) */
460 /* SRV_SHARE_INFO_502 */
461 typedef struct share_info_502_info
463 SH_INFO_502 info_502
;
464 SH_INFO_502_STR info_502_str
;
466 } SRV_SHARE_INFO_502
;
468 typedef struct ptr_share_info1004
474 typedef struct str_share_info1004
482 typedef struct ptr_info_1004_info
484 SH_INFO_1004 info_1004
;
485 SH_INFO_1004_STR info_1004_str
;
486 } SRV_SHARE_INFO_1004
;
488 #define SHARE_1005_IN_DFS 0x00000001
489 #define SHARE_1005_DFS_ROOT 0x00000002
490 /* use the CSC policy mask and shift to match up with the smb.conf parm */
491 #define SHARE_1005_CSC_POLICY_MASK 0x00000030
492 #define SHARE_1005_CSC_POLICY_SHIFT 4
494 typedef struct share_info_1005_info
496 uint32 share_info_flags
;
497 } SRV_SHARE_INFO_1005
;
499 typedef struct share_info_1006_info
502 } SRV_SHARE_INFO_1006
;
504 typedef struct ptr_share_info1007
507 uint32 ptr_AlternateDirectoryName
;
511 typedef struct str_share_info1007
515 UNISTR2 uni_AlternateDirectoryName
;
519 typedef struct ptr_info_1007_info
521 SH_INFO_1007 info_1007
;
522 SH_INFO_1007_STR info_1007_str
;
523 } SRV_SHARE_INFO_1007
;
525 /* SRV_SHARE_INFO_1501 */
526 typedef struct share_info_1501_info
529 } SRV_SHARE_INFO_1501
;
531 /* SRV_SHARE_INFO_CTR */
532 typedef struct srv_share_info_ctr_info
536 uint32 ptr_share_info
;
543 SRV_SHARE_INFO_0
*info0
;
544 SRV_SHARE_INFO_1
*info1
; /* share info level 1 */
545 SRV_SHARE_INFO_2
*info2
; /* share info level 2 */
546 SRV_SHARE_INFO_501
*info501
; /* share info level 501 */
547 SRV_SHARE_INFO_502
*info502
; /* share info level 502 */
548 SRV_SHARE_INFO_1004
*info1004
;
549 SRV_SHARE_INFO_1005
*info1005
;
550 SRV_SHARE_INFO_1006
*info1006
;
551 SRV_SHARE_INFO_1007
*info1007
;
552 SRV_SHARE_INFO_1501
*info1501
;
557 } SRV_SHARE_INFO_CTR
;
559 /* SRV_Q_NET_SHARE_ENUM */
560 typedef struct q_net_share_enum_info
562 uint32 ptr_srv_name
; /* pointer (to server name?) */
563 UNISTR2 uni_srv_name
; /* server name */
565 SRV_SHARE_INFO_CTR ctr
; /* share info container */
567 uint32 preferred_len
; /* preferred maximum length (0xffff ffff) */
571 } SRV_Q_NET_SHARE_ENUM
;
574 /* SRV_R_NET_SHARE_ENUM */
575 typedef struct r_net_share_enum_info
577 SRV_SHARE_INFO_CTR ctr
; /* share info container */
579 uint32 total_entries
; /* total number of entries */
582 WERROR status
; /* return status */
584 } SRV_R_NET_SHARE_ENUM
;
587 /* SRV_Q_NET_SHARE_GET_INFO */
588 typedef struct q_net_share_get_info_info
591 UNISTR2 uni_srv_name
;
593 UNISTR2 uni_share_name
;
596 } SRV_Q_NET_SHARE_GET_INFO
;
599 typedef struct srv_share_info
{
601 uint32 ptr_share_ctr
;
604 SRV_SHARE_INFO_0 info0
;
605 SRV_SHARE_INFO_1 info1
;
606 SRV_SHARE_INFO_2 info2
;
607 SRV_SHARE_INFO_501 info501
;
608 SRV_SHARE_INFO_502 info502
;
609 SRV_SHARE_INFO_1004 info1004
;
610 SRV_SHARE_INFO_1005 info1005
;
611 SRV_SHARE_INFO_1006 info1006
;
612 SRV_SHARE_INFO_1007 info1007
;
613 SRV_SHARE_INFO_1501 info1501
;
617 /* SRV_R_NET_SHARE_GET_INFO */
618 typedef struct r_net_share_get_info_info
623 } SRV_R_NET_SHARE_GET_INFO
;
625 /* SRV_Q_NET_SHARE_SET_INFO */
626 typedef struct q_net_share_set_info_info
629 UNISTR2 uni_srv_name
;
631 UNISTR2 uni_share_name
;
636 uint32 ptr_parm_error
;
639 } SRV_Q_NET_SHARE_SET_INFO
;
641 /* SRV_R_NET_SHARE_SET_INFO */
642 typedef struct r_net_share_set_info
644 uint32 ptr_parm_error
;
647 WERROR status
; /* return status */
649 } SRV_R_NET_SHARE_SET_INFO
;
651 /* SRV_Q_NET_SHARE_ADD */
652 typedef struct q_net_share_add
655 UNISTR2 uni_srv_name
;
661 uint32 ptr_err_index
; /* pointer to error index */
662 uint32 err_index
; /* index in info to field in error */
664 } SRV_Q_NET_SHARE_ADD
;
666 /* SRV_R_NET_SHARE_ADD */
667 typedef struct r_net_share_add
670 uint32 ptr_parm_error
;
673 WERROR status
; /* return status */
675 } SRV_R_NET_SHARE_ADD
;
677 /* SRV_Q_NET_SHARE_DEL */
678 typedef struct q_net_share_del
681 UNISTR2 uni_srv_name
;
682 UNISTR2 uni_share_name
;
685 } SRV_Q_NET_SHARE_DEL
;
687 /* SRV_R_NET_SHARE_DEL */
688 typedef struct r_net_share_del
690 WERROR status
; /* return status */
692 } SRV_R_NET_SHARE_DEL
;
694 /* FILE_INFO_3 (level 3 file info strings) */
695 typedef struct file_info3_info
697 uint32 id
; /* file index */
698 uint32 perms
; /* file permissions. don't know what format */
699 uint32 num_locks
; /* file locks */
700 uint32 ptr_path_name
; /* file name */
701 uint32 ptr_user_name
; /* file owner */
705 /* FILE_INFO_3_STR (level 3 file info strings) */
706 typedef struct str_file_info3_info
708 UNISTR2 uni_path_name
; /* unicode string of file name */
709 UNISTR2 uni_user_name
; /* unicode string of file owner. */
713 /* SRV_FILE_INFO_3 */
714 typedef struct srv_file_info_3
716 uint32 num_entries_read
; /* EntriesRead */
717 uint32 ptr_file_info
; /* Buffer */
719 uint32 num_entries_read2
; /* EntriesRead */
720 FILE_INFO_3 info_3
; /* file entry details */
721 FILE_INFO_3_STR info_3_str
; /* file entry strings */
724 /* SRV_FILE_INFO_CTR */
725 typedef struct srv_file_info_3_info
727 uint32 switch_value
; /* switch value */
728 uint32 ptr_file_info
; /* pointer to file info union */
735 SRV_FILE_INFO_3
*info3
;
741 /* SRV_Q_NET_FILE_ENUM */
742 typedef struct q_net_file_enum_info
744 uint32 ptr_srv_name
; /* pointer (to server name?) */
745 UNISTR2 uni_srv_name
; /* server name */
747 uint32 ptr_qual_name
; /* pointer (to qualifier name) */
748 UNISTR2 uni_qual_name
; /* qualifier name "\\qualifier" */
750 uint32 ptr_user_name
; /* pointer (to user name) */
751 UNISTR2 uni_user_name
; /* user name */
753 uint32 file_level
; /* file level */
755 SRV_FILE_INFO_CTR ctr
;
757 uint32 preferred_len
; /* preferred maximum length (0xffff ffff) */
760 } SRV_Q_NET_FILE_ENUM
;
763 /* SRV_R_NET_FILE_ENUM */
764 typedef struct r_net_file_enum_info
766 uint32 file_level
; /* file level */
768 SRV_FILE_INFO_CTR ctr
;
770 uint32 total_entries
; /* total number of files */
773 WERROR status
; /* return status */
775 } SRV_R_NET_FILE_ENUM
;
777 /* SRV_Q_NET_FILE_CLOSE */
778 typedef struct q_net_file_close
780 uint32 ptr_srv_name
; /* pointer to server name */
781 UNISTR2 uni_srv_name
; /* server name */
784 } SRV_Q_NET_FILE_CLOSE
;
786 /* SRV_R_NET_FILE_CLOSE */
787 typedef struct r_net_file_close
789 WERROR status
; /* return status */
790 } SRV_R_NET_FILE_CLOSE
;
793 typedef struct srv_info_100_info
795 uint32 platform_id
; /* 0x500 */
796 uint32 ptr_name
; /* pointer to server name */
798 UNISTR2 uni_name
; /* server name "server" */
803 typedef struct srv_info_101_info
805 uint32 platform_id
; /* 0x500 */
806 uint32 ptr_name
; /* pointer to server name */
807 uint32 ver_major
; /* 0x4 */
808 uint32 ver_minor
; /* 0x2 */
809 uint32 srv_type
; /* browse etc type */
810 uint32 ptr_comment
; /* pointer to server comment */
812 UNISTR2 uni_name
; /* server name "server" */
813 UNISTR2 uni_comment
; /* server comment "samba x.x.x blah" */
818 typedef struct srv_info_102_info
820 uint32 platform_id
; /* 0x500 */
821 uint32 ptr_name
; /* pointer to server name */
822 uint32 ver_major
; /* 0x4 */
823 uint32 ver_minor
; /* 0x2 */
824 uint32 srv_type
; /* browse etc type */
825 uint32 ptr_comment
; /* pointer to server comment */
826 uint32 users
; /* 0xffff ffff*/
827 uint32 disc
; /* 0xf */
828 uint32 hidden
; /* 0x0 */
829 uint32 announce
; /* 240 */
830 uint32 ann_delta
; /* 3000 */
831 uint32 licenses
; /* 0 */
832 uint32 ptr_usr_path
; /* pointer to user path */
834 UNISTR2 uni_name
; /* server name "server" */
835 UNISTR2 uni_comment
; /* server comment "samba x.x.x blah" */
836 UNISTR2 uni_usr_path
; /* "c:\" (eh?) */
842 typedef struct srv_info_ctr_info
844 uint32 switch_value
; /* switch value */
845 uint32 ptr_srv_ctr
; /* pointer to server info */
848 SRV_INFO_102 sv102
; /* server info level 102 */
849 SRV_INFO_101 sv101
; /* server info level 101 */
850 SRV_INFO_100 sv100
; /* server info level 100 */
856 /* SRV_Q_NET_SRV_GET_INFO */
857 typedef struct q_net_srv_get_info
860 UNISTR2 uni_srv_name
; /* "\\server" */
863 } SRV_Q_NET_SRV_GET_INFO
;
865 /* SRV_R_NET_SRV_GET_INFO */
866 typedef struct r_net_srv_get_info
870 WERROR status
; /* return status */
872 } SRV_R_NET_SRV_GET_INFO
;
874 /* SRV_Q_NET_SRV_SET_INFO */
875 typedef struct q_net_srv_set_info
878 UNISTR2 uni_srv_name
; /* "\\server" */
883 } SRV_Q_NET_SRV_SET_INFO
;
886 /* SRV_R_NET_SRV_SET_INFO */
887 typedef struct r_net_srv_set_info
889 uint32 switch_value
; /* switch value */
891 WERROR status
; /* return status */
893 } SRV_R_NET_SRV_SET_INFO
;
895 /* SRV_Q_NET_REMOTE_TOD */
896 typedef struct q_net_remote_tod
899 UNISTR2 uni_srv_name
; /* "\\server" */
901 } SRV_Q_NET_REMOTE_TOD
;
903 /* TIME_OF_DAY_INFO */
904 typedef struct time_of_day_info
921 /* SRV_R_NET_REMOTE_TOD */
922 typedef struct r_net_remote_tod
924 uint32 ptr_srv_tod
; /* pointer to TOD */
925 TIME_OF_DAY_INFO
*tod
;
927 WERROR status
; /* return status */
929 } SRV_R_NET_REMOTE_TOD
;
931 /* SRV_Q_NET_FILE_QUERY_SECDESC */
932 typedef struct q_net_file_query_secdesc
935 UNISTR2 uni_srv_name
;
936 uint32 ptr_qual_name
;
937 UNISTR2 uni_qual_name
;
938 UNISTR2 uni_file_name
;
942 } SRV_Q_NET_FILE_QUERY_SECDESC
;
944 /* SRV_R_NET_FILE_QUERY_SECDESC */
945 typedef struct r_net_file_query_secdesc
948 uint32 size_response
;
953 } SRV_R_NET_FILE_QUERY_SECDESC
;
955 /* SRV_Q_NET_FILE_SET_SECDESC */
956 typedef struct q_net_file_set_secdesc
959 UNISTR2 uni_srv_name
;
960 uint32 ptr_qual_name
;
961 UNISTR2 uni_qual_name
;
962 UNISTR2 uni_file_name
;
968 } SRV_Q_NET_FILE_SET_SECDESC
;
970 /* SRV_R_NET_FILE_SET_SECDESC */
971 typedef struct r_net_file_set_secdesc
974 } SRV_R_NET_FILE_SET_SECDESC
;
976 #endif /* _RPC_SRVSVC_H */