netapi32: Add a stub implementation for NetShareDel. Improve the stub for NetUserGetLocalGroups.
This commit is contained in:
parent
4270d13b18
commit
ae1fde0343
|
@ -310,10 +310,24 @@ NetUserGetLocalGroups(LPCWSTR servername, LPCWSTR username, DWORD level,
|
|||
DWORD flags, LPBYTE* bufptr, DWORD prefmaxlen,
|
||||
LPDWORD entriesread, LPDWORD totalentries)
|
||||
{
|
||||
NET_API_STATUS status;
|
||||
|
||||
FIXME("(%s, %s, %d, %08x, %p %d, %p, %p) stub!\n",
|
||||
debugstr_w(servername), debugstr_w(username), level, flags, bufptr,
|
||||
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;
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
|
|
|
@ -190,7 +190,7 @@
|
|||
@ stub NetSessionGetInfo
|
||||
@ stub NetShareAdd
|
||||
@ stub NetShareCheck
|
||||
@ stub NetShareDel
|
||||
@ stdcall NetShareDel(wstr wstr long)
|
||||
@ stub NetShareDelSticky
|
||||
@ stdcall NetShareEnum(wstr long ptr long ptr ptr ptr)
|
||||
@ stub NetShareEnumSticky
|
||||
|
|
|
@ -83,3 +83,12 @@ NET_API_STATUS WINAPI NetShareEnum( LPWSTR servername, DWORD level, LPBYTE* bufp
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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 NetUserAdd(LPCWSTR,DWORD,LPBYTE,LPDWORD);
|
||||
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 NetUserGetInfo(LPCWSTR,LPCWSTR,DWORD,LPBYTE*);
|
||||
NET_API_STATUS WINAPI NetUserModalsGet(LPCWSTR,DWORD,LPBYTE*);
|
||||
|
|
|
@ -32,6 +32,7 @@ typedef struct _SHARE_INFO_1 {
|
|||
LMSTR shi1_remark;
|
||||
} 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,
|
||||
LPBYTE *bufptr, DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries,
|
||||
LPDWORD resume_handle);
|
||||
|
|
Loading…
Reference in New Issue