[NETAPI32]

Add obsolete NetErrorLog and NetService functions.

svn path=/trunk/; revision=74958
This commit is contained in:
Eric Kohl 2017-06-08 09:34:31 +00:00
parent 6d28124a20
commit 30ad304570
2 changed files with 109 additions and 7 deletions

View file

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

View file

@ -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);
@ -121,6 +124,52 @@ NetConfigSet(
}
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(
@ -180,4 +229,57 @@ NetMessageNameGetInfo(
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 */