From a233d55dbd36a78ab34705e2f2bb1c60f806f809 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Fri, 7 Apr 2006 15:59:45 +0200 Subject: [PATCH] netapi32: Move NetShareEnum from browsr.c to share.c. --- dlls/netapi32/browsr.c | 11 ----------- dlls/netapi32/share.c | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/dlls/netapi32/browsr.c b/dlls/netapi32/browsr.c index b0ed893a749..7b0b68cc1b3 100644 --- a/dlls/netapi32/browsr.c +++ b/dlls/netapi32/browsr.c @@ -49,14 +49,3 @@ NET_API_STATUS WINAPI I_BrowserQueryEmulatedDomains( { return ERROR_NOT_SUPPORTED; } - -/************************************************************ - * NetShareEnum (NETAPI32.@) - */ -NET_API_STATUS WINAPI NetShareEnum( LPWSTR servername, DWORD level, LPBYTE* bufptr, - DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle) -{ - FIXME("%s %ld %p %ld %p %p %p\n", debugstr_w(servername), level, bufptr, - prefmaxlen, entriesread, totalentries, resume_handle); - return ERROR_NOT_SUPPORTED; -} diff --git a/dlls/netapi32/share.c b/dlls/netapi32/share.c index c81381e2cbf..4f83130dfa5 100644 --- a/dlls/netapi32/share.c +++ b/dlls/netapi32/share.c @@ -17,6 +17,7 @@ #include "wine/debug.h" #include "lm.h" +#include "winerror.h" WINE_DEFAULT_DEBUG_CHANNEL(share); @@ -56,3 +57,29 @@ NET_API_STATUS WINAPI NetSessionEnum(LPWSTR servername, LPWSTR UncClientName, return NERR_Success; } + +/************************************************************ + * 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) +{ + FIXME("Stub (%s %ld %p %ld %p %p %p)\n", debugstr_w(servername), level, bufptr, + prefmaxlen, entriesread, totalentries, resume_handle); + + return ERROR_NOT_SUPPORTED; +} -- 2.11.4.GIT