From 6d28124a2012bcd54349ccc6b268c1e7956a2e9b Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 8 Jun 2017 08:41:28 +0000 Subject: [PATCH] [NETAPI32] Add obsolete NetAudit and NetConfig functions. svn path=/trunk/; revision=74957 --- reactos/dll/win32/netapi32/netapi32.spec | 12 ++-- reactos/dll/win32/netapi32/obsolete.c | 84 ++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 6 deletions(-) diff --git a/reactos/dll/win32/netapi32/netapi32.spec b/reactos/dll/win32/netapi32/netapi32.spec index f1595cff3aa..ade459f3ca6 100644 --- a/reactos/dll/win32/netapi32/netapi32.spec +++ b/reactos/dll/win32/netapi32/netapi32.spec @@ -106,13 +106,13 @@ @ stdcall NetApiBufferFree(ptr) @ stdcall NetApiBufferReallocate(ptr long ptr) @ stdcall NetApiBufferSize(ptr ptr) -@ stub NetAuditClear -@ stub NetAuditRead -@ stub NetAuditWrite +@ stdcall NetAuditClear(wstr wstr wstr) +@ stdcall NetAuditRead(wstr wstr ptr long ptr long long ptr long ptr ptr) +@ stdcall NetAuditWrite(long ptr long wstr ptr) @ stub NetBrowserStatisticsGet -@ stub NetConfigGet -@ stub NetConfigGetAll -@ stub NetConfigSet +@ stdcall NetConfigGet(wstr wstr wstr ptr) +@ stdcall NetConfigGetAll(wstr wstr ptr) +@ stdcall NetConfigSet(wstr wstr wstr long long ptr long) @ stub NetConnectionEnum @ stub NetDfsAdd @ stub NetDfsAddFtRoot diff --git a/reactos/dll/win32/netapi32/obsolete.c b/reactos/dll/win32/netapi32/obsolete.c index 760f8ab0ad9..9aae837075a 100644 --- a/reactos/dll/win32/netapi32/obsolete.c +++ b/reactos/dll/win32/netapi32/obsolete.c @@ -9,6 +9,9 @@ /* INCLUDES ******************************************************************/ #include "netapi32.h" +#include +#include +#include WINE_DEFAULT_DEBUG_CHANNEL(netapi32); @@ -37,6 +40,87 @@ NetAlertRaiseEx( } +NET_API_STATUS +WINAPI +NetAuditClear( + _In_opt_ LPCWSTR server, + _In_opt_ LPCWSTR backupfile, + _In_opt_ LPCWSTR service) +{ + return ERROR_NOT_SUPPORTED; +} + + +NET_API_STATUS +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) +{ + return ERROR_NOT_SUPPORTED; +} + + +NET_API_STATUS +WINAPI +NetAuditWrite( + _In_ DWORD type, + _In_ LPBYTE buf, + _In_ DWORD numbytes, + _In_opt_ LPCWSTR service, + _In_opt_ LPBYTE reserved) +{ + return ERROR_NOT_SUPPORTED; +} + + +NET_API_STATUS +WINAPI +NetConfigGet( + _In_opt_ LPCWSTR server, + _In_ LPCWSTR component, + _In_ LPCWSTR parameter, + _Out_ LPBYTE *bufptr) +{ + return ERROR_NOT_SUPPORTED; +} + + +NET_API_STATUS +WINAPI +NetConfigGetAll( + _In_opt_ LPCWSTR server, + _In_ LPCWSTR component, + _Out_ LPBYTE *bufptr) +{ + return ERROR_NOT_SUPPORTED; +} + + +NET_API_STATUS +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) +{ + return ERROR_NOT_SUPPORTED; +} + + NET_API_STATUS WINAPI NetMessageBufferSend(