iteration of sam passwd entries was an order n-cubed algorithm due
[samba.git] / source3 / include / rpc_wkssvc.h
1 /* 
2    Unix SMB/Netbios implementation.
3    Version 1.9.
4    SMB parameters and setup
5    Copyright (C) Andrew Tridgell 1992-1997
6    Copyright (C) Luke Kenneth Casson Leighton 1996-1997
7    Copyright (C) Paul Ashton 1997
8    
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.
13    
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.
18    
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.
22 */
23
24 #ifndef _RPC_WKS_H /* _RPC_WKS_H */
25 #define _RPC_WKS_H 
26
27
28 /* wkssvc pipe */
29 #define WKS_QUERY_INFO    0x00
30
31
32 /* WKS_Q_QUERY_INFO - probably a capabilities request */
33 typedef struct q_wks_query_info_info
34 {
35         uint32 ptr_srv_name;         /* pointer (to server name?) */
36         UNISTR2 uni_srv_name;        /* unicode server name starting with '\\' */
37
38         uint16 switch_value;            /* info level 100 (0x64) */
39
40 } WKS_Q_QUERY_INFO;
41
42
43 /* WKS_INFO_100 - level 100 info */
44 typedef struct wks_info_100_info
45 {
46         uint32 platform_id;          /* 0x0000 01f4 - unknown */
47         uint32 ptr_compname;       /* pointer to server name */
48         uint32 ptr_lan_grp ;       /* pointer to domain name */
49         uint32 ver_major;          /* 4 - unknown */
50         uint32 ver_minor;          /* 0 - unknown */
51
52         UNISTR2 uni_compname;      /* unicode server name */
53         UNISTR2 uni_lan_grp ;      /* unicode domain name */
54
55 } WKS_INFO_100;
56
57
58 /* WKS_R_QUERY_INFO - probably a capabilities request */
59 typedef struct r_wks_query_info_info
60 {
61         uint16 switch_value;          /* 100 (0x64) - switch value */
62
63         /* for now, only level 100 is supported.  this should be an enum container */
64         uint32 ptr_1;              /* pointer 1 */
65         WKS_INFO_100 *wks100;      /* workstation info level 100 */
66
67         uint32 status;             /* return status */
68
69 } WKS_R_QUERY_INFO;
70
71
72 #endif /* _RPC_WKS_H */
73