1 /* Copyright 2001 Mike McCormack
2 * Copyright 2003 Juan Lang
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "wine/debug.h"
24 WINE_DEFAULT_DEBUG_CHANNEL(netbios);
26 HMODULE NETAPI32_hModule = 0;
28 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
30 TRACE("%p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved);
33 case DLL_PROCESS_ATTACH:
35 DisableThreadLibraryCalls(hinstDLL);
36 NETAPI32_hModule = hinstDLL;
41 case DLL_PROCESS_DETACH:
51 NET_API_STATUS WINAPI NetServerEnum(
63 FIXME("Stub (%s %ld %p %ld %p %p %ld %s %p)\n", debugstr_w(servername),
64 level, bufptr, prefmaxlen, entriesread, totalentries, servertype,
65 debugstr_w(domain), resume_handle);
67 return ERROR_NO_BROWSER_SERVERS_FOUND;
71 /************************************************************
72 * NetServerGetInfo (NETAPI32.@)
74 NET_API_STATUS WINAPI NetServerGetInfo(LPCWSTR servername, DWORD level, LPBYTE* bufptr)
76 FIXME("stub (%p, %ld, %p)\n", servername, level, bufptr);
77 return ERROR_ACCESS_DENIED;
81 /************************************************************
82 * NetStatisticsGet (NETAPI32.@)
84 NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service,
85 DWORD level, DWORD options,
88 TRACE("(%p, %p, %ld, %ld, %p)\n", server, service, level, options, bufptr);
89 return NERR_InternalError;
92 DWORD WINAPI NetpNetBiosStatusToApiStatus(DWORD nrc)
102 ret = NERR_NoNetworkResource;
105 ret = NERR_AlreadyExists;
108 ret = NERR_TooManyNames;
111 ret = NERR_DeleteLater;
114 ret = ERROR_REM_NOT_LIST;
117 ret = NERR_NameNotFound;
120 ret = ERROR_INVALID_PARAMETER;
123 ret = NERR_DuplicateName;
126 ret = ERROR_INVALID_PARAMETER;
129 ret = NERR_DuplicateName;
132 ret = NERR_NetworkError;