92627ece51a093369c4a8d3b3953215c90a2618f
[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 * NetGroupAdd (NETAPI32.@)
27 *
28 */
29 NET_API_STATUS
30 WINAPI
31 NetGroupAdd(IN LPCWSTR servername,
32 IN DWORD level,
33 IN LPBYTE buf,
34 OUT LPDWORD parm_err)
35 {
36 FIXME("(%s, %d, %p, %p) stub!\n", debugstr_w(servername),
37 level, buf, parm_err);
38 return ERROR_ACCESS_DENIED;
39 }
40
41
42 /************************************************************
43 * NetGroupAddUser (NETAPI32.@)
44 *
45 */
46 NET_API_STATUS
47 WINAPI
48 NetGroupAddUser(IN LPCWSTR servername,
49 IN LPCWSTR groupname,
50 IN LPCWSTR username)
51 {
52 FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
53 debugstr_w(groupname), debugstr_w(username));
54 return ERROR_ACCESS_DENIED;
55 }
56
57
58 /************************************************************
59 * NetGroupDel (NETAPI32.@)
60 *
61 */
62 NET_API_STATUS
63 WINAPI
64 NetGroupDel(IN LPCWSTR servername,
65 IN LPCWSTR groupname)
66 {
67 FIXME("(%s, %s) stub!\n", debugstr_w(servername),
68 debugstr_w(groupname));
69 return ERROR_ACCESS_DENIED;
70 }
71
72
73 /************************************************************
74 * NetGroupDelUser (NETAPI32.@)
75 *
76 */
77 NET_API_STATUS
78 WINAPI
79 NetGroupDelUser(IN LPCWSTR servername,
80 IN LPCWSTR groupname,
81 IN LPCWSTR username)
82 {
83 FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
84 debugstr_w(groupname), debugstr_w(username));
85 return ERROR_ACCESS_DENIED;
86 }
87
88
89 /************************************************************
90 * NetGroupEnum (NETAPI32.@)
91 *
92 */
93 NET_API_STATUS
94 WINAPI
95 NetGroupEnum(IN LPCWSTR servername,
96 IN DWORD level,
97 OUT LPBYTE *bufptr,
98 IN DWORD prefmaxlen,
99 OUT LPDWORD entriesread,
100 OUT LPDWORD totalentries,
101 IN OUT PDWORD_PTR resume_handle)
102 {
103 FIXME("(%s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername),
104 level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle);
105 return ERROR_ACCESS_DENIED;
106 }
107
108
109 /************************************************************
110 * NetGroupGetInfo (NETAPI32.@)
111 *
112 */
113 NET_API_STATUS
114 WINAPI
115 NetGroupGetInfo(IN LPCWSTR servername,
116 IN LPCWSTR groupname,
117 IN DWORD level,
118 OUT LPBYTE *bufptr)
119 {
120 FIXME("(%s, %s, %d, %p) stub!\n", debugstr_w(servername),
121 debugstr_w(groupname), level, bufptr);
122 return ERROR_ACCESS_DENIED;
123 }
124
125
126 /************************************************************
127 * NetGroupGetUsers (NETAPI32.@)
128 *
129 */
130 NET_API_STATUS
131 WINAPI
132 NetGroupGetUsers(IN LPCWSTR servername,
133 IN LPCWSTR groupname,
134 IN DWORD level,
135 OUT LPBYTE *bufptr,
136 IN DWORD prefmaxlen,
137 OUT LPDWORD entriesread,
138 OUT LPDWORD totalentries,
139 IN OUT PDWORD_PTR resume_handle)
140 {
141 FIXME("(%s, %s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername),
142 debugstr_w(groupname), level, bufptr, prefmaxlen, entriesread,
143 totalentries, resume_handle);
144 return ERROR_ACCESS_DENIED;
145 }
146
147
148 /************************************************************
149 * NetGroupSetInfo (NETAPI32.@)
150 *
151 */
152 NET_API_STATUS
153 WINAPI
154 NetGroupSetInfo(IN LPCWSTR servername,
155 IN LPCWSTR groupname,
156 IN DWORD level,
157 IN LPBYTE buf,
158 OUT LPDWORD parm_err)
159 {
160 FIXME("(%s, %s, %d, %p, %p) stub!\n", debugstr_w(servername),
161 debugstr_w(groupname), level, buf, parm_err);
162 return ERROR_ACCESS_DENIED;
163 }
164
165
166 /************************************************************
167 * NetGroupSetUsers (NETAPI32.@)
168 *
169 */
170 NET_API_STATUS
171 WINAPI
172 NetGroupSetUsers(IN LPCWSTR servername,
173 IN LPCWSTR groupname,
174 IN DWORD level,
175 IN LPBYTE buf,
176 IN DWORD totalentries)
177 {
178 FIXME("(%s, %s, %d, %p, %d) stub!\n", debugstr_w(servername),
179 debugstr_w(groupname), level, buf, totalentries);
180 return ERROR_ACCESS_DENIED;
181 }
182
183 /* EOF */