Author: ekohl Date: Thu Jun 8 08:41:28 2017 New Revision: 74957
URL: http://svn.reactos.org/svn/reactos?rev=74957&view=rev Log: [NETAPI32] Add obsolete NetAudit and NetConfig functions.
Modified: trunk/reactos/dll/win32/netapi32/netapi32.spec trunk/reactos/dll/win32/netapi32/obsolete.c
Modified: trunk/reactos/dll/win32/netapi32/netapi32.spec URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netapi32... ============================================================================== --- trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] Thu Jun 8 08:41:28 2017 @@ -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
Modified: trunk/reactos/dll/win32/netapi32/obsolete.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/obsolete... ============================================================================== --- trunk/reactos/dll/win32/netapi32/obsolete.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/obsolete.c [iso-8859-1] Thu Jun 8 08:41:28 2017 @@ -9,6 +9,9 @@ /* INCLUDES ******************************************************************/
#include "netapi32.h" +#include <lmalert.h> +#include <lmaudit.h> +#include <lmconfig.h>
WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
@@ -32,6 +35,87 @@ _In_ LPVOID VariableInfo, _In_ DWORD VariableInfoSize, _In_ LPCWSTR ServiceName) +{ + return ERROR_NOT_SUPPORTED; +} + + +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; }