[NETAPI32]
[reactos.git] / reactos / dll / win32 / netapi32 / share.c
1 /* Copyright 2006 Paul Vriens
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17
18 #include "netapi32.h"
19
20 WINE_DEFAULT_DEBUG_CHANNEL(share);
21
22 /************************************************************
23 * NetSessionEnum (NETAPI32.@)
24 *
25 * PARAMS
26 * servername [I] Pointer to a string with the name of the server
27 * UncClientName [I] Pointer to a string with the name of the session
28 * username [I] Pointer to a string with the name of the user
29 * level [I] Data information level
30 * bufptr [O] Buffer to the data
31 * prefmaxlen [I] Preferred maximum length of the data
32 * entriesread [O] Pointer to the number of entries enumerated
33 * totalentries [O] Pointer to the possible number of entries
34 * resume_handle [I/O] Pointer to a handle for subsequent searches
35 *
36 * RETURNS
37 * If successful, the function returns NERR_Success
38 * On failure it returns:
39 * ERROR_ACCESS_DENIED User has no access to the requested information
40 * ERROR_INVALID_LEVEL Value of 'level' is not correct
41 * ERROR_INVALID_PARAMETER Wrong parameter
42 * ERROR_MORE_DATA Need a larger buffer
43 * ERROR_NOT_ENOUGH_MEMORY Not enough memory
44 * NERR_ClientNameNotFound A session does not exist on a given computer
45 * NERR_InvalidComputer Invalid computer name
46 * NERR_UserNotFound User name could not be found.
47 */
48 NET_API_STATUS WINAPI NetSessionEnum(LMSTR servername, LMSTR UncClientName,
49 LMSTR username, DWORD level, LPBYTE* bufptr, DWORD prefmaxlen, LPDWORD entriesread,
50 LPDWORD totalentries, LPDWORD resume_handle)
51 {
52 FIXME("Stub (%s %s %s %d %p %d %p %p %p)\n", debugstr_w(servername),
53 debugstr_w(UncClientName), debugstr_w(username),
54 level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle);
55
56 return NERR_Success;
57 }
58
59 /************************************************************
60 * NetFileEnum (NETAPI32.@)
61 */
62 NET_API_STATUS WINAPI NetFileEnum(
63 LPWSTR ServerName, LPWSTR BasePath, LPWSTR UserName,
64 DWORD Level, LPBYTE* BufPtr, DWORD PrefMaxLen,
65 LPDWORD EntriesRead, LPDWORD TotalEntries, PDWORD_PTR ResumeHandle)
66 {
67 FIXME("(%s, %s, %s, %u): stub\n", debugstr_w(ServerName), debugstr_w(BasePath),
68 debugstr_w(UserName), Level);
69 return ERROR_NOT_SUPPORTED;
70 }