[NETAPI] Implement NetGroupEnum
[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 * NetGroupGetInfo (NETAPI32.@)
91 *
92 */
93 NET_API_STATUS
94 WINAPI
95 NetGroupGetInfo(IN LPCWSTR servername,
96 IN LPCWSTR groupname,
97 IN DWORD level,
98 OUT LPBYTE *bufptr)
99 {
100 FIXME("(%s, %s, %d, %p) stub!\n", debugstr_w(servername),
101 debugstr_w(groupname), level, bufptr);
102 return ERROR_ACCESS_DENIED;
103 }
104
105
106 /************************************************************
107 * NetGroupGetUsers (NETAPI32.@)
108 *
109 */
110 NET_API_STATUS
111 WINAPI
112 NetGroupGetUsers(IN LPCWSTR servername,
113 IN LPCWSTR groupname,
114 IN DWORD level,
115 OUT LPBYTE *bufptr,
116 IN DWORD prefmaxlen,
117 OUT LPDWORD entriesread,
118 OUT LPDWORD totalentries,
119 IN OUT PDWORD_PTR resume_handle)
120 {
121 FIXME("(%s, %s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername),
122 debugstr_w(groupname), level, bufptr, prefmaxlen, entriesread,
123 totalentries, resume_handle);
124 return ERROR_ACCESS_DENIED;
125 }
126
127
128 /************************************************************
129 * NetGroupSetInfo (NETAPI32.@)
130 *
131 */
132 NET_API_STATUS
133 WINAPI
134 NetGroupSetInfo(IN LPCWSTR servername,
135 IN LPCWSTR groupname,
136 IN DWORD level,
137 IN LPBYTE buf,
138 OUT LPDWORD parm_err)
139 {
140 FIXME("(%s, %s, %d, %p, %p) stub!\n", debugstr_w(servername),
141 debugstr_w(groupname), level, buf, parm_err);
142 return ERROR_ACCESS_DENIED;
143 }
144
145
146 /************************************************************
147 * NetGroupSetUsers (NETAPI32.@)
148 *
149 */
150 NET_API_STATUS
151 WINAPI
152 NetGroupSetUsers(IN LPCWSTR servername,
153 IN LPCWSTR groupname,
154 IN DWORD level,
155 IN LPBYTE buf,
156 IN DWORD totalentries)
157 {
158 FIXME("(%s, %s, %d, %p, %d) stub!\n", debugstr_w(servername),
159 debugstr_w(groupname), level, buf, totalentries);
160 return ERROR_ACCESS_DENIED;
161 }
162
163 /* EOF */