[SRVSVC] Implement NetrServerStatisticsGet().

This commit is contained in:
EricKohl 2017-10-12 17:57:45 +02:00
parent 9d15fb9279
commit 2a4ea213fa

View file

@ -395,8 +395,28 @@ NetrServerStatisticsGet(
DWORD Options, DWORD Options,
LPSTAT_SERVER_0 *InfoStruct) LPSTAT_SERVER_0 *InfoStruct)
{ {
UNIMPLEMENTED; PSTAT_SERVER_0 pStatBuffer;
return ERROR_CALL_NOT_IMPLEMENTED;
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;
} }