xref: /reactos/dll/win32/nddeapi/nddeapi.c (revision 40462c92)
1 /*
2  * nddeapi main
3  *
4  * Copyright 2006 Benjamin Arai (Google)
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 "windef.h"
24 #include "winbase.h"
25 #include "wine/debug.h"
26 
27 WINE_DEFAULT_DEBUG_CHANNEL(nddeapi);
28 
29 /* Network DDE functionality was removed in Windows Vista, so the functions are silent stubs.
30  * Since the corresponding header is no longer available in the Windows SDK, a required definition
31  * is replicated here. */
32 #define NDDE_NOT_IMPLEMENTED 14
33 
34 /***********************************************************************
35  *             NDdeShareAddA   (NDDEAPI.@)
36  *
37  */
38 UINT WINAPI NDdeShareAddA(LPSTR lpszServer, UINT nLevel, PSECURITY_DESCRIPTOR pSD,
39                           LPBYTE lpBuffer, DWORD cBufSize)
40 {
41     TRACE("(%s, %u, %p, %p, %u)\n", debugstr_a(lpszServer), nLevel, pSD, lpBuffer, cBufSize);
42 
43     return NDDE_NOT_IMPLEMENTED;
44 }
45 
46 /***********************************************************************
47  *             NDdeShareDelA   (NDDEAPI.@)
48  *
49  */
50 UINT WINAPI NDdeShareDelA(LPSTR lpszServer, LPSTR lpszShareName, UINT wReserved)
51 {
52     TRACE("(%s, %s, %u)\n", debugstr_a(lpszServer), debugstr_a(lpszShareName), wReserved);
53 
54     return NDDE_NOT_IMPLEMENTED;
55 }
56 
57 /***********************************************************************
58  *             NDdeShareEnumA   (NDDEAPI.@)
59  *
60  */
61 UINT WINAPI NDdeShareEnumA(LPSTR lpszServer, UINT nLevel, LPBYTE lpBuffer, DWORD cBufSize,
62                            LPDWORD lpnEntriesRead, LPDWORD lpcbTotalAvailable)
63 {
64     TRACE("(%s, %u, %p, %u, %p, %p)\n", debugstr_a(lpszServer), nLevel, lpBuffer, cBufSize,
65                                         lpnEntriesRead, lpcbTotalAvailable);
66 
67     return NDDE_NOT_IMPLEMENTED;
68 }
69 
70 /***********************************************************************
71  *             NDdeShareGetInfoA   (NDDEAPI.@)
72  *
73  */
74 UINT WINAPI NDdeShareGetInfoA(LPSTR lpszServer, LPSTR lpszShareName, UINT nLevel, LPBYTE lpBuffer,
75                               DWORD cBufSize, LPDWORD lpnTotalAvailable, LPWORD lpnItems)
76 {
77     TRACE("(%s, %s, %u, %p, %u, %p, %p)\n", debugstr_a(lpszServer), debugstr_a(lpszShareName), nLevel,
78                                             lpBuffer, cBufSize, lpnTotalAvailable, lpnItems);
79 
80     return NDDE_NOT_IMPLEMENTED;
81 }
82 
83 /***********************************************************************
84  *             NDdeShareSetInfoA   (NDDEAPI.@)
85  *
86  */
87 UINT WINAPI NDdeShareSetInfoA(LPSTR lpszServer, LPSTR lpszShareName, UINT nLevel, LPBYTE lpBuffer,
88                               DWORD cBufSize, WORD sParmNum)
89 {
90     TRACE("(%s, %s, %u, %p, %u, %u)\n", debugstr_a(lpszServer), debugstr_a(lpszShareName), nLevel,
91                                         lpBuffer, cBufSize, sParmNum);
92 
93     return NDDE_NOT_IMPLEMENTED;
94 }
95 
96 /***********************************************************************
97  *             NDdeGetErrorStringA   (NDDEAPI.@)
98  *
99  */
100 UINT WINAPI NDdeGetErrorStringA(UINT uErrorCode, LPSTR lpszErrorString, DWORD cBufSize)
101 {
102     TRACE("(%u, %p, %d)\n", uErrorCode, lpszErrorString, cBufSize);
103 
104     return NDDE_NOT_IMPLEMENTED;
105 }
106 
107 /***********************************************************************
108  *             NDdeIsValidShareNameA   (NDDEAPI.@)
109  *
110  */
111 BOOL WINAPI NDdeIsValidShareNameA(LPSTR shareName)
112 {
113     TRACE("(%s)\n", debugstr_a(shareName));
114 
115     return FALSE;
116 }
117 
118 /***********************************************************************
119  *             NDdeIsValidAppTopicListA   (NDDEAPI.@)
120  *
121  */
122 BOOL WINAPI NDdeIsValidAppTopicListA(LPSTR targetTopic)
123 {
124     TRACE("(%s)\n", debugstr_a(targetTopic));
125 
126     return FALSE;
127 }
128 
129 /***********************************************************************
130  *             NDdeGetShareSecurityA   (NDDEAPI.@)
131  *
132  */
133 UINT WINAPI NDdeGetShareSecurityA(LPSTR lpszServer, LPSTR lpszShareName, SECURITY_INFORMATION si,
134                                   PSECURITY_DESCRIPTOR pSD, DWORD cbSD, LPDWORD lpcbsdRequired)
135 {
136     TRACE("(%s, %s, %u, %p, %u, %p)\n", debugstr_a(lpszServer), debugstr_a(lpszShareName),
137                                         si, pSD, cbSD, lpcbsdRequired);
138 
139     return NDDE_NOT_IMPLEMENTED;
140 }
141 
142 /***********************************************************************
143  *             NDdeSetShareSecurityA   (NDDEAPI.@)
144  *
145  */
146 UINT WINAPI NDdeSetShareSecurityA(LPSTR lpszServer, LPSTR lpszShareName, SECURITY_INFORMATION si,
147                                   PSECURITY_DESCRIPTOR pSD)
148 {
149     TRACE("(%s, %s, %u, %p)\n", debugstr_a(lpszServer), debugstr_a(lpszShareName), si, pSD);
150 
151     return NDDE_NOT_IMPLEMENTED;
152 }
153 
154 /***********************************************************************
155  *             NDdeGetTrustedShareA   (NDDEAPI.@)
156  *
157  */
158 UINT WINAPI NDdeGetTrustedShareA(LPSTR lpszServer, LPSTR lpszShareName, LPDWORD lpdwTrustOptions,
159                                  LPDWORD lpdwShareModId0, LPDWORD lpdwShareModId1)
160 {
161     TRACE("(%s, %s, %p, %p, %p)\n", debugstr_a(lpszServer), debugstr_a(lpszShareName), lpdwTrustOptions,
162                                     lpdwShareModId0, lpdwShareModId1);
163 
164     return NDDE_NOT_IMPLEMENTED;
165 }
166 
167 /***********************************************************************
168  *             NDdeSetTrustedShareA   (NDDEAPI.@)
169  *
170  */
171 UINT WINAPI NDdeSetTrustedShareA(LPSTR lpszServer, LPSTR lpszShareName, DWORD dwTrustOptions)
172 {
173     TRACE("(%s, %s, 0x%08x)\n", debugstr_a(lpszServer), debugstr_a(lpszShareName), dwTrustOptions);
174 
175     return NDDE_NOT_IMPLEMENTED;
176 }
177 
178 /***********************************************************************
179  *             NDdeTrustedShareEnumA   (NDDEAPI.@)
180  *
181  */
182 UINT WINAPI NDdeTrustedShareEnumA(LPSTR lpszServer, UINT nLevel, LPBYTE lpBuffer, DWORD cBufSize,
183                                   LPDWORD lpnEntriesRead, LPDWORD lpcbTotalAvailable)
184 {
185     TRACE("(%s, %u, %p, %u, %p, %p)\n", debugstr_a(lpszServer), nLevel, lpBuffer, cBufSize,
186                                         lpnEntriesRead, lpcbTotalAvailable);
187 
188     return NDDE_NOT_IMPLEMENTED;
189 }
190 
191 /***********************************************************************
192  *             NDdeShareAddW   (NDDEAPI.@)
193  *
194  */
195 UINT WINAPI NDdeShareAddW(LPWSTR lpszServer, UINT nLevel, PSECURITY_DESCRIPTOR pSD,
196                           LPBYTE lpBuffer, DWORD cBufSize)
197 {
198     TRACE("(%s, %u, %p, %p, %u)\n", debugstr_w(lpszServer), nLevel, pSD, lpBuffer, cBufSize);
199 
200     return NDDE_NOT_IMPLEMENTED;
201 }
202 
203 /***********************************************************************
204  *             NDdeShareDelW   (NDDEAPI.@)
205  *
206  */
207 UINT WINAPI NDdeShareDelW(LPWSTR lpszServer, LPWSTR lpszShareName, UINT wReserved)
208 {
209     TRACE("(%s, %s, %u)\n", debugstr_w(lpszServer), debugstr_w(lpszShareName), wReserved);
210 
211     return NDDE_NOT_IMPLEMENTED;
212 }
213 
214 /***********************************************************************
215  *             NDdeShareEnumW   (NDDEAPI.@)
216  *
217  */
218 UINT WINAPI NDdeShareEnumW(LPWSTR lpszServer, UINT nLevel, LPBYTE lpBuffer, DWORD cBufSize,
219                            LPDWORD lpnEntriesRead, LPDWORD lpcbTotalAvailable)
220 {
221     TRACE("(%s, %u, %p, %u, %p, %p)\n", debugstr_w(lpszServer), nLevel, lpBuffer, cBufSize,
222                                         lpnEntriesRead, lpcbTotalAvailable);
223 
224     return NDDE_NOT_IMPLEMENTED;
225 }
226 
227 /***********************************************************************
228  *             NDdeShareGetInfoW   (NDDEAPI.@)
229  *
230  */
231 UINT WINAPI NDdeShareGetInfoW(LPWSTR lpszServer, LPWSTR lpszShareName, UINT nLevel, LPBYTE lpBuffer,
232                               DWORD cBufSize, LPDWORD lpnTotalAvailable, LPWORD lpnItems)
233 {
234     TRACE("(%s, %s, %u, %p, %u, %p, %p)\n", debugstr_w(lpszServer), debugstr_w(lpszShareName), nLevel,
235                                             lpBuffer, cBufSize, lpnTotalAvailable, lpnItems);
236 
237     return NDDE_NOT_IMPLEMENTED;
238 }
239 
240 /***********************************************************************
241  *             NDdeShareSetInfoW   (NDDEAPI.@)
242  *
243  */
244 UINT WINAPI NDdeShareSetInfoW(LPWSTR lpszServer, LPWSTR lpszShareName, UINT nLevel, LPBYTE lpBuffer,
245                               DWORD cBufSize, WORD sParmNum)
246 {
247     TRACE("(%s, %s, %u, %p, %u, %u)\n", debugstr_w(lpszServer), debugstr_w(lpszShareName), nLevel,
248                                         lpBuffer, cBufSize, sParmNum);
249 
250     return NDDE_NOT_IMPLEMENTED;
251 }
252 
253 /***********************************************************************
254  *             NDdeGetErrorStringW   (NDDEAPI.@)
255  *
256 */
257 UINT WINAPI NDdeGetErrorStringW(UINT uErrorCode, LPWSTR lpszErrorString, DWORD cBufSize)
258 {
259     FIXME("(%u, %p, %d): stub!\n", uErrorCode, lpszErrorString, cBufSize);
260 
261     return NDDE_NOT_IMPLEMENTED;
262 }
263 
264 /***********************************************************************
265  *             NDdeIsValidShareNameW   (NDDEAPI.@)
266  *
267  */
268 BOOL WINAPI NDdeIsValidShareNameW(LPWSTR shareName)
269 {
270     TRACE("(%s)\n", debugstr_w(shareName));
271 
272     return FALSE;
273 }
274 
275 /***********************************************************************
276  *             NDdeIsValidAppTopicListW   (NDDEAPI.@)
277  *
278  */
279 BOOL WINAPI NDdeIsValidAppTopicListW(LPWSTR targetTopic)
280 {
281     TRACE("(%s)\n", debugstr_w(targetTopic));
282 
283     return FALSE;
284 }
285 
286 /***********************************************************************
287  *             NDdeGetShareSecurityW   (NDDEAPI.@)
288  *
289  */
290 UINT WINAPI NDdeGetShareSecurityW(LPWSTR lpszServer, LPWSTR lpszShareName, SECURITY_INFORMATION si,
291                                   PSECURITY_DESCRIPTOR pSD, DWORD cbSD, LPDWORD lpcbsdRequired)
292 {
293     TRACE("(%s, %s, %u, %p, %u, %p)\n", debugstr_w(lpszServer), debugstr_w(lpszShareName),
294                                         si, pSD, cbSD, lpcbsdRequired);
295 
296     return NDDE_NOT_IMPLEMENTED;
297 }
298 
299 /***********************************************************************
300  *             NDdeSetShareSecurityW   (NDDEAPI.@)
301  *
302  */
303 UINT WINAPI NDdeSetShareSecurityW(LPWSTR lpszServer, LPWSTR lpszShareName, SECURITY_INFORMATION si,
304                                   PSECURITY_DESCRIPTOR pSD)
305 {
306     TRACE("(%s, %s, %u, %p)\n", debugstr_w(lpszServer), debugstr_w(lpszShareName), si, pSD);
307 
308     return NDDE_NOT_IMPLEMENTED;
309 }
310 
311 /***********************************************************************
312  *             NDdeGetTrustedShareW   (NDDEAPI.@)
313  *
314  */
315 UINT WINAPI NDdeGetTrustedShareW(LPWSTR lpszServer, LPWSTR lpszShareName, LPDWORD lpdwTrustOptions,
316                                  LPDWORD lpdwShareModId0, LPDWORD lpdwShareModId1)
317 {
318     TRACE("(%s, %s, %p, %p, %p)\n", debugstr_w(lpszServer), debugstr_w(lpszShareName), lpdwTrustOptions,
319                                     lpdwShareModId0, lpdwShareModId1);
320 
321     return NDDE_NOT_IMPLEMENTED;
322 }
323 
324 /***********************************************************************
325  *             NDdeSetTrustedShareW   (NDDEAPI.@)
326  *
327  */
328 UINT WINAPI NDdeSetTrustedShareW(LPWSTR lpszServer, LPWSTR lpszShareName, DWORD dwTrustOptions)
329 {
330     TRACE("(%s, %s, 0x%08x)\n", debugstr_w(lpszServer), debugstr_w(lpszShareName), dwTrustOptions);
331 
332     return NDDE_NOT_IMPLEMENTED;
333 }
334 
335 /***********************************************************************
336  *             NDdeTrustedShareEnumW   (NDDEAPI.@)
337  *
338  */
339 UINT WINAPI NDdeTrustedShareEnumW(LPWSTR lpszServer, UINT nLevel, LPBYTE lpBuffer, DWORD cBufSize,
340                                   LPDWORD lpnEntriesRead, LPDWORD lpcbTotalAvailable)
341 {
342     TRACE("(%s, %u, %p, %u, %p, %p)\n", debugstr_w(lpszServer), nLevel, lpBuffer, cBufSize,
343                                         lpnEntriesRead, lpcbTotalAvailable);
344 
345     return NDDE_NOT_IMPLEMENTED;
346 }
347