mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SRVSVC] Implement NetrServerStatisticsGet().
This commit is contained in:
parent
9d15fb9279
commit
2a4ea213fa
1 changed files with 22 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue