2006-04-06 14:34:14 +02:00
|
|
|
/* Copyright 2006 Paul Vriens
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2006-04-06 14:34:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
#include "lm.h"
|
2006-04-07 15:59:45 +02:00
|
|
|
#include "winerror.h"
|
2006-04-06 14:34:14 +02:00
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(share);
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetSessionEnum (NETAPI32.@)
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* servername [I] Pointer to a string with the name of the server
|
|
|
|
* UncClientName [I] Pointer to a string with the name of the session
|
|
|
|
* username [I] Pointer to a string with the name of the user
|
|
|
|
* level [I] Data information level
|
|
|
|
* bufptr [O] Buffer to the data
|
|
|
|
* prefmaxlen [I] Preferred maximum length of the data
|
|
|
|
* entriesread [O] Pointer to the number of entries enumerated
|
|
|
|
* totalentries [O] Pointer to the possible number of entries
|
|
|
|
* resume_handle [I/O] Pointer to a handle for subsequent searches
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* If successful, the function returns NERR_Success
|
|
|
|
* On failure it returns:
|
|
|
|
* ERROR_ACCESS_DENIED User has no access to the requested information
|
|
|
|
* ERROR_INVALID_LEVEL Value of 'level' is not correct
|
|
|
|
* ERROR_INVALID_PARAMETER Wrong parameter
|
|
|
|
* ERROR_MORE_DATA Need a larger buffer
|
|
|
|
* ERROR_NOT_ENOUGH_MEMORY Not enough memory
|
|
|
|
* NERR_ClientNameNotFound A session does not exist on a given computer
|
|
|
|
* NERR_InvalidComputer Invalid computer name
|
|
|
|
* NERR_UserNotFound User name could not be found.
|
|
|
|
*/
|
|
|
|
NET_API_STATUS WINAPI NetSessionEnum(LPWSTR servername, LPWSTR UncClientName,
|
|
|
|
LPWSTR username, DWORD level, LPBYTE* bufptr, DWORD prefmaxlen, LPDWORD entriesread,
|
|
|
|
LPDWORD totalentries, LPDWORD resume_handle)
|
|
|
|
{
|
2006-10-12 20:56:59 +02:00
|
|
|
FIXME("Stub (%s %s %s %d %p %d %p %p %p)\n", debugstr_w(servername),
|
2006-04-06 14:34:14 +02:00
|
|
|
debugstr_w(UncClientName), debugstr_w(username),
|
|
|
|
level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle);
|
|
|
|
|
|
|
|
return NERR_Success;
|
|
|
|
}
|
2006-04-07 15:59:45 +02:00
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetShareEnum (NETAPI32.@)
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* servername [I] Pointer to a string with the name of the server
|
|
|
|
* level [I] Data information level
|
|
|
|
* bufptr [O] Buffer to the data
|
|
|
|
* prefmaxlen [I] Preferred maximum length of the data
|
|
|
|
* entriesread [O] Pointer to the number of entries enumerated
|
|
|
|
* totalentries [O] Pointer to the possible number of entries
|
|
|
|
* resume_handle [I/O] Pointer to a handle for subsequent searches
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* If successful, the function returns NERR_Success
|
|
|
|
* On failure it returns a system error code (FIXME: find out which)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS WINAPI NetShareEnum( LPWSTR servername, DWORD level, LPBYTE* bufptr,
|
|
|
|
DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle)
|
|
|
|
{
|
2006-10-12 20:56:59 +02:00
|
|
|
FIXME("Stub (%s %d %p %d %p %p %p)\n", debugstr_w(servername), level, bufptr,
|
2006-04-07 15:59:45 +02:00
|
|
|
prefmaxlen, entriesread, totalentries, resume_handle);
|
|
|
|
|
|
|
|
return ERROR_NOT_SUPPORTED;
|
|
|
|
}
|