[NTOSKRNL_VISTA] Implement/stubplement more Etw, Io, Ke, Po functions

CORE-17129
This commit is contained in:
Victor Perevertkin 2020-08-28 15:28:45 +03:00
parent 17dc5f7584
commit 5e242c5566
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
5 changed files with 214 additions and 10 deletions

View file

@ -1,9 +1,9 @@
/*
* PROJECT: ReactOS Kernel - Vista+ APIs
* LICENSE: GPL v2 - See COPYING in the top level directory
* FILE: lib/drivers/ntoskrnl_vista/ke.c
* PURPOSE: Ke functions of Vista+
* PROGRAMMERS: Pierre Schweitzer <pierre@reactos.org>
* PROJECT: ReactOS Kernel - Vista+ APIs
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Ke functions of Vista+
* COPYRIGHT: 2016 Pierre Schweitzer (pierre@reactos.org)
* 2020 Victor Perevertkin (victor.perevertkin@reactos.org)
*/
#include <ntdef.h>
@ -25,3 +25,33 @@ KeQueryActiveProcessorCount(OUT PKAFFINITY ActiveProcessors OPTIONAL)
RtlInitializeBitMap(&Bitmap, (PULONG)&ActiveMap, sizeof(ActiveMap) * 8);
return RtlNumberOfSetBits(&Bitmap);
}
NTKERNELAPI
USHORT
NTAPI
KeQueryHighestNodeNumber()
{
return 0;
}
NTKERNELAPI
USHORT
NTAPI
KeGetCurrentNodeNumber()
{
return 0;
}
_IRQL_requires_max_(DISPATCH_LEVEL)
NTKERNELAPI
BOOLEAN
NTAPI
KeSetCoalescableTimer(
_Inout_ PKTIMER Timer,
_In_ LARGE_INTEGER DueTime,
_In_ ULONG Period,
_In_ ULONG TolerableDelay,
_In_opt_ PKDPC Dpc)
{
return KeSetTimerEx(Timer, DueTime, Period, Dpc);
}