Sync with trunk.
[reactos.git] / dll / win32 / netapi32 / group.c
1 /*
2 * Copyright 2002 Andriy Palamarchuk
3 *
4 * netapi32 access functions
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 #include "netapi32.h"
22
23 WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
24
25
26 /************************************************************
27 * NetGroupAdd (NETAPI32.@)
28 *
29 */
30 NET_API_STATUS
31 WINAPI
32 NetGroupAdd(IN LPCWSTR servername,
33 IN DWORD level,
34 IN LPBYTE buf,
35 OUT LPDWORD parm_err)
36 {
37 FIXME("(%s, %d, %p, %p) stub!\n", debugstr_w(servername),
38 level, buf, parm_err);
39 return ERROR_ACCESS_DENIED;
40 }
41
42
43 /************************************************************
44 * NetGroupAddUser (NETAPI32.@)
45 *
46 */
47 NET_API_STATUS
48 WINAPI
49 NetGroupAddUser(IN LPCWSTR servername,
50 IN LPCWSTR groupname,
51 IN LPCWSTR username)
52 {
53 FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
54 debugstr_w(groupname), debugstr_w(username));
55 return ERROR_ACCESS_DENIED;
56 }
57
58
59 /************************************************************
60 * NetGroupDel (NETAPI32.@)
61 *
62 */
63 NET_API_STATUS
64 WINAPI
65 NetGroupDel(IN LPCWSTR servername,
66 IN LPCWSTR groupname)
67 {
68 FIXME("(%s, %s) stub!\n", debugstr_w(servername),
69 debugstr_w(groupname));
70 return ERROR_ACCESS_DENIED;
71 }
72
73
74 /************************************************************
75 * NetGroupDelUser (NETAPI32.@)
76 *
77 */
78 NET_API_STATUS
79 WINAPI
80 NetGroupDelUser(IN LPCWSTR servername,
81 IN LPCWSTR groupname,
82 IN LPCWSTR username)
83 {
84 FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
85 debugstr_w(groupname), debugstr_w(username));
86 return ERROR_ACCESS_DENIED;
87 }
88
89
90 /************************************************************
91 * NetGroupEnum (NETAPI32.@)
92 *
93 */
94 NET_API_STATUS
95 WINAPI
96 NetGroupEnum(IN LPCWSTR servername,
97 IN DWORD level,
98 OUT LPBYTE *bufptr,
99 IN DWORD prefmaxlen,
100 OUT LPDWORD entriesread,
101 OUT LPDWORD totalentries,
102 IN OUT PDWORD_PTR resume_handle)
103 {
104 FIXME("(%s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername),
105 level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle);
106 return ERROR_ACCESS_DENIED;
107 }
108
109
110 /************************************************************
111 * NetGroupGetInfo (NETAPI32.@)
112 *
113 */
114 NET_API_STATUS
115 WINAPI
116 NetGroupGetInfo(IN LPCWSTR servername,
117 IN LPCWSTR groupname,
118 IN DWORD level,
119 OUT LPBYTE *bufptr)
120 {
121 FIXME("(%s, %s, %d, %p) stub!\n", debugstr_w(servername),
122 debugstr_w(groupname), level, bufptr);
123 return ERROR_ACCESS_DENIED;
124 }
125
126
127 /************************************************************
128 * NetGroupGetUsers (NETAPI32.@)
129 *
130 */
131 NET_API_STATUS
132 WINAPI
133 NetGroupGetUsers(IN LPCWSTR servername,
134 IN LPCWSTR groupname,
135 IN DWORD level,
136 OUT LPBYTE *bufptr,
137 IN DWORD prefmaxlen,
138 OUT LPDWORD entriesread,
139 OUT LPDWORD totalentries,
140 IN OUT PDWORD_PTR resume_handle)
141 {
142 FIXME("(%s, %s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername),
143 debugstr_w(groupname), level, bufptr, prefmaxlen, entriesread,
144 totalentries, resume_handle);
145 return ERROR_ACCESS_DENIED;
146 }
147
148
149 /************************************************************
150 * NetGroupSetInfo (NETAPI32.@)
151 *
152 */
153 NET_API_STATUS
154 WINAPI
155 NetGroupSetInfo(IN LPCWSTR servername,
156 IN LPCWSTR groupname,
157 IN DWORD level,
158 IN LPBYTE buf,
159 OUT LPDWORD parm_err)
160 {
161 FIXME("(%s, %s, %d, %p, %p) stub!\n", debugstr_w(servername),
162 debugstr_w(groupname), level, buf, parm_err);
163 return ERROR_ACCESS_DENIED;
164 }
165
166
167 /************************************************************
168 * NetGroupSetUsers (NETAPI32.@)
169 *
170 */
171 NET_API_STATUS
172 WINAPI
173 NetGroupSetUsers(IN LPCWSTR servername,
174 IN LPCWSTR groupname,
175 IN DWORD level,
176 IN LPBYTE buf,
177 IN DWORD totalentries)
178 {
179 FIXME("(%s, %s, %d, %p, %d) stub!\n", debugstr_w(servername),
180 debugstr_w(groupname), level, buf, totalentries);
181 return ERROR_ACCESS_DENIED;
182 }
183
184 /* EOF */