From ae71af004b103e3fdd29fadfdf4d4031fe563262 Mon Sep 17 00:00:00 2001 From: Vladimir Pankratov Date: Thu, 31 Jul 2008 12:00:31 +0500 Subject: [PATCH] netapi32: Add stub for NetGroupEnum. --- dlls/netapi32/access.c | 12 ++++++++++++ dlls/netapi32/netapi32.spec | 2 +- include/lmaccess.h | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dlls/netapi32/access.c b/dlls/netapi32/access.c index 4fdf60a26b5..5da07a617fd 100644 --- a/dlls/netapi32/access.c +++ b/dlls/netapi32/access.c @@ -689,6 +689,18 @@ NetGetDCName(LPCWSTR servername, LPCWSTR domainname, LPBYTE *bufptr) return NERR_DCNotFound; /* say we can't find a domain controller */ } +/************************************************************ + * NetGroupEnum (NETAPI32.@) + * + */ +NET_API_STATUS WINAPI +NetGroupEnum(LPCWSTR servername, DWORD level, LPBYTE *bufptr, DWORD prefmaxlen, + LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle) +{ + FIXME("(%s, %d, %p, %d, %p, %p, %p) stub!\n", debugstr_w(servername), + level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle); + return ERROR_ACCESS_DENIED; +} /****************************************************************************** * NetUserModalsGet (NETAPI32.@) diff --git a/dlls/netapi32/netapi32.spec b/dlls/netapi32/netapi32.spec index 4b53e79dc33..8f1a5446a76 100644 --- a/dlls/netapi32/netapi32.spec +++ b/dlls/netapi32/netapi32.spec @@ -98,7 +98,7 @@ @ stub NetGroupAddUser @ stub NetGroupDel @ stub NetGroupDelUser -@ stub NetGroupEnum +@ stdcall NetGroupEnum(wstr long ptr long ptr ptr ptr) @ stub NetGroupGetInfo @ stub NetGroupGetUsers @ stub NetGroupSetInfo diff --git a/include/lmaccess.h b/include/lmaccess.h index b3372d7bcc5..c29a40c4700 100644 --- a/include/lmaccess.h +++ b/include/lmaccess.h @@ -449,6 +449,7 @@ typedef struct _LOCALGROUP_USERS_INFO_0 { #define LOCALGROUP_COMMENT_PARMNUM 2 NET_API_STATUS WINAPI NetGetDCName(LPCWSTR,LPCWSTR,LPBYTE*); +NET_API_STATUS WINAPI NetGroupEnum(LPCWSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD); NET_API_STATUS WINAPI NetLocalGroupAdd(LPCWSTR,DWORD,LPBYTE,LPDWORD); NET_API_STATUS WINAPI NetLocalGroupAddMember(LPCWSTR,LPCWSTR,PSID); NET_API_STATUS WINAPI NetLocalGroupAddMembers(LPCWSTR,LPCWSTR,DWORD,LPBYTE,DWORD);