From 000a5c73ee42847ef7ba389e3c17c09527ee00df Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Tue, 10 Feb 2004 20:09:43 +0000 Subject: [PATCH] Porting Fixes for Mingw/MSVC. --- dlls/netapi32/nbnamecache.c | 3 +++ dlls/netapi32/nbnamecache.h | 3 +++ dlls/netapi32/netapi32.c | 2 +- dlls/netapi32/wksta.c | 8 ++++++-- include/lmstats.h | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dlls/netapi32/nbnamecache.c b/dlls/netapi32/nbnamecache.c index 60ed1f8be92..f536e864eb8 100644 --- a/dlls/netapi32/nbnamecache.c +++ b/dlls/netapi32/nbnamecache.c @@ -19,7 +19,10 @@ * rather more efficient than not having a name cache at all. */ +#include "config.h" +#include "wine/port.h" #include "wine/debug.h" + #include "nbnamecache.h" WINE_DEFAULT_DEBUG_CHANNEL(netbios); diff --git a/dlls/netapi32/nbnamecache.h b/dlls/netapi32/nbnamecache.h index 22861581af6..04e366314ee 100644 --- a/dlls/netapi32/nbnamecache.h +++ b/dlls/netapi32/nbnamecache.h @@ -17,6 +17,9 @@ #ifndef __WINE_NBNAMECACHE_H #define __WINE_NBNAMECACHE_H +#include + +#include "windef.h" #include "winbase.h" #include "nb30.h" diff --git a/dlls/netapi32/netapi32.c b/dlls/netapi32/netapi32.c index f62ea1d8778..90a5de68dc8 100644 --- a/dlls/netapi32/netapi32.c +++ b/dlls/netapi32/netapi32.c @@ -70,7 +70,7 @@ NET_API_STATUS WINAPI NetServerEnum( /************************************************************ * NetStatisticsGet (NETAPI32.@) */ -NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR *server, LPWSTR *service, +NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service, DWORD level, DWORD options, LPBYTE *bufptr) { diff --git a/dlls/netapi32/wksta.c b/dlls/netapi32/wksta.c index 35510060db7..e65770d3ee9 100644 --- a/dlls/netapi32/wksta.c +++ b/dlls/netapi32/wksta.c @@ -18,10 +18,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "config.h" +#include "wine/port.h" + #include #include #include "windef.h" #include "winbase.h" +#include "winsock2.h" #include "nb30.h" #include "lmcons.h" #include "lmapibuf.h" @@ -234,9 +238,9 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex, } NET_API_STATUS WINAPI -NetWkstaTransportEnum(LPCWSTR ServerName, DWORD level, LPBYTE* pbuf, +NetWkstaTransportEnum(LPWSTR ServerName, DWORD level, PBYTE* pbuf, DWORD prefmaxlen, LPDWORD read_entries, - LPDWORD total_entries, LPDWORD hresume) + PDWORD total_entries, PDWORD hresume) { NET_API_STATUS ret; diff --git a/include/lmstats.h b/include/lmstats.h index e44e0e36d6a..877174bf17c 100644 --- a/include/lmstats.h +++ b/include/lmstats.h @@ -88,7 +88,7 @@ typedef struct _STAT_SERVER_0 { DWORD sts0_bigbufneed; } STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0; -NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR *server, LPWSTR *service, DWORD level, +NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service, DWORD level, DWORD options, LPBYTE *bufptr); #ifdef __cplusplus