https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5048dc8930fb01e6c3c6f…
commit 5048dc8930fb01e6c3c6fd69263d39f90667a611
Author: EricKohl <eric.kohl(a)reactos.org>
AuthorDate: Wed Oct 11 22:54:14 2017 +0200
[WKSSVC] Implements NetrWorkstationStatisticsGet().
Should fix CORE-13867 and CORE-13868.
---
base/services/wkssvc/rpcserver.c | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/base/services/wkssvc/rpcserver.c b/base/services/wkssvc/rpcserver.c
index 4de805c98a..422138e32d 100644
--- a/base/services/wkssvc/rpcserver.c
+++ b/base/services/wkssvc/rpcserver.c
@@ -267,8 +267,28 @@ NetrWorkstationStatisticsGet(
unsigned long Options,
LPSTAT_WORKSTATION_0 *Buffer)
{
- UNIMPLEMENTED;
- return 0;
+ PSTAT_WORKSTATION_0 pStatBuffer;
+
+ TRACE("NetrWorkstationStatisticsGet(%p %p %lu 0x%lx %p)\n",
+ ServerName, ServiceName, Level, Options, Buffer);
+
+ if (Level != 0)
+ return ERROR_INVALID_LEVEL;
+
+ if (Options != 0)
+ return ERROR_INVALID_PARAMETER;
+
+ pStatBuffer = midl_user_allocate(sizeof(STAT_WORKSTATION_0));
+ if (pStatBuffer == NULL)
+ return ERROR_NOT_ENOUGH_MEMORY;
+
+ ZeroMemory(pStatBuffer, sizeof(STAT_WORKSTATION_0));
+
+ // FIXME: Return the actual statistcs data!
+
+ *Buffer = pStatBuffer;
+
+ return NERR_Success;
}