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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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