2003-11-29 01:19:19 +01:00
|
|
|
/* Copyright 2001 Mike McCormack
|
|
|
|
* Copyright 2003 Juan Lang
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-11-06 18:52:36 +01:00
|
|
|
*/
|
|
|
|
|
2001-11-06 20:01:05 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2003-11-29 01:19:19 +01:00
|
|
|
#include "netbios.h"
|
2001-11-06 18:52:36 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(netbios);
|
2001-11-06 18:52:36 +01:00
|
|
|
|
|
|
|
HMODULE NETAPI32_hModule = 0;
|
|
|
|
|
2002-11-05 00:53:41 +01:00
|
|
|
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
2001-11-06 18:52:36 +01:00
|
|
|
{
|
2002-10-19 01:48:57 +02:00
|
|
|
TRACE("%p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved);
|
2001-11-06 18:52:36 +01:00
|
|
|
|
|
|
|
switch (fdwReason) {
|
2003-11-29 01:19:19 +01:00
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
{
|
2003-06-30 22:53:48 +02:00
|
|
|
DisableThreadLibraryCalls(hinstDLL);
|
2001-11-06 18:52:36 +01:00
|
|
|
NETAPI32_hModule = hinstDLL;
|
2003-11-29 01:19:19 +01:00
|
|
|
NetBIOSInit();
|
|
|
|
NetBTInit();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
{
|
|
|
|
NetBIOSShutdown();
|
|
|
|
break;
|
|
|
|
}
|
2001-11-06 18:52:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2003-05-20 01:06:35 +02:00
|
|
|
NET_API_STATUS WINAPI NetServerEnum(
|
|
|
|
LPCWSTR servername,
|
|
|
|
DWORD level,
|
|
|
|
LPBYTE* bufptr,
|
|
|
|
DWORD prefmaxlen,
|
|
|
|
LPDWORD entriesread,
|
|
|
|
LPDWORD totalentries,
|
|
|
|
DWORD servertype,
|
|
|
|
LPCWSTR domain,
|
|
|
|
LPDWORD resume_handle
|
|
|
|
)
|
|
|
|
{
|
|
|
|
FIXME("Stub (%p, %ld %p %ld %p %p %ld %s %p)\n",servername, level, bufptr,
|
|
|
|
prefmaxlen, entriesread, totalentries, servertype, debugstr_w(domain), resume_handle);
|
|
|
|
|
|
|
|
return ERROR_NO_BROWSER_SERVERS_FOUND;
|
|
|
|
}
|
2003-09-11 05:09:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetStatisticsGet (NETAPI32.@)
|
|
|
|
*/
|
2004-02-10 21:09:43 +01:00
|
|
|
NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service,
|
2003-09-11 05:09:19 +02:00
|
|
|
DWORD level, DWORD options,
|
|
|
|
LPBYTE *bufptr)
|
|
|
|
{
|
|
|
|
TRACE("(%p, %p, %ld, %ld, %p)\n", server, service, level, options, bufptr);
|
|
|
|
return NERR_InternalError;
|
|
|
|
}
|