[XDK][NTOSKRNL_VISTA] Put NTKRNLVISTAAPI to XDK headers

for vista+ APIs implemented in ntoskrnl_vista.
Now if you statically link ntoskrnl_vista into a driver,
NTKERNELAPI will automatically be removed from an API definition
This commit is contained in:
Victor Perevertkin 2020-09-24 21:51:57 +03:00
parent 7af229f5b5
commit be276dde28
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
10 changed files with 42 additions and 33 deletions

View file

@ -1128,7 +1128,7 @@ NTAPI
KeRevertToUserAffinityThreadEx(
_In_ KAFFINITY Affinity);
NTKERNELAPI
NTKRNLVISTAAPI
ULONG
NTAPI
KeQueryActiveProcessorCount(
@ -1140,7 +1140,7 @@ NTAPI
KeQueryMaximumProcessorCount(VOID);
$endif (_WDMDDK_)
$if (_NTDDK_)
NTKERNELAPI
NTKRNLVISTAAPI
ULONG
NTAPI
KeQueryActiveProcessorCount(
@ -1249,12 +1249,12 @@ NTAPI
KeQueryNodeMaximumProcessorCount(
_In_ USHORT NodeNumber);
// NTKERNELAPI // HACK: ntoskrnl_vista functions are statically linked thus don't need DECLSPEC_IMPORT
NTKRNLVISTAAPI
USHORT
NTAPI
KeQueryHighestNodeNumber(VOID);
// NTKERNELAPI // HACK: ntoskrnl_vista functions are statically linked thus don't need DECLSPEC_IMPORT
NTKRNLVISTAAPI
USHORT
NTAPI
KeGetCurrentNodeNumber(VOID);
@ -1316,7 +1316,7 @@ KeRevertToUserGroupAffinityThread(
_In_ PGROUP_AFFINITY PreviousAffinity);
_IRQL_requires_max_(DISPATCH_LEVEL)
// NTKERNELAPI // HACK: ntoskrnl_vista functions are statically linked thus don't need DECLSPEC_IMPORT
NTKRNLVISTAAPI
BOOLEAN
NTAPI
KeSetCoalescableTimer(