1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: NetAPI DLL
4 * FILE: dll/win32/netapi32/obsolete.c
5 * PURPOSE: Obsolete functions
6 * PROGRAMMERS: Eric Kohl (eric.kohl@reactos.org)
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include "netapi32.h"
12
13 #include <lmalert.h>
14 #include <lmaudit.h>
15 #include <lmconfig.h>
16 #include <lmerrlog.h>
17 #include <lmmsg.h>
18 #include <lmrepl.h>
19 #include <lmsvc.h>
20
21 /* FUNCTIONS *****************************************************************/
22
23 NET_API_STATUS
24 WINAPI
NetAlertRaise(_In_ LPCWSTR AlertEventName,_In_ LPVOID Buffer,_In_ DWORD BufferSize)25 NetAlertRaise(
26 _In_ LPCWSTR AlertEventName,
27 _In_ LPVOID Buffer,
28 _In_ DWORD BufferSize)
29 {
30 return ERROR_NOT_SUPPORTED;
31 }
32
33
34 NET_API_STATUS
35 WINAPI
NetAlertRaiseEx(_In_ LPCWSTR AlertEventName,_In_ LPVOID VariableInfo,_In_ DWORD VariableInfoSize,_In_ LPCWSTR ServiceName)36 NetAlertRaiseEx(
37 _In_ LPCWSTR AlertEventName,
38 _In_ LPVOID VariableInfo,
39 _In_ DWORD VariableInfoSize,
40 _In_ LPCWSTR ServiceName)
41 {
42 return ERROR_NOT_SUPPORTED;
43 }
44
45
46 NET_API_STATUS
47 WINAPI
NetAuditClear(_In_opt_ LPCWSTR server,_In_opt_ LPCWSTR backupfile,_In_opt_ LPCWSTR service)48 NetAuditClear(
49 _In_opt_ LPCWSTR server,
50 _In_opt_ LPCWSTR backupfile,
51 _In_opt_ LPCWSTR service)
52 {
53 return ERROR_NOT_SUPPORTED;
54 }
55
56
57 NET_API_STATUS
58 WINAPI
NetAuditRead(_In_opt_ LPCWSTR server,_In_opt_ LPCWSTR service,_In_ LPHLOG auditloghandle,_In_ DWORD offset,_In_opt_ LPDWORD reserved1,_In_ DWORD reserved2,_In_ DWORD offsetflag,_Out_ LPBYTE * bufptr,_In_ DWORD prefmaxlen,_Out_ LPDWORD bytesread,_Out_ LPDWORD totalavailable)59 NetAuditRead(
60 _In_opt_ LPCWSTR server,
61 _In_opt_ LPCWSTR service,
62 _In_ LPHLOG auditloghandle,
63 _In_ DWORD offset,
64 _In_opt_ LPDWORD reserved1,
65 _In_ DWORD reserved2,
66 _In_ DWORD offsetflag,
67 _Out_ LPBYTE *bufptr,
68 _In_ DWORD prefmaxlen,
69 _Out_ LPDWORD bytesread,
70 _Out_ LPDWORD totalavailable)
71 {
72 return ERROR_NOT_SUPPORTED;
73 }
74
75
76 NET_API_STATUS
77 WINAPI
NetAuditWrite(_In_ DWORD type,_In_ LPBYTE buf,_In_ DWORD numbytes,_In_opt_ LPCWSTR service,_In_opt_ LPBYTE reserved)78 NetAuditWrite(
79 _In_ DWORD type,
80 _In_ LPBYTE buf,
81 _In_ DWORD numbytes,
82 _In_opt_ LPCWSTR service,
83 _In_opt_ LPBYTE reserved)
84 {
85 return ERROR_NOT_SUPPORTED;
86 }
87
88
89 NET_API_STATUS
90 WINAPI
NetConfigGet(_In_opt_ LPCWSTR server,_In_ LPCWSTR component,_In_ LPCWSTR parameter,_Out_ LPBYTE * bufptr)91 NetConfigGet(
92 _In_opt_ LPCWSTR server,
93 _In_ LPCWSTR component,
94 _In_ LPCWSTR parameter,
95 _Out_ LPBYTE *bufptr)
96 {
97 return ERROR_NOT_SUPPORTED;
98 }
99
100
101 NET_API_STATUS
102 WINAPI
NetConfigGetAll(_In_opt_ LPCWSTR server,_In_ LPCWSTR component,_Out_ LPBYTE * bufptr)103 NetConfigGetAll(
104 _In_opt_ LPCWSTR server,
105 _In_ LPCWSTR component,
106 _Out_ LPBYTE *bufptr)
107 {
108 return ERROR_NOT_SUPPORTED;
109 }
110
111
112 NET_API_STATUS
113 WINAPI
NetConfigSet(_In_opt_ LPCWSTR server,_In_opt_ LPCWSTR reserved1,_In_ LPCWSTR component,_In_ DWORD level,_In_ DWORD reserved2,_In_ LPBYTE buf,_In_ DWORD reserved3)114 NetConfigSet(
115 _In_opt_ LPCWSTR server,
116 _In_opt_ LPCWSTR reserved1,
117 _In_ LPCWSTR component,
118 _In_ DWORD level,
119 _In_ DWORD reserved2,
120 _In_ LPBYTE buf,
121 _In_ DWORD reserved3)
122 {
123 return ERROR_NOT_SUPPORTED;
124 }
125
126
127 NET_API_STATUS
128 WINAPI
NetErrorLogClear(_In_opt_ LPCWSTR UncServerName,_In_opt_ LPCWSTR BackupFile,_In_opt_ LPBYTE Reserved)129 NetErrorLogClear(
130 _In_opt_ LPCWSTR UncServerName,
131 _In_opt_ LPCWSTR BackupFile,
132 _In_opt_ LPBYTE Reserved)
133 {
134 return ERROR_NOT_SUPPORTED;
135 }
136
137
138 NET_API_STATUS
139 WINAPI
NetErrorLogRead(_In_opt_ LPCWSTR UncServerName,_In_opt_ LPWSTR Reserved1,_In_ LPHLOG ErrorLogHandle,_In_ DWORD Offset,_In_opt_ LPDWORD Reserved2,_In_ DWORD Reserved3,_In_ DWORD OffsetFlag,_Deref_out_ LPBYTE * BufPtr,_In_ DWORD PrefMaxSize,_Out_ LPDWORD BytesRead,_Out_ LPDWORD TotalAvailable)140 NetErrorLogRead(
141 _In_opt_ LPCWSTR UncServerName,
142 _In_opt_ LPWSTR Reserved1,
143 _In_ LPHLOG ErrorLogHandle,
144 _In_ DWORD Offset,
145 _In_opt_ LPDWORD Reserved2,
146 _In_ DWORD Reserved3,
147 _In_ DWORD OffsetFlag,
148 _Deref_out_ LPBYTE *BufPtr,
149 _In_ DWORD PrefMaxSize,
150 _Out_ LPDWORD BytesRead,
151 _Out_ LPDWORD TotalAvailable)
152 {
153 return ERROR_NOT_SUPPORTED;
154 }
155
156
157 NET_API_STATUS
158 WINAPI
NetErrorLogWrite(_In_opt_ LPBYTE Reserved1,_In_ DWORD Code,_In_ LPCWSTR Component,_In_ LPBYTE Buffer,_In_ DWORD NumBytes,_In_ LPBYTE MsgBuf,_In_ DWORD StrCount,_In_opt_ LPBYTE Reserved2)159 NetErrorLogWrite(
160 _In_opt_ LPBYTE Reserved1,
161 _In_ DWORD Code,
162 _In_ LPCWSTR Component,
163 _In_ LPBYTE Buffer,
164 _In_ DWORD NumBytes,
165 _In_ LPBYTE MsgBuf,
166 _In_ DWORD StrCount,
167 _In_opt_ LPBYTE Reserved2)
168 {
169 return ERROR_NOT_SUPPORTED;
170 }
171
172
173 NET_API_STATUS
174 WINAPI
NetMessageBufferSend(_In_ LPCWSTR servername,_In_ LPCWSTR msgname,_In_ LPCWSTR fromname,_In_ LPBYTE buf,_In_ DWORD buflen)175 NetMessageBufferSend(
176 _In_ LPCWSTR servername,
177 _In_ LPCWSTR msgname,
178 _In_ LPCWSTR fromname,
179 _In_ LPBYTE buf,
180 _In_ DWORD buflen)
181 {
182 return ERROR_NOT_SUPPORTED;
183 }
184
185
186 NET_API_STATUS
187 WINAPI
NetMessageNameAdd(_In_ LPCWSTR servername,_In_ LPCWSTR msgname)188 NetMessageNameAdd(
189 _In_ LPCWSTR servername,
190 _In_ LPCWSTR msgname)
191 {
192 return ERROR_NOT_SUPPORTED;
193 }
194
195
196 NET_API_STATUS
197 WINAPI
NetMessageNameDel(_In_ LPCWSTR servername,_In_ LPCWSTR msgname)198 NetMessageNameDel(
199 _In_ LPCWSTR servername,
200 _In_ LPCWSTR msgname)
201 {
202 return ERROR_NOT_SUPPORTED;
203 }
204
205
206 NET_API_STATUS
207 WINAPI
NetMessageNameEnum(_In_ LPCWSTR servername,_In_ DWORD level,_Out_ LPBYTE * bufptr,_In_ DWORD prefmaxlen,_Out_ LPDWORD entriesread,_Out_ LPDWORD totalentries,_Inout_ LPDWORD resume_handle)208 NetMessageNameEnum(
209 _In_ LPCWSTR servername,
210 _In_ DWORD level,
211 _Out_ LPBYTE *bufptr,
212 _In_ DWORD prefmaxlen,
213 _Out_ LPDWORD entriesread,
214 _Out_ LPDWORD totalentries,
215 _Inout_ LPDWORD resume_handle)
216 {
217 return ERROR_NOT_SUPPORTED;
218 }
219
220
221 NET_API_STATUS
222 WINAPI
NetMessageNameGetInfo(_In_ LPCWSTR servername,_In_ LPCWSTR msgname,_In_ DWORD level,_Out_ LPBYTE * bufptr)223 NetMessageNameGetInfo(
224 _In_ LPCWSTR servername,
225 _In_ LPCWSTR msgname,
226 _In_ DWORD level,
227 _Out_ LPBYTE *bufptr)
228 {
229 return ERROR_NOT_SUPPORTED;
230 }
231
232
233 NET_API_STATUS
234 WINAPI
NetReplExportDirAdd(_In_opt_ LPCWSTR servername,_In_ DWORD level,_In_ const LPBYTE buf,_Out_opt_ LPDWORD parm_err)235 NetReplExportDirAdd(
236 _In_opt_ LPCWSTR servername,
237 _In_ DWORD level,
238 _In_ const LPBYTE buf,
239 _Out_opt_ LPDWORD parm_err)
240 {
241 return ERROR_NOT_SUPPORTED;
242 }
243
244
245 NET_API_STATUS
246 WINAPI
NetReplExportDirDel(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname)247 NetReplExportDirDel(
248 _In_opt_ LPCWSTR servername,
249 _In_ LPCWSTR dirname)
250 {
251 return ERROR_NOT_SUPPORTED;
252 }
253
254
255 NET_API_STATUS
256 WINAPI
NetReplExportDirEnum(_In_opt_ LPCWSTR servername,_In_ DWORD level,_Out_ LPBYTE * bufptr,_In_ DWORD prefmaxlen,_Out_ LPDWORD entriesread,_Out_ LPDWORD totalentries,_Inout_opt_ LPDWORD resumehandle)257 NetReplExportDirEnum(
258 _In_opt_ LPCWSTR servername,
259 _In_ DWORD level,
260 _Out_ LPBYTE *bufptr,
261 _In_ DWORD prefmaxlen,
262 _Out_ LPDWORD entriesread,
263 _Out_ LPDWORD totalentries,
264 _Inout_opt_ LPDWORD resumehandle)
265 {
266 return ERROR_NOT_SUPPORTED;
267 }
268
269
270 NET_API_STATUS
271 WINAPI
NetReplExportDirGetInfo(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname,_In_ DWORD level,_Out_ LPBYTE * bufptr)272 NetReplExportDirGetInfo(
273 _In_opt_ LPCWSTR servername,
274 _In_ LPCWSTR dirname,
275 _In_ DWORD level,
276 _Out_ LPBYTE *bufptr)
277 {
278 return ERROR_NOT_SUPPORTED;
279 }
280
281
282 NET_API_STATUS
283 WINAPI
NetReplExportDirLock(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname)284 NetReplExportDirLock(
285 _In_opt_ LPCWSTR servername,
286 _In_ LPCWSTR dirname)
287 {
288 return ERROR_NOT_SUPPORTED;
289 }
290
291
292 NET_API_STATUS
293 WINAPI
NetReplExportDirSetInfo(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname,_In_ DWORD level,_In_ const LPBYTE buf,_Out_opt_ LPDWORD parm_err)294 NetReplExportDirSetInfo(
295 _In_opt_ LPCWSTR servername,
296 _In_ LPCWSTR dirname,
297 _In_ DWORD level,
298 _In_ const LPBYTE buf,
299 _Out_opt_ LPDWORD parm_err)
300 {
301 return ERROR_NOT_SUPPORTED;
302 }
303
304
305 NET_API_STATUS
306 WINAPI
NetReplExportDirUnlock(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname,_In_ DWORD unlockforce)307 NetReplExportDirUnlock(
308 _In_opt_ LPCWSTR servername,
309 _In_ LPCWSTR dirname,
310 _In_ DWORD unlockforce)
311 {
312 return ERROR_NOT_SUPPORTED;
313 }
314
315
316 NET_API_STATUS
317 WINAPI
NetReplGetInfo(_In_opt_ LPCWSTR servername,_In_ DWORD level,_Out_ LPBYTE * bufptr)318 NetReplGetInfo(
319 _In_opt_ LPCWSTR servername,
320 _In_ DWORD level,
321 _Out_ LPBYTE *bufptr)
322 {
323 return ERROR_NOT_SUPPORTED;
324 }
325
326
327 NET_API_STATUS
328 WINAPI
NetReplImportDirAdd(_In_opt_ LPCWSTR servername,_In_ DWORD level,_In_ const LPBYTE buf,_Out_opt_ LPDWORD parm_err)329 NetReplImportDirAdd(
330 _In_opt_ LPCWSTR servername,
331 _In_ DWORD level,
332 _In_ const LPBYTE buf,
333 _Out_opt_ LPDWORD parm_err)
334 {
335 return ERROR_NOT_SUPPORTED;
336 }
337
338
339 NET_API_STATUS
340 WINAPI
NetReplImportDirDel(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname)341 NetReplImportDirDel(
342 _In_opt_ LPCWSTR servername,
343 _In_ LPCWSTR dirname)
344 {
345 return ERROR_NOT_SUPPORTED;
346 }
347
348
349 NET_API_STATUS
350 WINAPI
NetReplImportDirEnum(_In_opt_ LPCWSTR servername,_In_ DWORD level,_Out_ LPBYTE * bufptr,_In_ DWORD prefmaxlen,_Out_ LPDWORD entriesread,_Out_ LPDWORD totalentries,_Inout_opt_ LPDWORD resumehandle)351 NetReplImportDirEnum(
352 _In_opt_ LPCWSTR servername,
353 _In_ DWORD level,
354 _Out_ LPBYTE *bufptr,
355 _In_ DWORD prefmaxlen,
356 _Out_ LPDWORD entriesread,
357 _Out_ LPDWORD totalentries,
358 _Inout_opt_ LPDWORD resumehandle)
359 {
360 return ERROR_NOT_SUPPORTED;
361 }
362
363
364 NET_API_STATUS
365 WINAPI
NetReplImportDirGetInfo(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname,_In_ DWORD level,_Out_ LPBYTE * bufptr)366 NetReplImportDirGetInfo(
367 _In_opt_ LPCWSTR servername,
368 _In_ LPCWSTR dirname,
369 _In_ DWORD level,
370 _Out_ LPBYTE *bufptr)
371 {
372 return ERROR_NOT_SUPPORTED;
373 }
374
375
376 NET_API_STATUS
377 WINAPI
NetReplImportDirLock(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname)378 NetReplImportDirLock(
379 _In_opt_ LPCWSTR servername,
380 _In_ LPCWSTR dirname)
381 {
382 return ERROR_NOT_SUPPORTED;
383 }
384
385
386 NET_API_STATUS
387 WINAPI
NetReplImportDirUnlock(_In_opt_ LPCWSTR servername,_In_ LPCWSTR dirname,_In_ DWORD unlockforce)388 NetReplImportDirUnlock(
389 _In_opt_ LPCWSTR servername,
390 _In_ LPCWSTR dirname,
391 _In_ DWORD unlockforce)
392 {
393 return ERROR_NOT_SUPPORTED;
394 }
395
396
397 NET_API_STATUS
398 WINAPI
NetReplSetInfo(_In_opt_ LPCWSTR servername,_In_ DWORD level,_In_ const LPBYTE buf,_Out_opt_ LPDWORD parm_err)399 NetReplSetInfo(
400 _In_opt_ LPCWSTR servername,
401 _In_ DWORD level,
402 _In_ const LPBYTE buf,
403 _Out_opt_ LPDWORD parm_err)
404 {
405 return ERROR_NOT_SUPPORTED;
406 }
407
408
409 NET_API_STATUS
410 WINAPI
NetServiceControl(__in_opt LPCWSTR servername,__in LPCWSTR service,__in DWORD opcode,__in DWORD arg,__deref_out LPBYTE * bufptr)411 NetServiceControl(
412 __in_opt LPCWSTR servername,
413 __in LPCWSTR service,
414 __in DWORD opcode,
415 __in DWORD arg,
416 __deref_out LPBYTE *bufptr)
417 {
418 return ERROR_NOT_SUPPORTED;
419 }
420
421
422 NET_API_STATUS
423 WINAPI
NetServiceEnum(__in_opt LPCWSTR servername,__in DWORD level,__deref_out LPBYTE * bufptr,__in DWORD prefmaxlen,__out LPDWORD entriesread,__out LPDWORD totalentries,__inout_opt LPDWORD resume_handle)424 NetServiceEnum(
425 __in_opt LPCWSTR servername,
426 __in DWORD level,
427 __deref_out LPBYTE *bufptr,
428 __in DWORD prefmaxlen,
429 __out LPDWORD entriesread,
430 __out LPDWORD totalentries,
431 __inout_opt LPDWORD resume_handle)
432 {
433 return ERROR_NOT_SUPPORTED;
434 }
435
436
437 NET_API_STATUS
438 WINAPI
NetServiceGetInfo(__in_opt LPCWSTR servername,__in LPCWSTR service,__in DWORD level,__deref_out LPBYTE * bufptr)439 NetServiceGetInfo(
440 __in_opt LPCWSTR servername,
441 __in LPCWSTR service,
442 __in DWORD level,
443 __deref_out LPBYTE *bufptr)
444 {
445 return ERROR_NOT_SUPPORTED;
446 }
447
448
449 NET_API_STATUS
450 WINAPI
NetServiceInstall(__in_opt LPCWSTR servername,__in LPCWSTR service,__in DWORD argc,__in_ecount (argc)LPCWSTR argv[],__deref_out LPBYTE * bufptr)451 NetServiceInstall(
452 __in_opt LPCWSTR servername,
453 __in LPCWSTR service,
454 __in DWORD argc,
455 __in_ecount(argc) LPCWSTR argv[],
456 __deref_out LPBYTE *bufptr)
457 {
458 return ERROR_NOT_SUPPORTED;
459 }
460
461 /* EOF */
462