Add error index to netshareadd rpc.
[Samba/nascimento.git] / source / include / rpc_srvsvc.h
blob8dded7297356a721b6b4b5853adb614cd2e62a54
1 /*
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
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef _RPC_SRVSVC_H /* _RPC_SRVSVC_H */
24 #define _RPC_SRVSVC_H
26 /* srvsvc pipe */
27 #define SRV_NET_CONN_ENUM 0x08
28 #define SRV_NET_FILE_ENUM 0x09
29 #define SRV_NET_SESS_ENUM 0x0c
30 #define SRV_NET_SHARE_ADD 0x0e
31 #define SRV_NET_SHARE_ENUM_ALL 0x0f
32 #define SRV_NET_SHARE_GET_INFO 0x10
33 #define SRV_NET_SHARE_SET_INFO 0x11
34 #define SRV_NET_SHARE_DEL 0x12
35 #define SRV_NET_SRV_GET_INFO 0x15
36 #define SRV_NET_SRV_SET_INFO 0x16
37 #define SRV_NET_DISK_ENUM 0x17
38 #define SRV_NET_REMOTE_TOD 0x1c
39 #define SRV_NET_NAME_VALIDATE 0x21
40 #define SRV_NET_SHARE_ENUM 0x24
41 #define SRV_NET_FILE_QUERY_SECDESC 0x27
42 #define SRV_NET_FILE_SET_SECDESC 0x28
44 #define MAX_SERVER_DISK_ENTRIES 15
46 typedef struct disk_info {
47 uint32 unknown;
48 UNISTR3 disk_name;
49 } DISK_INFO;
51 typedef struct disk_enum_container {
52 uint32 level;
53 uint32 entries_read;
54 uint32 unknown;
55 uint32 disk_info_ptr;
56 DISK_INFO disk_info[MAX_SERVER_DISK_ENTRIES];
57 } DISK_ENUM_CONTAINER;
59 typedef struct net_srv_disk_enum {
60 uint32 ptr_srv_name; /* pointer (to server name?) */
61 UNISTR2 uni_srv_name; /* server name */
63 DISK_ENUM_CONTAINER disk_enum_ctr;
65 uint32 preferred_len; /* preferred maximum length (0xffff ffff) */
66 uint32 total_entries; /* total number of entries */
67 ENUM_HND enum_hnd;
68 WERROR status; /* return status */
69 } SRV_Q_NET_DISK_ENUM, SRV_R_NET_DISK_ENUM;
71 typedef struct net_name_validate {
72 uint32 ptr_srv_name;
73 UNISTR2 uni_srv_name;
74 UNISTR2 uni_name; /*name to validate*/
75 uint32 type;
76 uint32 flags;
77 WERROR status;
78 } SRV_Q_NET_NAME_VALIDATE, SRV_R_NET_NAME_VALIDATE;
80 /* SESS_INFO_0 (pointers to level 0 session info strings) */
81 typedef struct ptr_sess_info0
83 uint32 ptr_name; /* pointer to name. */
85 } SESS_INFO_0;
87 /* SESS_INFO_0_STR (level 0 session info strings) */
88 typedef struct str_sess_info0
90 UNISTR2 uni_name; /* unicode string of name */
92 } SESS_INFO_0_STR;
94 /* oops - this is going to take up a *massive* amount of stack. */
95 /* the UNISTR2s already have 1024 uint16 chars in them... */
96 #define MAX_SESS_ENTRIES 32
98 /* SRV_SESS_INFO_0 */
99 typedef struct srv_sess_info_0_info
101 uint32 num_entries_read; /* EntriesRead */
102 uint32 ptr_sess_info; /* Buffer */
103 uint32 num_entries_read2; /* EntriesRead */
105 SESS_INFO_0 info_0 [MAX_SESS_ENTRIES]; /* session entry pointers */
106 SESS_INFO_0_STR info_0_str[MAX_SESS_ENTRIES]; /* session entry strings */
108 } SRV_SESS_INFO_0;
110 /* SESS_INFO_1 (pointers to level 1 session info strings) */
111 typedef struct ptr_sess_info1
113 uint32 ptr_name; /* pointer to name. */
114 uint32 ptr_user; /* pointer to user name. */
116 uint32 num_opens;
117 uint32 open_time;
118 uint32 idle_time;
119 uint32 user_flags;
121 } SESS_INFO_1;
123 /* SESS_INFO_1_STR (level 1 session info strings) */
124 typedef struct str_sess_info1
126 UNISTR2 uni_name; /* unicode string of name */
127 UNISTR2 uni_user; /* unicode string of user */
129 } SESS_INFO_1_STR;
131 /* SRV_SESS_INFO_1 */
132 typedef struct srv_sess_info_1_info
134 uint32 num_entries_read; /* EntriesRead */
135 uint32 ptr_sess_info; /* Buffer */
136 uint32 num_entries_read2; /* EntriesRead */
138 SESS_INFO_1 info_1 [MAX_SESS_ENTRIES]; /* session entry pointers */
139 SESS_INFO_1_STR info_1_str[MAX_SESS_ENTRIES]; /* session entry strings */
141 } SRV_SESS_INFO_1;
143 /* SRV_SESS_INFO_CTR */
144 typedef struct srv_sess_info_ctr_info
146 uint32 switch_value; /* switch value */
147 uint32 ptr_sess_ctr; /* pointer to sess info union */
148 union
150 SRV_SESS_INFO_0 info0; /* session info level 0 */
151 SRV_SESS_INFO_1 info1; /* session info level 1 */
153 } sess;
155 } SRV_SESS_INFO_CTR;
158 /* SRV_Q_NET_SESS_ENUM */
159 typedef struct q_net_sess_enum_info
161 uint32 ptr_srv_name; /* pointer (to server name?) */
162 UNISTR2 uni_srv_name; /* server name */
164 uint32 ptr_qual_name; /* pointer (to qualifier name) */
165 UNISTR2 uni_qual_name; /* qualifier name "\\qualifier" */
167 uint32 sess_level; /* session level */
169 SRV_SESS_INFO_CTR *ctr;
171 uint32 preferred_len; /* preferred maximum length (0xffff ffff) */
172 ENUM_HND enum_hnd;
174 } SRV_Q_NET_SESS_ENUM;
176 /* SRV_R_NET_SESS_ENUM */
177 typedef struct r_net_sess_enum_info
179 uint32 sess_level; /* share level */
181 SRV_SESS_INFO_CTR *ctr;
183 uint32 total_entries; /* total number of entries */
184 ENUM_HND enum_hnd;
186 WERROR status; /* return status */
188 } SRV_R_NET_SESS_ENUM;
190 /* CONN_INFO_0 (pointers to level 0 connection info strings) */
191 typedef struct ptr_conn_info0
193 uint32 id; /* connection id. */
195 } CONN_INFO_0;
197 /* oops - this is going to take up a *massive* amount of stack. */
198 /* the UNISTR2s already have 1024 uint16 chars in them... */
199 #define MAX_CONN_ENTRIES 32
201 /* SRV_CONN_INFO_0 */
202 typedef struct srv_conn_info_0_info
204 uint32 num_entries_read; /* EntriesRead */
205 uint32 ptr_conn_info; /* Buffer */
206 uint32 num_entries_read2; /* EntriesRead */
208 CONN_INFO_0 info_0 [MAX_CONN_ENTRIES]; /* connection entry pointers */
210 } SRV_CONN_INFO_0;
212 /* CONN_INFO_1 (pointers to level 1 connection info strings) */
213 typedef struct ptr_conn_info1
215 uint32 id; /* connection id */
216 uint32 type; /* 0x3 */
217 uint32 num_opens;
218 uint32 num_users;
219 uint32 open_time;
221 uint32 ptr_usr_name; /* pointer to user name. */
222 uint32 ptr_net_name; /* pointer to network name (e.g IPC$). */
224 } CONN_INFO_1;
226 /* CONN_INFO_1_STR (level 1 connection info strings) */
227 typedef struct str_conn_info1
229 UNISTR2 uni_usr_name; /* unicode string of user */
230 UNISTR2 uni_net_name; /* unicode string of name */
232 } CONN_INFO_1_STR;
234 /* SRV_CONN_INFO_1 */
235 typedef struct srv_conn_info_1_info
237 uint32 num_entries_read; /* EntriesRead */
238 uint32 ptr_conn_info; /* Buffer */
239 uint32 num_entries_read2; /* EntriesRead */
241 CONN_INFO_1 info_1 [MAX_CONN_ENTRIES]; /* connection entry pointers */
242 CONN_INFO_1_STR info_1_str[MAX_CONN_ENTRIES]; /* connection entry strings */
244 } SRV_CONN_INFO_1;
246 /* SRV_CONN_INFO_CTR */
247 typedef struct srv_conn_info_ctr_info
249 uint32 switch_value; /* switch value */
250 uint32 ptr_conn_ctr; /* pointer to conn info union */
251 union
253 SRV_CONN_INFO_0 info0; /* connection info level 0 */
254 SRV_CONN_INFO_1 info1; /* connection info level 1 */
256 } conn;
258 } SRV_CONN_INFO_CTR;
261 /* SRV_Q_NET_CONN_ENUM */
262 typedef struct q_net_conn_enum_info
264 uint32 ptr_srv_name; /* pointer (to server name) */
265 UNISTR2 uni_srv_name; /* server name "\\server" */
267 uint32 ptr_qual_name; /* pointer (to qualifier name) */
268 UNISTR2 uni_qual_name; /* qualifier name "\\qualifier" */
270 uint32 conn_level; /* connection level */
272 SRV_CONN_INFO_CTR *ctr;
274 uint32 preferred_len; /* preferred maximum length (0xffff ffff) */
275 ENUM_HND enum_hnd;
277 } SRV_Q_NET_CONN_ENUM;
279 /* SRV_R_NET_CONN_ENUM */
280 typedef struct r_net_conn_enum_info
282 uint32 conn_level; /* share level */
284 SRV_CONN_INFO_CTR *ctr;
286 uint32 total_entries; /* total number of entries */
287 ENUM_HND enum_hnd;
289 WERROR status; /* return status */
291 } SRV_R_NET_CONN_ENUM;
293 /* SH_INFO_1 (pointers to level 1 share info strings) */
294 typedef struct ptr_share_info1
296 uint32 ptr_netname; /* pointer to net name. */
297 uint32 type; /* ipc, print, disk ... */
298 uint32 ptr_remark; /* pointer to comment. */
300 } SH_INFO_1;
302 /* SH_INFO_1_STR (level 1 share info strings) */
303 typedef struct str_share_info1
305 UNISTR2 uni_netname; /* unicode string of net name */
306 UNISTR2 uni_remark; /* unicode string of comment */
308 } SH_INFO_1_STR;
310 /* SRV_SHARE_INFO_1 */
311 typedef struct share_info_1_info
313 SH_INFO_1 info_1;
314 SH_INFO_1_STR info_1_str;
316 } SRV_SHARE_INFO_1;
318 /* SH_INFO_2 (pointers to level 2 share info strings) */
319 typedef struct ptr_share_info2
321 uint32 ptr_netname; /* pointer to net name. */
322 uint32 type; /* ipc, print, disk ... */
323 uint32 ptr_remark; /* pointer to comment. */
324 uint32 perms; /* permissions */
325 uint32 max_uses; /* maximum uses */
326 uint32 num_uses; /* current uses */
327 uint32 ptr_path; /* pointer to path name */
328 uint32 ptr_passwd; /* pointer to password */
330 } SH_INFO_2;
332 /* SH_INFO_2_STR (level 2 share info strings) */
333 typedef struct str_share_info2
335 UNISTR2 uni_netname; /* unicode string of net name (e.g NETLOGON) */
336 UNISTR2 uni_remark; /* unicode string of comment (e.g "Logon server share") */
337 UNISTR2 uni_path; /* unicode string of local path (e.g c:\winnt\system32\repl\import\scripts) */
338 UNISTR2 uni_passwd; /* unicode string of password - presumably for share level security (e.g NULL) */
340 } SH_INFO_2_STR;
342 /* SRV_SHARE_INFO_2 */
343 typedef struct share_info_2_info
345 SH_INFO_2 info_2;
346 SH_INFO_2_STR info_2_str;
348 } SRV_SHARE_INFO_2;
350 typedef struct ptr_share_info501
352 uint32 ptr_netname; /* pointer to net name */
353 uint32 type; /* ipc, print, disk */
354 uint32 ptr_remark; /* pointer to comment */
355 uint32 csc_policy; /* client-side offline caching policy << 4 */
356 } SH_INFO_501;
358 typedef struct str_share_info501
360 UNISTR2 uni_netname; /* unicode string of net name */
361 UNISTR2 uni_remark; /* unicode string of comment */
362 } SH_INFO_501_STR;
364 /* SRV_SHARE_INFO_501 */
365 typedef struct share_info_501_info
367 SH_INFO_501 info_501;
368 SH_INFO_501_STR info_501_str;
369 } SRV_SHARE_INFO_501;
371 /* SH_INFO_502 (pointers to level 502 share info strings) */
372 typedef struct ptr_share_info502
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 */
382 uint32 sd_size; /* size of security descriptor */
383 uint32 ptr_sd; /* pointer to security descriptor */
385 } SH_INFO_502;
387 /* SH_INFO_502_STR (level 502 share info strings) */
388 typedef struct str_share_info502
390 SH_INFO_502 *ptrs;
392 UNISTR2 uni_netname; /* unicode string of net name (e.g NETLOGON) */
393 UNISTR2 uni_remark; /* unicode string of comment (e.g "Logon server share") */
394 UNISTR2 uni_path; /* unicode string of local path (e.g c:\winnt\system32\repl\import\scripts) */
395 UNISTR2 uni_passwd; /* unicode string of password - presumably for share level security (e.g NULL) */
397 uint32 sd_size;
398 SEC_DESC *sd;
400 } SH_INFO_502_STR;
402 /* SRV_SHARE_INFO_502 */
403 typedef struct share_info_502_info
405 SH_INFO_502 info_502;
406 SH_INFO_502_STR info_502_str;
408 } SRV_SHARE_INFO_502;
410 /* SRV_SHARE_INFO_1005 */
411 typedef struct share_info_1005_info
413 uint32 dfs_root_flag;
414 } SRV_SHARE_INFO_1005;
416 /* SRV_SHARE_INFO_1501 */
417 typedef struct share_info_1501_info
419 SEC_DESC_BUF *sdb;
420 } SRV_SHARE_INFO_1501;
422 /* SRV_SHARE_INFO_CTR */
423 typedef struct srv_share_info_ctr_info
425 uint32 info_level;
426 uint32 switch_value;
427 uint32 ptr_share_info;
429 uint32 num_entries;
430 uint32 ptr_entries;
431 uint32 num_entries2;
433 union {
434 SRV_SHARE_INFO_1 *info1; /* share info level 1 */
435 SRV_SHARE_INFO_2 *info2; /* share info level 2 */
436 SRV_SHARE_INFO_501 *info501; /* share info level 501 */
437 SRV_SHARE_INFO_502 *info502; /* share info level 502 */
438 void *info;
440 } share;
442 } SRV_SHARE_INFO_CTR;
444 /* SRV_Q_NET_SHARE_ENUM */
445 typedef struct q_net_share_enum_info
447 uint32 ptr_srv_name; /* pointer (to server name?) */
448 UNISTR2 uni_srv_name; /* server name */
450 SRV_SHARE_INFO_CTR ctr; /* share info container */
452 uint32 preferred_len; /* preferred maximum length (0xffff ffff) */
454 ENUM_HND enum_hnd;
456 } SRV_Q_NET_SHARE_ENUM;
459 /* SRV_R_NET_SHARE_ENUM */
460 typedef struct r_net_share_enum_info
462 SRV_SHARE_INFO_CTR ctr; /* share info container */
464 uint32 total_entries; /* total number of entries */
465 ENUM_HND enum_hnd;
467 WERROR status; /* return status */
469 } SRV_R_NET_SHARE_ENUM;
472 /* SRV_Q_NET_SHARE_GET_INFO */
473 typedef struct q_net_share_get_info_info
475 uint32 ptr_srv_name;
476 UNISTR2 uni_srv_name;
478 UNISTR2 uni_share_name;
479 uint32 info_level;
481 } SRV_Q_NET_SHARE_GET_INFO;
483 /* JRA. NB. We also need level 1004 and 1006 here. */
485 /* SRV_SHARE_INFO */
486 typedef struct srv_share_info {
487 uint32 switch_value;
488 uint32 ptr_share_ctr;
490 union {
491 SRV_SHARE_INFO_1 info1;
492 SRV_SHARE_INFO_2 info2;
493 SRV_SHARE_INFO_501 info501;
494 SRV_SHARE_INFO_502 info502;
495 SRV_SHARE_INFO_1005 info1005;
496 SRV_SHARE_INFO_1501 info1501;
497 } share;
498 } SRV_SHARE_INFO;
500 /* SRV_R_NET_SHARE_GET_INFO */
501 typedef struct r_net_share_get_info_info
503 SRV_SHARE_INFO info;
504 WERROR status;
506 } SRV_R_NET_SHARE_GET_INFO;
508 /* SRV_Q_NET_SHARE_SET_INFO */
509 typedef struct q_net_share_set_info_info
511 uint32 ptr_srv_name;
512 UNISTR2 uni_srv_name;
514 UNISTR2 uni_share_name;
515 uint32 info_level;
517 SRV_SHARE_INFO info;
519 } SRV_Q_NET_SHARE_SET_INFO;
521 /* SRV_R_NET_SHARE_SET_INFO */
522 typedef struct r_net_share_set_info
524 uint32 switch_value; /* switch value */
526 WERROR status; /* return status */
528 } SRV_R_NET_SHARE_SET_INFO;
530 /* SRV_Q_NET_SHARE_ADD */
531 typedef struct q_net_share_add
533 uint32 ptr_srv_name;
534 UNISTR2 uni_srv_name;
536 uint32 info_level;
538 SRV_SHARE_INFO info;
540 uint32 ptr_err_index; /* pointer to error index */
541 uint32 err_index; /* index in info to field in error */
543 } SRV_Q_NET_SHARE_ADD;
545 /* SRV_R_NET_SHARE_ADD */
546 typedef struct r_net_share_add
548 uint32 switch_value; /* switch value */
550 WERROR status; /* return status */
552 } SRV_R_NET_SHARE_ADD;
554 /* SRV_Q_NET_SHARE_DEL */
555 typedef struct q_net_share_del
557 uint32 ptr_srv_name;
558 UNISTR2 uni_srv_name;
559 UNISTR2 uni_share_name;
560 uint32 reserved;
562 } SRV_Q_NET_SHARE_DEL;
564 /* SRV_R_NET_SHARE_DEL */
565 typedef struct r_net_share_del
567 WERROR status; /* return status */
569 } SRV_R_NET_SHARE_DEL;
571 /* FILE_INFO_3 (level 3 file info strings) */
572 typedef struct file_info3_info
574 uint32 id; /* file index */
575 uint32 perms; /* file permissions. don't know what format */
576 uint32 num_locks; /* file locks */
577 uint32 ptr_path_name; /* file name */
578 uint32 ptr_user_name; /* file owner */
580 } FILE_INFO_3;
582 /* FILE_INFO_3_STR (level 3 file info strings) */
583 typedef struct str_file_info3_info
585 UNISTR2 uni_path_name; /* unicode string of file name */
586 UNISTR2 uni_user_name; /* unicode string of file owner. */
588 } FILE_INFO_3_STR;
590 /* SRV_FILE_INFO_3 */
591 typedef struct srv_file_info_3
593 FILE_INFO_3 info_3; /* file entry details */
594 FILE_INFO_3_STR info_3_str; /* file entry strings */
596 } SRV_FILE_INFO_3;
598 /* SRV_FILE_INFO_CTR */
599 typedef struct srv_file_info_3_info
601 uint32 switch_value; /* switch value */
602 uint32 ptr_file_info; /* pointer to file info union */
604 uint32 num_entries;
605 uint32 ptr_entries;
606 uint32 num_entries2;
607 union
609 SRV_FILE_INFO_3 *info3;
610 } file;
612 } SRV_FILE_INFO_CTR;
615 /* SRV_Q_NET_FILE_ENUM */
616 typedef struct q_net_file_enum_info
618 uint32 ptr_srv_name; /* pointer (to server name?) */
619 UNISTR2 uni_srv_name; /* server name */
621 uint32 ptr_qual_name; /* pointer (to qualifier name) */
622 UNISTR2 uni_qual_name; /* qualifier name "\\qualifier" */
624 uint32 ptr_user_name; /* pointer (to user name) */
625 UNISTR2 uni_user_name; /* user name */
627 uint32 file_level; /* file level */
629 SRV_FILE_INFO_CTR ctr;
631 uint32 preferred_len; /* preferred maximum length (0xffff ffff) */
632 ENUM_HND enum_hnd;
634 } SRV_Q_NET_FILE_ENUM;
637 /* SRV_R_NET_FILE_ENUM */
638 typedef struct r_net_file_enum_info
640 uint32 file_level; /* file level */
642 SRV_FILE_INFO_CTR ctr;
644 uint32 total_entries; /* total number of files */
645 ENUM_HND enum_hnd;
647 WERROR status; /* return status */
649 } SRV_R_NET_FILE_ENUM;
651 /* SRV_INFO_100 */
652 typedef struct srv_info_100_info
654 uint32 platform_id; /* 0x500 */
655 uint32 ptr_name; /* pointer to server name */
657 UNISTR2 uni_name; /* server name "server" */
659 } SRV_INFO_100;
661 /* SRV_INFO_101 */
662 typedef struct srv_info_101_info
664 uint32 platform_id; /* 0x500 */
665 uint32 ptr_name; /* pointer to server name */
666 uint32 ver_major; /* 0x4 */
667 uint32 ver_minor; /* 0x2 */
668 uint32 srv_type; /* browse etc type */
669 uint32 ptr_comment; /* pointer to server comment */
671 UNISTR2 uni_name; /* server name "server" */
672 UNISTR2 uni_comment; /* server comment "samba x.x.x blah" */
674 } SRV_INFO_101;
676 /* SRV_INFO_102 */
677 typedef struct srv_info_102_info
679 uint32 platform_id; /* 0x500 */
680 uint32 ptr_name; /* pointer to server name */
681 uint32 ver_major; /* 0x4 */
682 uint32 ver_minor; /* 0x2 */
683 uint32 srv_type; /* browse etc type */
684 uint32 ptr_comment; /* pointer to server comment */
685 uint32 users; /* 0xffff ffff*/
686 uint32 disc; /* 0xf */
687 uint32 hidden; /* 0x0 */
688 uint32 announce; /* 240 */
689 uint32 ann_delta; /* 3000 */
690 uint32 licenses; /* 0 */
691 uint32 ptr_usr_path; /* pointer to user path */
693 UNISTR2 uni_name; /* server name "server" */
694 UNISTR2 uni_comment; /* server comment "samba x.x.x blah" */
695 UNISTR2 uni_usr_path; /* "c:\" (eh?) */
697 } SRV_INFO_102;
700 /* SRV_INFO_CTR */
701 typedef struct srv_info_ctr_info
703 uint32 switch_value; /* switch value */
704 uint32 ptr_srv_ctr; /* pointer to server info */
705 union
707 SRV_INFO_102 sv102; /* server info level 102 */
708 SRV_INFO_101 sv101; /* server info level 101 */
709 SRV_INFO_100 sv100; /* server info level 100 */
711 } srv;
713 } SRV_INFO_CTR;
715 /* SRV_Q_NET_SRV_GET_INFO */
716 typedef struct q_net_srv_get_info
718 uint32 ptr_srv_name;
719 UNISTR2 uni_srv_name; /* "\\server" */
720 uint32 switch_value;
722 } SRV_Q_NET_SRV_GET_INFO;
724 /* SRV_R_NET_SRV_GET_INFO */
725 typedef struct r_net_srv_get_info
727 SRV_INFO_CTR *ctr;
729 WERROR status; /* return status */
731 } SRV_R_NET_SRV_GET_INFO;
733 /* SRV_Q_NET_SRV_SET_INFO */
734 typedef struct q_net_srv_set_info
736 uint32 ptr_srv_name;
737 UNISTR2 uni_srv_name; /* "\\server" */
738 uint32 switch_value;
740 SRV_INFO_CTR *ctr;
742 } SRV_Q_NET_SRV_SET_INFO;
745 /* SRV_R_NET_SRV_SET_INFO */
746 typedef struct r_net_srv_set_info
748 uint32 switch_value; /* switch value */
750 WERROR status; /* return status */
752 } SRV_R_NET_SRV_SET_INFO;
754 /* SRV_Q_NET_REMOTE_TOD */
755 typedef struct q_net_remote_tod
757 uint32 ptr_srv_name;
758 UNISTR2 uni_srv_name; /* "\\server" */
760 } SRV_Q_NET_REMOTE_TOD;
762 /* TIME_OF_DAY_INFO */
763 typedef struct time_of_day_info
765 uint32 elapsedt;
766 uint32 msecs;
767 uint32 hours;
768 uint32 mins;
769 uint32 secs;
770 uint32 hunds;
771 uint32 zone;
772 uint32 tintervals;
773 uint32 day;
774 uint32 month;
775 uint32 year;
776 uint32 weekday;
778 } TIME_OF_DAY_INFO;
780 /* SRV_R_NET_REMOTE_TOD */
781 typedef struct r_net_remote_tod
783 uint32 ptr_srv_tod; /* pointer to TOD */
784 TIME_OF_DAY_INFO *tod;
786 WERROR status; /* return status */
788 } SRV_R_NET_REMOTE_TOD;
790 /* SRV_Q_NET_FILE_QUERY_SECDESC */
791 typedef struct q_net_file_query_secdesc
793 uint32 ptr_srv_name;
794 UNISTR2 uni_srv_name;
795 uint32 ptr_qual_name;
796 UNISTR2 uni_qual_name;
797 UNISTR2 uni_file_name;
798 uint32 unknown1;
799 uint32 unknown2;
800 uint32 unknown3;
801 } SRV_Q_NET_FILE_QUERY_SECDESC;
803 /* SRV_R_NET_FILE_QUERY_SECDESC */
804 typedef struct r_net_file_query_secdesc
806 uint32 ptr_response;
807 uint32 size_response;
808 uint32 ptr_secdesc;
809 uint32 size_secdesc;
810 SEC_DESC *sec_desc;
811 WERROR status;
812 } SRV_R_NET_FILE_QUERY_SECDESC;
814 /* SRV_Q_NET_FILE_SET_SECDESC */
815 typedef struct q_net_file_set_secdesc
817 uint32 ptr_srv_name;
818 UNISTR2 uni_srv_name;
819 uint32 ptr_qual_name;
820 UNISTR2 uni_qual_name;
821 UNISTR2 uni_file_name;
822 uint32 sec_info;
823 uint32 size_set;
824 uint32 ptr_secdesc;
825 uint32 size_secdesc;
826 SEC_DESC *sec_desc;
827 } SRV_Q_NET_FILE_SET_SECDESC;
829 /* SRV_R_NET_FILE_SET_SECDESC */
830 typedef struct r_net_file_set_secdesc
832 WERROR status;
833 } SRV_R_NET_FILE_SET_SECDESC;
835 #endif /* _RPC_SRVSVC_H */