1 | /*
|
---|
2 | Unix SMB/CIFS implementation.
|
---|
3 | SMB parameters and setup
|
---|
4 | Copyright (C) Andrew Tridgell 1992-1999
|
---|
5 | Copyright (C) Luke Kenneth Casson Leighton 1996-1999
|
---|
6 |
|
---|
7 | This program is free software; you can redistribute it and/or modify
|
---|
8 | it under the terms of the GNU General Public License as published by
|
---|
9 | the Free Software Foundation; either version 2 of the License, or
|
---|
10 | (at your option) any later version.
|
---|
11 |
|
---|
12 | This program is distributed in the hope that it will be useful,
|
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | GNU General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License
|
---|
18 | along with this program; if not, write to the Free Software
|
---|
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
20 | */
|
---|
21 |
|
---|
22 | #ifndef _RPC_BRS_H /* _RPC_BRS_H */
|
---|
23 | #define _RPC_BRS_H
|
---|
24 |
|
---|
25 |
|
---|
26 | /* brssvc pipe */
|
---|
27 | #define BRS_QUERY_INFO 0x02
|
---|
28 |
|
---|
29 |
|
---|
30 | /* BRS_Q_QUERY_INFO - probably a capabilities request */
|
---|
31 | typedef struct q_brs_query_info_info
|
---|
32 | {
|
---|
33 | uint32 ptr_srv_name; /* pointer (to server name?) */
|
---|
34 | UNISTR2 uni_srv_name; /* unicode server name starting with '\\' */
|
---|
35 |
|
---|
36 | uint16 switch_value1; /* info level 100 (0x64) */
|
---|
37 | /* align */
|
---|
38 | uint16 switch_value2; /* info level 100 (0x64) */
|
---|
39 |
|
---|
40 | uint32 ptr;
|
---|
41 | uint32 pad1;
|
---|
42 | uint32 pad2;
|
---|
43 |
|
---|
44 | } BRS_Q_QUERY_INFO;
|
---|
45 |
|
---|
46 |
|
---|
47 | /* BRS_INFO_100 - level 100 info */
|
---|
48 | typedef struct brs_info_100_info
|
---|
49 | {
|
---|
50 | uint32 pad1;
|
---|
51 | uint32 ptr2;
|
---|
52 | uint32 pad2;
|
---|
53 | uint32 pad3;
|
---|
54 |
|
---|
55 | } BRS_INFO_100;
|
---|
56 |
|
---|
57 |
|
---|
58 | /* BRS_R_QUERY_INFO - probably a capabilities request */
|
---|
59 | typedef struct r_brs_query_info_info
|
---|
60 | {
|
---|
61 | uint16 switch_value1; /* 100 (0x64) - switch value */
|
---|
62 | /* align */
|
---|
63 | uint16 switch_value2; /* info level 100 (0x64) */
|
---|
64 |
|
---|
65 | /* for now, only level 100 is supported. this should be an enum container */
|
---|
66 | uint32 ptr_1; /* pointer 1 */
|
---|
67 |
|
---|
68 | union
|
---|
69 | {
|
---|
70 | BRS_INFO_100 *brs100; /* browser info level 100 */
|
---|
71 | void *id;
|
---|
72 |
|
---|
73 | } info;
|
---|
74 |
|
---|
75 | NTSTATUS status; /* return status */
|
---|
76 |
|
---|
77 | } BRS_R_QUERY_INFO;
|
---|
78 |
|
---|
79 | #endif /* _RPC_BRS_H */
|
---|
80 |
|
---|