1 /* Copyright 2006 Paul Vriens
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.
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.
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
20 WINE_DEFAULT_DEBUG_CHANNEL(share
);
22 /************************************************************
23 * NetSessionEnum (NETAPI32.@)
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
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.
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
)
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
);
59 /************************************************************
60 * NetShareEnum (NETAPI32.@)
63 * servername [I] Pointer to a string with the name of the server
64 * level [I] Data information level
65 * bufptr [O] Buffer to the data
66 * prefmaxlen [I] Preferred maximum length of the data
67 * entriesread [O] Pointer to the number of entries enumerated
68 * totalentries [O] Pointer to the possible number of entries
69 * resume_handle [I/O] Pointer to a handle for subsequent searches
72 * If successful, the function returns NERR_Success
73 * On failure it returns a system error code (FIXME: find out which)
76 NET_API_STATUS WINAPI
NetShareEnum( LMSTR servername
, DWORD level
, LPBYTE
* bufptr
,
77 DWORD prefmaxlen
, LPDWORD entriesread
, LPDWORD totalentries
, LPDWORD resume_handle
)
79 FIXME("Stub (%s %d %p %d %p %p %p)\n", debugstr_w(servername
), level
, bufptr
,
80 prefmaxlen
, entriesread
, totalentries
, resume_handle
);
82 return ERROR_NOT_SUPPORTED
;
85 /************************************************************
86 * NetShareDel (NETAPI32.@)
88 NET_API_STATUS WINAPI
NetShareDel(LMSTR servername
, LMSTR netname
, DWORD reserved
)
90 FIXME("Stub (%s %s %d)\n", debugstr_w(servername
), debugstr_w(netname
), reserved
);
94 /************************************************************
95 * NetShareGetInfo (NETAPI32.@)
97 NET_API_STATUS WINAPI
NetShareGetInfo(LMSTR servername
, LMSTR netname
,
98 DWORD level
, LPBYTE
*bufptr
)
100 FIXME("Stub (%s %s %d %p)\n", debugstr_w(servername
),
101 debugstr_w(netname
),level
, bufptr
);
102 return NERR_NetNameNotFound
;
105 /************************************************************
106 * NetShareAdd (NETAPI32.@)
108 NET_API_STATUS WINAPI
NetShareAdd(LMSTR servername
,
109 DWORD level
, LPBYTE buf
, LPDWORD parm_err
)
111 FIXME("Stub (%s %d %p %p)\n", debugstr_w(servername
), level
, buf
, parm_err
);
112 return ERROR_NOT_SUPPORTED
;
115 /************************************************************
116 * NetFileEnum (NETAPI32.@)
118 NET_API_STATUS WINAPI
NetFileEnum(
119 LPWSTR ServerName
, LPWSTR BasePath
, LPWSTR UserName
,
120 DWORD Level
, LPBYTE
* BufPtr
, DWORD PrefMaxLen
,
121 LPDWORD EntriesRead
, LPDWORD TotalEntries
, PDWORD_PTR ResumeHandle
)
123 FIXME("(%s, %s, %s, %u): stub\n", debugstr_w(ServerName
), debugstr_w(BasePath
),
124 debugstr_w(UserName
), Level
);
125 return ERROR_NOT_SUPPORTED
;