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