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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "wine/debug.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(netbios
);
27 HMODULE NETAPI32_hModule
= 0;
29 BOOL WINAPI
DllMain (HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID lpvReserved
)
31 TRACE("%p,%lx,%p\n", hinstDLL
, fdwReason
, lpvReserved
);
34 case DLL_PROCESS_ATTACH
:
36 DisableThreadLibraryCalls(hinstDLL
);
37 NETAPI32_hModule
= hinstDLL
;
42 case DLL_PROCESS_DETACH
:
52 NET_API_STATUS WINAPI
NetServerEnum(
64 FIXME("Stub (%s %ld %p %ld %p %p %ld %s %p)\n", debugstr_w(servername
),
65 level
, bufptr
, prefmaxlen
, entriesread
, totalentries
, servertype
,
66 debugstr_w(domain
), resume_handle
);
68 return ERROR_NO_BROWSER_SERVERS_FOUND
;
72 /************************************************************
73 * NetServerGetInfo (NETAPI32.@)
75 NET_API_STATUS WINAPI
NetServerGetInfo(LMSTR servername
, DWORD level
, LPBYTE
* bufptr
)
77 FIXME("stub (%p, %ld, %p)\n", servername
, level
, bufptr
);
78 return ERROR_ACCESS_DENIED
;
82 /************************************************************
83 * NetStatisticsGet (NETAPI32.@)
85 NET_API_STATUS WINAPI
NetStatisticsGet(LPWSTR server
, LPWSTR service
,
86 DWORD level
, DWORD options
,
89 TRACE("(%p, %p, %ld, %ld, %p)\n", server
, service
, level
, options
, bufptr
);
90 return NERR_InternalError
;
93 DWORD WINAPI
NetpNetBiosStatusToApiStatus(DWORD nrc
)
103 ret
= NERR_NoNetworkResource
;
106 ret
= NERR_AlreadyExists
;
109 ret
= NERR_TooManyNames
;
112 ret
= NERR_DeleteLater
;
115 ret
= ERROR_REM_NOT_LIST
;
118 ret
= NERR_NameNotFound
;
121 ret
= ERROR_INVALID_PARAMETER
;
124 ret
= NERR_DuplicateName
;
127 ret
= ERROR_INVALID_PARAMETER
;
130 ret
= NERR_DuplicateName
;
133 ret
= NERR_NetworkError
;