mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[WKSSVC] Implements NetrWorkstationStatisticsGet().
Should fix CORE-13867 and CORE-13868.
This commit is contained in:
parent
a8ad1702da
commit
5048dc8930
1 changed files with 22 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue