2012-12-22 20:11:43 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2002 Andriy Palamarchuk
|
|
|
|
*
|
|
|
|
* netapi32 access functions
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2012-12-26 21:07:13 +00:00
|
|
|
#include "netapi32.h"
|
2012-12-22 20:11:43 +00:00
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
|
|
|
|
|
2013-05-23 15:20:29 +00:00
|
|
|
/************************************************************
|
|
|
|
* NetGroupAdd (NETAPI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS
|
|
|
|
WINAPI
|
|
|
|
NetGroupAdd(IN LPCWSTR servername,
|
|
|
|
IN DWORD level,
|
|
|
|
IN LPBYTE buf,
|
|
|
|
OUT LPDWORD parm_err)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %d, %p, %p) stub!\n", debugstr_w(servername),
|
|
|
|
level, buf, parm_err);
|
|
|
|
return ERROR_ACCESS_DENIED;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetGroupAddUser (NETAPI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS
|
|
|
|
WINAPI
|
|
|
|
NetGroupAddUser(IN LPCWSTR servername,
|
|
|
|
IN LPCWSTR groupname,
|
|
|
|
IN LPCWSTR username)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
|
|
|
|
debugstr_w(groupname), debugstr_w(username));
|
|
|
|
return ERROR_ACCESS_DENIED;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetGroupDel (NETAPI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS
|
|
|
|
WINAPI
|
|
|
|
NetGroupDel(IN LPCWSTR servername,
|
|
|
|
IN LPCWSTR groupname)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s) stub!\n", debugstr_w(servername),
|
|
|
|
debugstr_w(groupname));
|
|
|
|
return ERROR_ACCESS_DENIED;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetGroupDelUser (NETAPI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS
|
|
|
|
WINAPI
|
|
|
|
NetGroupDelUser(IN LPCWSTR servername,
|
|
|
|
IN LPCWSTR groupname,
|
|
|
|
IN LPCWSTR username)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s, %s) stub!\n", debugstr_w(servername),
|
|
|
|
debugstr_w(groupname), debugstr_w(username));
|
|
|
|
return ERROR_ACCESS_DENIED;
|
2012-12-22 20:11:43 +00:00
|
|
|
}
|
|
|
|
|
2013-05-23 15:20:29 +00:00
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetGroupGetUsers (NETAPI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS
|
|
|
|
WINAPI
|
|
|
|
NetGroupGetUsers(IN LPCWSTR servername,
|
|
|
|
IN LPCWSTR groupname,
|
|
|
|
IN DWORD level,
|
|
|
|
OUT LPBYTE *bufptr,
|
|
|
|
IN DWORD prefmaxlen,
|
|
|
|
OUT LPDWORD entriesread,
|
|
|
|
OUT LPDWORD totalentries,
|
|
|
|
IN OUT PDWORD_PTR resume_handle)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername),
|
|
|
|
debugstr_w(groupname), level, bufptr, prefmaxlen, entriesread,
|
|
|
|
totalentries, resume_handle);
|
|
|
|
return ERROR_ACCESS_DENIED;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetGroupSetInfo (NETAPI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS
|
|
|
|
WINAPI
|
|
|
|
NetGroupSetInfo(IN LPCWSTR servername,
|
|
|
|
IN LPCWSTR groupname,
|
|
|
|
IN DWORD level,
|
|
|
|
IN LPBYTE buf,
|
|
|
|
OUT LPDWORD parm_err)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s, %d, %p, %p) stub!\n", debugstr_w(servername),
|
|
|
|
debugstr_w(groupname), level, buf, parm_err);
|
|
|
|
return ERROR_ACCESS_DENIED;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************
|
|
|
|
* NetGroupSetUsers (NETAPI32.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
NET_API_STATUS
|
|
|
|
WINAPI
|
|
|
|
NetGroupSetUsers(IN LPCWSTR servername,
|
|
|
|
IN LPCWSTR groupname,
|
|
|
|
IN DWORD level,
|
|
|
|
IN LPBYTE buf,
|
|
|
|
IN DWORD totalentries)
|
|
|
|
{
|
|
|
|
FIXME("(%s, %s, %d, %p, %d) stub!\n", debugstr_w(servername),
|
|
|
|
debugstr_w(groupname), level, buf, totalentries);
|
|
|
|
return ERROR_ACCESS_DENIED;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|