[NETAPI32] Implement NetGroupAdd and NetGroupDel
[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 * NetGroupAddUser (NETAPI32.@)
27 *
28 */
29 NET_API_STATUS
30 WINAPI
31 NetGroupAddUser(IN LPCWSTR servername,
32 IN LPCWSTR groupname,
33 IN LPCWSTR username)
34 {
35 FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
36 debugstr_w(groupname), debugstr_w(username));
37 return ERROR_ACCESS_DENIED;
38 }
39
40
41 /************************************************************
42 * NetGroupDelUser (NETAPI32.@)
43 *
44 */
45 NET_API_STATUS
46 WINAPI
47 NetGroupDelUser(IN LPCWSTR servername,
48 IN LPCWSTR groupname,
49 IN LPCWSTR username)
50 {
51 FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
52 debugstr_w(groupname), debugstr_w(username));
53 return ERROR_ACCESS_DENIED;
54 }
55
56
57 /************************************************************
58 * NetGroupGetUsers (NETAPI32.@)
59 *
60 */
61 NET_API_STATUS
62 WINAPI
63 NetGroupGetUsers(IN LPCWSTR servername,
64 IN LPCWSTR groupname,
65 IN DWORD level,
66 OUT LPBYTE *bufptr,
67 IN DWORD prefmaxlen,
68 OUT LPDWORD entriesread,
69 OUT LPDWORD totalentries,
70 IN OUT PDWORD_PTR resume_handle)
71 {
72 FIXME("(%s, %s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername),
73 debugstr_w(groupname), level, bufptr, prefmaxlen, entriesread,
74 totalentries, resume_handle);
75 return ERROR_ACCESS_DENIED;
76 }
77
78
79 /************************************************************
80 * NetGroupSetInfo (NETAPI32.@)
81 *
82 */
83 NET_API_STATUS
84 WINAPI
85 NetGroupSetInfo(IN LPCWSTR servername,
86 IN LPCWSTR groupname,
87 IN DWORD level,
88 IN LPBYTE buf,
89 OUT LPDWORD parm_err)
90 {
91 FIXME("(%s, %s, %d, %p, %p) stub!\n", debugstr_w(servername),
92 debugstr_w(groupname), level, buf, parm_err);
93 return ERROR_ACCESS_DENIED;
94 }
95
96
97 /************************************************************
98 * NetGroupSetUsers (NETAPI32.@)
99 *
100 */
101 NET_API_STATUS
102 WINAPI
103 NetGroupSetUsers(IN LPCWSTR servername,
104 IN LPCWSTR groupname,
105 IN DWORD level,
106 IN LPBYTE buf,
107 IN DWORD totalentries)
108 {
109 FIXME("(%s, %s, %d, %p, %d) stub!\n", debugstr_w(servername),
110 debugstr_w(groupname), level, buf, totalentries);
111 return ERROR_ACCESS_DENIED;
112 }
113
114 /* EOF */