netapi32: Add a stub implementation for NetShareDel. Improve the stub for NetUserGetLocalGroups.

This commit is contained in:
Hans Leidekker 2007-02-18 19:37:37 +01:00 committed by Alexandre Julliard
parent 4270d13b18
commit ae1fde0343
5 changed files with 27 additions and 2 deletions

View File

@ -310,10 +310,24 @@ NetUserGetLocalGroups(LPCWSTR servername, LPCWSTR username, DWORD level,
DWORD flags, LPBYTE* bufptr, DWORD prefmaxlen, DWORD flags, LPBYTE* bufptr, DWORD prefmaxlen,
LPDWORD entriesread, LPDWORD totalentries) LPDWORD entriesread, LPDWORD totalentries)
{ {
NET_API_STATUS status;
FIXME("(%s, %s, %d, %08x, %p %d, %p, %p) stub!\n", FIXME("(%s, %s, %d, %08x, %p %d, %p, %p) stub!\n",
debugstr_w(servername), debugstr_w(username), level, flags, bufptr, debugstr_w(servername), debugstr_w(username), level, flags, bufptr,
prefmaxlen, entriesread, totalentries); prefmaxlen, entriesread, totalentries);
return NERR_InternalError;
status = NETAPI_ValidateServername(servername);
if (status != NERR_Success)
return status;
if (!NETAPI_IsKnownUser(username))
return NERR_UserNotFound;
if (bufptr) *bufptr = NULL;
if (entriesread) *entriesread = 0;
if (totalentries) *totalentries = 0;
return NERR_Success;
} }
/************************************************************ /************************************************************

View File

@ -190,7 +190,7 @@
@ stub NetSessionGetInfo @ stub NetSessionGetInfo
@ stub NetShareAdd @ stub NetShareAdd
@ stub NetShareCheck @ stub NetShareCheck
@ stub NetShareDel @ stdcall NetShareDel(wstr wstr long)
@ stub NetShareDelSticky @ stub NetShareDelSticky
@ stdcall NetShareEnum(wstr long ptr long ptr ptr ptr) @ stdcall NetShareEnum(wstr long ptr long ptr ptr ptr)
@ stub NetShareEnumSticky @ stub NetShareEnumSticky

View File

@ -83,3 +83,12 @@ NET_API_STATUS WINAPI NetShareEnum( LPWSTR servername, DWORD level, LPBYTE* bufp
return ERROR_NOT_SUPPORTED; return ERROR_NOT_SUPPORTED;
} }
/************************************************************
* NetShareDel (NETAPI32.@)
*/
NET_API_STATUS WINAPI NetShareDel(LMSTR servername, LMSTR netname, DWORD reserved)
{
FIXME("Stub (%s %s %d)\n", debugstr_w(servername), debugstr_w(netname), reserved);
return NERR_Success;
}

View File

@ -458,6 +458,7 @@ NET_API_STATUS WINAPI NetLocalGroupSetMembers(LPCWSTR,LPCWSTR,DWORD,LPBYTE,DWORD
NET_API_STATUS WINAPI NetQueryDisplayInformation(LPCWSTR,DWORD,DWORD,DWORD,DWORD,LPDWORD,PVOID*); NET_API_STATUS WINAPI NetQueryDisplayInformation(LPCWSTR,DWORD,DWORD,DWORD,DWORD,LPDWORD,PVOID*);
NET_API_STATUS WINAPI NetUserAdd(LPCWSTR,DWORD,LPBYTE,LPDWORD); NET_API_STATUS WINAPI NetUserAdd(LPCWSTR,DWORD,LPBYTE,LPDWORD);
NET_API_STATUS WINAPI NetUserDel(LPCWSTR,LPCWSTR); NET_API_STATUS WINAPI NetUserDel(LPCWSTR,LPCWSTR);
NET_API_STATUS WINAPI NetUserGetLocalGroups(LPCWSTR,LPCWSTR,DWORD,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD);
NET_API_STATUS WINAPI NetUserEnum(LPCWSTR,DWORD,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD); NET_API_STATUS WINAPI NetUserEnum(LPCWSTR,DWORD,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
NET_API_STATUS WINAPI NetUserGetInfo(LPCWSTR,LPCWSTR,DWORD,LPBYTE*); NET_API_STATUS WINAPI NetUserGetInfo(LPCWSTR,LPCWSTR,DWORD,LPBYTE*);
NET_API_STATUS WINAPI NetUserModalsGet(LPCWSTR,DWORD,LPBYTE*); NET_API_STATUS WINAPI NetUserModalsGet(LPCWSTR,DWORD,LPBYTE*);

View File

@ -32,6 +32,7 @@ typedef struct _SHARE_INFO_1 {
LMSTR shi1_remark; LMSTR shi1_remark;
} SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1; } SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1;
NET_API_STATUS WINAPI NetShareDel(LMSTR servername, LMSTR netname, DWORD reserved);
NET_API_STATUS WINAPI NetShareEnum(LMSTR servername, DWORD level, NET_API_STATUS WINAPI NetShareEnum(LMSTR servername, DWORD level,
LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries,
LPDWORD resume_handle); LPDWORD resume_handle);