2016-07-25 20:45:48 +00:00
|
|
|
/*
|
2020-08-28 12:28:45 +00:00
|
|
|
* 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)
|
2016-07-25 20:45:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <ntdef.h>
|
|
|
|
#include <ntifs.h>
|
|
|
|
|
2020-09-24 18:51:57 +00:00
|
|
|
NTKRNLVISTAAPI
|
2016-07-25 20:45:48 +00:00
|
|
|
ULONG
|
|
|
|
NTAPI
|
|
|
|
KeQueryActiveProcessorCount(OUT PKAFFINITY ActiveProcessors OPTIONAL)
|
|
|
|
{
|
|
|
|
RTL_BITMAP Bitmap;
|
|
|
|
KAFFINITY ActiveMap = KeQueryActiveProcessors();
|
|
|
|
|
|
|
|
if (ActiveProcessors != NULL)
|
|
|
|
{
|
|
|
|
*ActiveProcessors = ActiveMap;
|
|
|
|
}
|
|
|
|
|
2018-04-23 09:27:49 +00:00
|
|
|
RtlInitializeBitMap(&Bitmap, (PULONG)&ActiveMap, sizeof(ActiveMap) * 8);
|
2016-07-25 20:45:48 +00:00
|
|
|
return RtlNumberOfSetBits(&Bitmap);
|
|
|
|
}
|
2020-08-28 12:28:45 +00:00
|
|
|
|
2020-09-24 18:51:57 +00:00
|
|
|
NTKRNLVISTAAPI
|
2020-08-28 12:28:45 +00:00
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeQueryHighestNodeNumber()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-09-24 18:51:57 +00:00
|
|
|
NTKRNLVISTAAPI
|
2020-08-28 12:28:45 +00:00
|
|
|
USHORT
|
|
|
|
NTAPI
|
|
|
|
KeGetCurrentNodeNumber()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
2020-09-24 18:51:57 +00:00
|
|
|
NTKRNLVISTAAPI
|
2020-08-28 12:28:45 +00:00
|
|
|
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);
|
|
|
|
}
|