12fbfb601d7d3439b6286fd1949b895374a729d0
[samba.git] / source3 / include / rpc_samr.h
1 /* 
2    Unix SMB/CIFS implementation.
3    SMB parameters and setup
4    Copyright (C) Andrew Tridgell              1992-2000
5    Copyright (C) Luke Kenneth Casson Leighton 1996-2000
6    Copyright (C) Paul Ashton                  1997-2000
7    Copyright (C) Jean François Micouleau      1998-2001
8    Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002
9    
10    
11    This program is free software; you can redistribute it and/or modify
12    it under the terms of the GNU General Public License as published by
13    the Free Software Foundation; either version 3 of the License, or
14    (at your option) any later version.
15    
16    This program is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19    GNU General Public License for more details.
20    
21    You should have received a copy of the GNU General Public License
22    along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 */
24
25 #ifndef _RPC_SAMR_H /* _RPC_SAMR_H */
26 #define _RPC_SAMR_H 
27
28 /*******************************************************************
29  the following information comes from a QuickView on samsrv.dll,
30  and gives an idea of exactly what is needed:
31  
32 x SamrAddMemberToAlias
33 x SamrAddMemberToGroup
34 SamrAddMultipleMembersToAlias
35 x SamrChangePasswordUser
36 x SamrCloseHandle
37 x SamrConnect
38 x SamrCreateAliasInDomain
39 x SamrCreateGroupInDomain
40 x SamrCreateUserInDomain
41 ? SamrDeleteAlias
42 SamrDeleteGroup
43 x SamrDeleteUser
44 x SamrEnumerateAliasesInDomain
45 SamrEnumerateDomainsInSamServer
46 x SamrEnumerateGroupsInDomain
47 x SamrEnumerateUsersInDomain
48 SamrGetUserDomainPasswordInformation
49 SamrLookupDomainInSamServer
50 ? SamrLookupIdsInDomain
51 x SamrLookupNamesInDomain
52 x SamrOpenAlias
53 x SamrOpenDomain
54 x SamrOpenGroup
55 x SamrOpenUser
56 x SamrQueryDisplayInformation
57 x SamrQueryInformationAlias
58 SamrQueryInformationDomain
59 ? SamrQueryInformationUser
60 x SamrQuerySecurityObject
61 SamrRemoveMemberFromAlias
62 SamrRemoveMemberFromForiegnDomain
63 SamrRemoveMemberFromGroup
64 SamrRemoveMultipleMembersFromAlias
65 x SamrSetInformationAlias
66 SamrSetInformationDomain
67 x SamrSetInformationGroup
68 x SamrSetInformationUser
69 SamrSetMemberAttributesOfGroup
70 SamrSetSecurityObject
71 SamrShutdownSamServer
72 SamrTestPrivateFunctionsDomain
73 SamrTestPrivateFunctionsUser
74
75 ********************************************************************/
76
77 #define MAX_SAM_ENTRIES_W2K 0x400
78 #define MAX_SAM_ENTRIES_W95 50
79 /* The following should be the greater of the preceeding two. */
80 #define MAX_SAM_ENTRIES MAX_SAM_ENTRIES_W2K
81
82 /* these are from the old rpc_samr.h - they are needed while the merge
83    is still going on */
84 #define MAX_SAM_SIDS 15
85
86 #endif /* _RPC_SAMR_H */