https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2a4ea213fa1b7522d17e1…
commit 2a4ea213fa1b7522d17e1efe613103e4ca5ca5d3
Author: EricKohl <eric.kohl(a)reactos.org>
AuthorDate: Thu Oct 12 17:57:45 2017 +0200
[SRVSVC] Implement NetrServerStatisticsGet().
---
base/services/srvsvc/rpcserver.c | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/base/services/srvsvc/rpcserver.c b/base/services/srvsvc/rpcserver.c
index 217d662380..ab96f2554f 100644
--- a/base/services/srvsvc/rpcserver.c
+++ b/base/services/srvsvc/rpcserver.c
@@ -395,8 +395,28 @@ NetrServerStatisticsGet(
DWORD Options,
LPSTAT_SERVER_0 *InfoStruct)
{
- UNIMPLEMENTED;
- return ERROR_CALL_NOT_IMPLEMENTED;
+ PSTAT_SERVER_0 pStatBuffer;
+
+ TRACE("NetrServerStatisticsGet(%p %p %lu 0x%lx %p)\n",
+ ServerName, Service, Level, Options, InfoStruct);
+
+ if (Level != 0)
+ return ERROR_INVALID_LEVEL;
+
+ if (Options != 0)
+ return ERROR_INVALID_PARAMETER;
+
+ pStatBuffer = midl_user_allocate(sizeof(STAT_SERVER_0));
+ if (pStatBuffer == NULL)
+ return ERROR_NOT_ENOUGH_MEMORY;
+
+ ZeroMemory(pStatBuffer, sizeof(STAT_SERVER_0));
+
+ // FIXME: Return the actual statistcs data!
+
+ *InfoStruct = pStatBuffer;
+
+ return NERR_Success;
}