Author: ekohl
Date: Thu Jun 8 09:34:31 2017
New Revision: 74958
URL:
http://svn.reactos.org/svn/reactos?rev=74958&view=rev
Log:
[NETAPI32]
Add obsolete NetErrorLog and NetService 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/netapi3…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/netapi32.spec [iso-8859-1] Thu Jun 8 09:34:31 2017
@@ -141,9 +141,9 @@
@ stub NetDfsSetStdContainerSecurity
@ stub NetEnumerateComputerNames
@ stdcall NetEnumerateTrustedDomains(wstr ptr)
-@ stub NetErrorLogClear
-@ stub NetErrorLogRead
-@ stub NetErrorLogWrite
+@ stdcall NetErrorLogClear(wstr wstr ptr)
+@ stdcall NetErrorLogRead(wstr wstr ptr long ptr long long ptr long ptr ptr)
+@ stdcall NetErrorLogWrite(ptr long wstr ptr long ptr long ptr)
@ stdcall NetFileClose(wstr long)
@ stdcall NetFileEnum(wstr wstr wstr long ptr long ptr ptr ptr)
@ stdcall NetFileGetInfo(wstr long long ptr)
@@ -216,10 +216,10 @@
@ stdcall NetServerTransportAddEx(wstr long ptr)
@ stdcall NetServerTransportDel(wstr long ptr)
@ stdcall NetServerTransportEnum(wstr long ptr long ptr ptr ptr)
-@ stub NetServiceControl
-@ stub NetServiceEnum
-@ stub NetServiceGetInfo
-@ stub NetServiceInstall
+@ stdcall NetServiceControl(wstr wstr long long ptr)
+@ stdcall NetServiceEnum(wstr long ptr long ptr ptr ptr)
+@ stdcall NetServiceGetInfo(wstr wstr long ptr)
+@ stdcall NetServiceInstall(wstr wstr long ptr ptr)
@ stdcall NetSessionDel(wstr wstr wstr)
@ stdcall NetSessionEnum(wstr wstr wstr long ptr long ptr ptr ptr)
@ stdcall NetSessionGetInfo(wstr wstr wstr long ptr)
Modified: trunk/reactos/dll/win32/netapi32/obsolete.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/obsolet…
==============================================================================
--- trunk/reactos/dll/win32/netapi32/obsolete.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/obsolete.c [iso-8859-1] Thu Jun 8 09:34:31 2017
@@ -12,6 +12,9 @@
#include <lmalert.h>
#include <lmaudit.h>
#include <lmconfig.h>
+#include <lmerrlog.h>
+#include <lmmsg.h>
+#include <lmsvc.h>
WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
@@ -123,6 +126,52 @@
NET_API_STATUS
WINAPI
+NetErrorLogClear(
+ _In_opt_ LPCWSTR UncServerName,
+ _In_opt_ LPCWSTR BackupFile,
+ _In_opt_ LPBYTE Reserved)
+{
+ return ERROR_NOT_SUPPORTED;
+}
+
+
+NET_API_STATUS
+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)
+{
+ return ERROR_NOT_SUPPORTED;
+}
+
+
+NET_API_STATUS
+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)
+{
+ return ERROR_NOT_SUPPORTED;
+}
+
+
+NET_API_STATUS
+WINAPI
NetMessageBufferSend(
_In_ LPCWSTR servername,
_In_ LPCWSTR msgname,
@@ -180,4 +229,57 @@
return ERROR_NOT_SUPPORTED;
}
+
+NET_API_STATUS
+WINAPI
+NetServiceControl(
+ __in_opt LPCWSTR servername,
+ __in LPCWSTR service,
+ __in DWORD opcode,
+ __in DWORD arg,
+ __deref_out LPBYTE *bufptr)
+{
+ return ERROR_NOT_SUPPORTED;
+}
+
+
+NET_API_STATUS
+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)
+{
+ return ERROR_NOT_SUPPORTED;
+}
+
+
+NET_API_STATUS
+WINAPI
+NetServiceGetInfo(
+ __in_opt LPCWSTR servername,
+ __in LPCWSTR service,
+ __in DWORD level,
+ __deref_out LPBYTE *bufptr)
+{
+ return ERROR_NOT_SUPPORTED;
+}
+
+
+NET_API_STATUS
+WINAPI
+NetServiceInstall(
+ __in_opt LPCWSTR servername,
+ __in LPCWSTR service,
+ __in DWORD argc,
+ __in_ecount(argc) LPCWSTR argv[],
+ __deref_out LPBYTE *bufptr)
+{
+ return ERROR_NOT_SUPPORTED;
+}
+
/* EOF */