msi: Add more tests for the _Streams table.
[wine] / dlls / netapi32 / local_group.c
1 /*
2  * Copyright 2006 Robert Reif
3  *
4  * netapi32 local group 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 <stdarg.h>
22
23 #include "ntstatus.h"
24 #define WIN32_NO_STATUS
25 #include "windef.h"
26 #include "winbase.h"
27 #include "winerror.h"
28 #include "lmcons.h"
29 #include "lmaccess.h"
30 #include "lmapibuf.h"
31 #include "lmerr.h"
32 #include "winreg.h"
33 #include "winternl.h"
34 #include "ntsecapi.h"
35 #include "netapi32_misc.h"
36 #include "wine/debug.h"
37 #include "wine/unicode.h"
38
39 WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
40
41 /************************************************************
42  *                NetLocalGroupAdd  (NETAPI32.@)
43  */
44 NET_API_STATUS WINAPI NetLocalGroupAdd(
45     LPCWSTR servername,
46     DWORD level,
47     LPBYTE buf,
48     LPDWORD parm_err)
49 {
50     FIXME("(%s %ld %p %p) stub!\n", debugstr_w(servername), level, buf,
51           parm_err);
52     return NERR_Success;
53 }
54
55 /************************************************************
56  *                NetLocalGroupAddMember  (NETAPI32.@)
57  */
58 NET_API_STATUS WINAPI NetLocalGroupAddMember(
59     LPCWSTR servername,
60     LPCWSTR groupname,
61     PSID membersid)
62 {
63     FIXME("(%s %s %p) stub!\n", debugstr_w(servername),
64           debugstr_w(groupname), membersid);
65     return NERR_Success;
66 }
67
68 /************************************************************
69  *                NetLocalGroupAddMembers  (NETAPI32.@)
70  */
71 NET_API_STATUS WINAPI NetLocalGroupAddMembers(
72     LPCWSTR servername,
73     LPCWSTR groupname,
74     DWORD level,
75     LPBYTE buf,
76     DWORD totalentries)
77 {
78     FIXME("(%s %s %ld %p %ld) stub!\n", debugstr_w(servername),
79           debugstr_w(groupname), level, buf, totalentries);
80     return NERR_Success;
81 }
82
83 /************************************************************
84  *                NetLocalGroupDel  (NETAPI32.@)
85  */
86 NET_API_STATUS WINAPI NetLocalGroupDel(
87     LPCWSTR servername,
88     LPCWSTR groupname)
89 {
90     FIXME("(%s %s) stub!\n", debugstr_w(servername), debugstr_w(groupname));
91     return NERR_Success;
92 }
93
94 /************************************************************
95  *                NetLocalGroupDelMember  (NETAPI32.@)
96  */
97 NET_API_STATUS WINAPI NetLocalGroupDelMember(
98     LPCWSTR servername,
99     LPCWSTR groupname,
100     PSID membersid)
101 {
102     FIXME("(%s %s %p) stub!\n", debugstr_w(servername),
103           debugstr_w(groupname), membersid);
104     return NERR_Success;
105 }
106
107 /************************************************************
108  *                NetLocalGroupDelMembers  (NETAPI32.@)
109  */
110 NET_API_STATUS WINAPI NetLocalGroupDelMembers(
111     LPCWSTR servername,
112     LPCWSTR groupname,
113     DWORD level,
114     LPBYTE buf,
115     DWORD totalentries)
116 {
117     FIXME("(%s %s %ld %p %ld) stub!\n", debugstr_w(servername),
118           debugstr_w(groupname), level, buf, totalentries);
119     return NERR_Success;
120 }
121
122 /************************************************************
123  *                NetLocalGroupEnum  (NETAPI32.@)
124  */
125 NET_API_STATUS WINAPI NetLocalGroupEnum(
126     LPCWSTR servername,
127     DWORD level,
128     LPBYTE* bufptr,
129     DWORD prefmaxlen,
130     LPDWORD entriesread,
131     LPDWORD totalentries,
132     PDWORD_PTR resumehandle)
133 {
134     FIXME("(%s %ld %p %ld %p %p %p) stub!\n", debugstr_w(servername),
135           level, bufptr, prefmaxlen, entriesread, totalentries, resumehandle);
136     *entriesread = 0;
137     *totalentries = 0;
138     return NERR_Success;
139 }
140
141 /************************************************************
142  *                NetLocalGroupGetInfo  (NETAPI32.@)
143  */
144 NET_API_STATUS WINAPI NetLocalGroupGetInfo(
145     LPCWSTR servername,
146     LPCWSTR groupname,
147     DWORD level,
148     LPBYTE* bufptr)
149 {
150     FIXME("(%s %s %ld %p) stub!\n", debugstr_w(servername),
151           debugstr_w(groupname), level, bufptr);
152     return NERR_Success;
153 }
154
155 /************************************************************
156  *                NetLocalGroupGetMembers  (NETAPI32.@)
157  */
158 NET_API_STATUS WINAPI NetLocalGroupGetMembers(
159     LPCWSTR servername,
160     LPCWSTR localgroupname,
161     DWORD level,
162     LPBYTE* bufptr,
163     DWORD prefmaxlen,
164     LPDWORD entriesread,
165     LPDWORD totalentries,
166     PDWORD_PTR resumehandle)
167 {
168     FIXME("(%s %s %ld %p %ld, %p %p %p) stub!\n", debugstr_w(servername),
169           debugstr_w(localgroupname), level, bufptr, prefmaxlen, entriesread,
170           totalentries, resumehandle);
171     return NERR_Success;
172 }
173
174 /************************************************************
175  *                NetLocalGroupSetInfo  (NETAPI32.@)
176  */
177 NET_API_STATUS WINAPI NetLocalGroupSetInfo(
178     LPCWSTR servername,
179     LPCWSTR groupname,
180     DWORD level,
181     LPBYTE buf,
182     LPDWORD parm_err)
183 {
184     FIXME("(%s %s %ld %p %p) stub!\n", debugstr_w(servername),
185           debugstr_w(groupname), level, buf, parm_err);
186     return NERR_Success;
187 }
188
189 /************************************************************
190  *                NetLocalGroupSetMember (NETAPI32.@)
191  */
192 NET_API_STATUS WINAPI NetLocalGroupSetMembers(
193     LPCWSTR servername,
194     LPCWSTR groupname,
195     DWORD level,
196     LPBYTE buf,
197     DWORD totalentries)
198 {
199     FIXME("(%s %s %ld %p %ld) stub!\n", debugstr_w(servername),
200             debugstr_w(groupname), level, buf, totalentries);
201     return NERR_Success;
202 }