Porting Fixes for Mingw/MSVC.
This commit is contained in:
parent
7b6935c2ae
commit
000a5c73ee
|
@ -19,7 +19,10 @@
|
||||||
* rather more efficient than not having a name cache at all.
|
* rather more efficient than not having a name cache at all.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include "wine/port.h"
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
#include "nbnamecache.h"
|
#include "nbnamecache.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(netbios);
|
WINE_DEFAULT_DEBUG_CHANNEL(netbios);
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
#ifndef __WINE_NBNAMECACHE_H
|
#ifndef __WINE_NBNAMECACHE_H
|
||||||
#define __WINE_NBNAMECACHE_H
|
#define __WINE_NBNAMECACHE_H
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "nb30.h"
|
#include "nb30.h"
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ NET_API_STATUS WINAPI NetServerEnum(
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* NetStatisticsGet (NETAPI32.@)
|
* NetStatisticsGet (NETAPI32.@)
|
||||||
*/
|
*/
|
||||||
NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR *server, LPWSTR *service,
|
NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service,
|
||||||
DWORD level, DWORD options,
|
DWORD level, DWORD options,
|
||||||
LPBYTE *bufptr)
|
LPBYTE *bufptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,10 +18,14 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
#include "wine/port.h"
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
|
#include "winsock2.h"
|
||||||
#include "nb30.h"
|
#include "nb30.h"
|
||||||
#include "lmcons.h"
|
#include "lmcons.h"
|
||||||
#include "lmapibuf.h"
|
#include "lmapibuf.h"
|
||||||
|
@ -234,9 +238,9 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex,
|
||||||
}
|
}
|
||||||
|
|
||||||
NET_API_STATUS WINAPI
|
NET_API_STATUS WINAPI
|
||||||
NetWkstaTransportEnum(LPCWSTR ServerName, DWORD level, LPBYTE* pbuf,
|
NetWkstaTransportEnum(LPWSTR ServerName, DWORD level, PBYTE* pbuf,
|
||||||
DWORD prefmaxlen, LPDWORD read_entries,
|
DWORD prefmaxlen, LPDWORD read_entries,
|
||||||
LPDWORD total_entries, LPDWORD hresume)
|
PDWORD total_entries, PDWORD hresume)
|
||||||
{
|
{
|
||||||
NET_API_STATUS ret;
|
NET_API_STATUS ret;
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ typedef struct _STAT_SERVER_0 {
|
||||||
DWORD sts0_bigbufneed;
|
DWORD sts0_bigbufneed;
|
||||||
} STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0;
|
} 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);
|
DWORD options, LPBYTE *bufptr);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue