stub for NetServerGetInfo
[reactos.git] / reactos / lib / netapi32 / netapi32.c
1 /* Copyright 2001 Mike McCormack
2 * Copyright 2003 Juan Lang
3 *
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.
8 *
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.
13 *
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
17 */
18
19 #include "config.h"
20
21 #include "wine/debug.h"
22 #include "netbios.h"
23
24 WINE_DEFAULT_DEBUG_CHANNEL(netbios);
25
26 HMODULE NETAPI32_hModule = 0;
27
28 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
29 {
30 TRACE("%p,%lx,%p\n", hinstDLL, fdwReason, lpvReserved);
31
32 switch (fdwReason) {
33 case DLL_PROCESS_ATTACH:
34 {
35 DisableThreadLibraryCalls(hinstDLL);
36 NETAPI32_hModule = hinstDLL;
37 NetBIOSInit();
38 NetBTInit();
39 break;
40 }
41 case DLL_PROCESS_DETACH:
42 {
43 NetBIOSShutdown();
44 break;
45 }
46 }
47
48 return TRUE;
49 }
50
51 NET_API_STATUS WINAPI NetServerEnum(
52 LPCWSTR servername,
53 DWORD level,
54 LPBYTE* bufptr,
55 DWORD prefmaxlen,
56 LPDWORD entriesread,
57 LPDWORD totalentries,
58 DWORD servertype,
59 LPCWSTR domain,
60 LPDWORD resume_handle
61 )
62 {
63 FIXME("Stub (%p, %ld %p %ld %p %p %ld %s %p)\n",servername, level, bufptr,
64 prefmaxlen, entriesread, totalentries, servertype, debugstr_w(domain), resume_handle);
65
66 return ERROR_NO_BROWSER_SERVERS_FOUND;
67 }
68
69 NET_API_STATUS WINAPI
70 NetServerGetInfo(LPWSTR servername, DWORD level, LPBYTE* bufptr)
71 {
72 FIXME("stub (%p, %ld, %p)\n", servername, level, bufptr);
73 return ERROR_ACCESS_DENIED;
74 }
75
76
77 /************************************************************
78 * NetStatisticsGet (NETAPI32.@)
79 */
80 NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service,
81 DWORD level, DWORD options,
82 PBYTE *bufptr)
83 {
84 TRACE("(%p, %p, %ld, %ld, %p)\n", server, service, level, options, bufptr);
85 return NERR_InternalError;
86 }