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